Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(511)

Side by Side Diff: gpu/command_buffer/build_gles2_cmd_buffer.py

Issue 1218223005: command_buffer: Implement CHROMIUM_framebuffer_mixed_samples extension (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@new-05-path-fragment-input-gen
Patch Set: rebase, add bogus spec text Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """code generator for GLES2 command buffers.""" 6 """code generator for GLES2 command buffers."""
7 7
8 import itertools 8 import itertools
9 import os 9 import os
10 import os.path 10 import os.path
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 'state_flag': 'framebuffer_state_.clear_state_dirty', 143 'state_flag': 'framebuffer_state_.clear_state_dirty',
144 }, 144 },
145 'ClearStencil': { 145 'ClearStencil': {
146 'type': 'Normal', 146 'type': 'Normal',
147 'func': 'ClearStencil', 147 'func': 'ClearStencil',
148 'enum': 'GL_STENCIL_CLEAR_VALUE', 148 'enum': 'GL_STENCIL_CLEAR_VALUE',
149 'states': [ 149 'states': [
150 {'name': 'stencil_clear', 'type': 'GLint', 'default': '0'}, 150 {'name': 'stencil_clear', 'type': 'GLint', 'default': '0'},
151 ], 151 ],
152 }, 152 },
153 'CoverageModulationCHROMIUM': {
154 'type': 'Normal',
155 'func': 'CoverageModulationNV',
156 'extension_flag': 'chromium_framebuffer_mixed_samples',
157 'states': [
158 { 'enum': 'GL_COVERAGE_MODULATION_CHROMIUM',
159 'name': 'coverage_modulation',
160 'type': 'GLenum',
161 'default': 'GL_NONE',
162 },
163 ]
164 },
153 'BlendColor': { 165 'BlendColor': {
154 'type': 'Normal', 166 'type': 'Normal',
155 'func': 'BlendColor', 167 'func': 'BlendColor',
156 'enum': 'GL_BLEND_COLOR', 168 'enum': 'GL_BLEND_COLOR',
157 'states': [ 169 'states': [
158 {'name': 'blend_color_red', 'type': 'GLfloat', 'default': '0.0f'}, 170 {'name': 'blend_color_red', 'type': 'GLfloat', 'default': '0.0f'},
159 {'name': 'blend_color_green', 'type': 'GLfloat', 'default': '0.0f'}, 171 {'name': 'blend_color_green', 'type': 'GLfloat', 'default': '0.0f'},
160 {'name': 'blend_color_blue', 'type': 'GLfloat', 'default': '0.0f'}, 172 {'name': 'blend_color_blue', 'type': 'GLfloat', 'default': '0.0f'},
161 {'name': 'blend_color_alpha', 'type': 'GLfloat', 'default': '0.0f'}, 173 {'name': 'blend_color_alpha', 'type': 'GLfloat', 'default': '0.0f'},
162 ], 174 ],
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 'BlitFilter': { 655 'BlitFilter': {
644 'type': 'GLenum', 656 'type': 'GLenum',
645 'valid': [ 657 'valid': [
646 'GL_NEAREST', 658 'GL_NEAREST',
647 'GL_LINEAR', 659 'GL_LINEAR',
648 ], 660 ],
649 'invalid': [ 661 'invalid': [
650 'GL_LINEAR_MIPMAP_LINEAR', 662 'GL_LINEAR_MIPMAP_LINEAR',
651 ], 663 ],
652 }, 664 },
665 'CoverageModulationComponents': {
666 'type': 'GLenum',
667 'valid': [
668 'GL_RGB', 'GL_RGBA', 'GL_ALPHA', 'GL_NONE'
669 ],
670 },
653 'FrameBufferTarget': { 671 'FrameBufferTarget': {
654 'type': 'GLenum', 672 'type': 'GLenum',
655 'valid': [ 673 'valid': [
656 'GL_FRAMEBUFFER', 674 'GL_FRAMEBUFFER',
657 ], 675 ],
658 'valid_es3': [ 676 'valid_es3': [
659 'GL_DRAW_FRAMEBUFFER' , 677 'GL_DRAW_FRAMEBUFFER' ,
660 'GL_READ_FRAMEBUFFER' , 678 'GL_READ_FRAMEBUFFER' ,
661 ], 679 ],
662 'invalid': [ 680 'invalid': [
(...skipping 1715 matching lines...) Expand 10 before | Expand all | Expand 10 after
2378 'count': 64, # GL_MAILBOX_SIZE_CHROMIUM 2396 'count': 64, # GL_MAILBOX_SIZE_CHROMIUM
2379 'unit_test': False, 2397 'unit_test': False,
2380 'client_test': False, 2398 'client_test': False,
2381 'extension': "CHROMIUM_texture_mailbox", 2399 'extension': "CHROMIUM_texture_mailbox",
2382 'chromium': True, 2400 'chromium': True,
2383 'trace_level': 2, 2401 'trace_level': 2,
2384 }, 2402 },
2385 'CopyBufferSubData': { 2403 'CopyBufferSubData': {
2386 'unsafe': True, 2404 'unsafe': True,
2387 }, 2405 },
2406 'CoverageModulationCHROMIUM': {
2407 'type': 'StateSet',
2408 'state': 'CoverageModulationCHROMIUM',
2409 'decoder_func': 'glCoverageModulationNV',
2410 'chromium': True,
2411 'extension': 'CHROMIUM_framebuffer_mixed_samples',
2412 'extension_flag': 'chromium_framebuffer_mixed_samples',
2413 },
2388 'CreateAndConsumeTextureCHROMIUM': { 2414 'CreateAndConsumeTextureCHROMIUM': {
2389 'decoder_func': 'DoCreateAndConsumeTextureCHROMIUM', 2415 'decoder_func': 'DoCreateAndConsumeTextureCHROMIUM',
2390 'impl_func': False, 2416 'impl_func': False,
2391 'type': 'HandWritten', 2417 'type': 'HandWritten',
2392 'data_transfer_methods': ['immediate'], 2418 'data_transfer_methods': ['immediate'],
2393 'unit_test': False, 2419 'unit_test': False,
2394 'client_test': False, 2420 'client_test': False,
2395 'extension': "CHROMIUM_texture_mailbox", 2421 'extension': "CHROMIUM_texture_mailbox",
2396 'chromium': True, 2422 'chromium': True,
2397 'trace_level': 2, 2423 'trace_level': 2,
(...skipping 8831 matching lines...) Expand 10 before | Expand all | Expand 10 after
11229 Format(gen.generated_cpp_filenames) 11255 Format(gen.generated_cpp_filenames)
11230 11256
11231 if gen.errors > 0: 11257 if gen.errors > 0:
11232 print "%d errors" % gen.errors 11258 print "%d errors" % gen.errors
11233 return 1 11259 return 1
11234 return 0 11260 return 0
11235 11261
11236 11262
11237 if __name__ == '__main__': 11263 if __name__ == '__main__':
11238 sys.exit(main(sys.argv[1:])) 11264 sys.exit(main(sys.argv[1:]))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698