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

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

Issue 2461003003: Reduce GPU mailbox size to 16 bytes (Closed)
Patch Set: fix tests Created 4 years, 1 month 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
« no previous file with comments | « gpu/GLES2/gl2extchromium.h ('k') | gpu/command_buffer/client/gles2_implementation_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2538 matching lines...) Expand 10 before | Expand all | Expand 10 after
2549 'ColorMask': { 2549 'ColorMask': {
2550 'type': 'StateSet', 2550 'type': 'StateSet',
2551 'state': 'ColorMask', 2551 'state': 'ColorMask',
2552 'no_gl': True, 2552 'no_gl': True,
2553 'expectation': False, 2553 'expectation': False,
2554 }, 2554 },
2555 'ConsumeTextureCHROMIUM': { 2555 'ConsumeTextureCHROMIUM': {
2556 'decoder_func': 'DoConsumeTextureCHROMIUM', 2556 'decoder_func': 'DoConsumeTextureCHROMIUM',
2557 'impl_func': False, 2557 'impl_func': False,
2558 'type': 'PUT', 2558 'type': 'PUT',
2559 'count': 64, # GL_MAILBOX_SIZE_CHROMIUM 2559 'count': 16, # GL_MAILBOX_SIZE_CHROMIUM
2560 'unit_test': False, 2560 'unit_test': False,
2561 'client_test': False, 2561 'client_test': False,
2562 'extension': "CHROMIUM_texture_mailbox", 2562 'extension': "CHROMIUM_texture_mailbox",
2563 'trace_level': 2, 2563 'trace_level': 2,
2564 }, 2564 },
2565 'CopyBufferSubData': { 2565 'CopyBufferSubData': {
2566 'decoder_func': 'DoCopyBufferSubData', 2566 'decoder_func': 'DoCopyBufferSubData',
2567 'unit_test': False, 2567 'unit_test': False,
2568 'es3': True, 2568 'es3': True,
2569 }, 2569 },
2570 'CoverageModulationCHROMIUM': { 2570 'CoverageModulationCHROMIUM': {
2571 'type': 'StateSet', 2571 'type': 'StateSet',
2572 'state': 'CoverageModulationCHROMIUM', 2572 'state': 'CoverageModulationCHROMIUM',
2573 'decoder_func': 'glCoverageModulationNV', 2573 'decoder_func': 'glCoverageModulationNV',
2574 'extension': 'CHROMIUM_framebuffer_mixed_samples', 2574 'extension': 'CHROMIUM_framebuffer_mixed_samples',
2575 'extension_flag': 'chromium_framebuffer_mixed_samples', 2575 'extension_flag': 'chromium_framebuffer_mixed_samples',
2576 }, 2576 },
2577 'CreateAndConsumeTextureCHROMIUM': { 2577 'CreateAndConsumeTextureCHROMIUM': {
2578 'type': 'NoCommand', 2578 'type': 'NoCommand',
2579 'extension': "CHROMIUM_texture_mailbox", 2579 'extension': "CHROMIUM_texture_mailbox",
2580 'trace_level': 2, 2580 'trace_level': 2,
2581 }, 2581 },
2582 'CreateAndConsumeTextureINTERNAL': { 2582 'CreateAndConsumeTextureINTERNAL': {
2583 'decoder_func': 'DoCreateAndConsumeTextureINTERNAL', 2583 'decoder_func': 'DoCreateAndConsumeTextureINTERNAL',
2584 'internal': True, 2584 'internal': True,
2585 'type': 'PUT', 2585 'type': 'PUT',
2586 'count': 64, # GL_MAILBOX_SIZE_CHROMIUM 2586 'count': 16, # GL_MAILBOX_SIZE_CHROMIUM
2587 'unit_test': False, 2587 'unit_test': False,
2588 'trace_level': 2, 2588 'trace_level': 2,
2589 }, 2589 },
2590 'ClearStencil': { 2590 'ClearStencil': {
2591 'type': 'StateSet', 2591 'type': 'StateSet',
2592 'state': 'ClearStencil', 2592 'state': 'ClearStencil',
2593 }, 2593 },
2594 'EnableFeatureCHROMIUM': { 2594 'EnableFeatureCHROMIUM': {
2595 'type': 'Custom', 2595 'type': 'Custom',
2596 'data_transfer_methods': ['shm'], 2596 'data_transfer_methods': ['shm'],
(...skipping 881 matching lines...) Expand 10 before | Expand all | Expand 10 after
3478 'PostSubBufferCHROMIUM': { 3478 'PostSubBufferCHROMIUM': {
3479 'type': 'Custom', 3479 'type': 'Custom',
3480 'impl_func': False, 3480 'impl_func': False,
3481 'client_test': False, 3481 'client_test': False,
3482 'extension': True, 3482 'extension': True,
3483 }, 3483 },
3484 'ProduceTextureCHROMIUM': { 3484 'ProduceTextureCHROMIUM': {
3485 'decoder_func': 'DoProduceTextureCHROMIUM', 3485 'decoder_func': 'DoProduceTextureCHROMIUM',
3486 'impl_func': False, 3486 'impl_func': False,
3487 'type': 'PUT', 3487 'type': 'PUT',
3488 'count': 64, # GL_MAILBOX_SIZE_CHROMIUM 3488 'count': 16, # GL_MAILBOX_SIZE_CHROMIUM
3489 'unit_test': False, 3489 'unit_test': False,
3490 'client_test': False, 3490 'client_test': False,
3491 'extension': "CHROMIUM_texture_mailbox", 3491 'extension': "CHROMIUM_texture_mailbox",
3492 'trace_level': 1, 3492 'trace_level': 1,
3493 }, 3493 },
3494 'ProduceTextureDirectCHROMIUM': { 3494 'ProduceTextureDirectCHROMIUM': {
3495 'decoder_func': 'DoProduceTextureDirectCHROMIUM', 3495 'decoder_func': 'DoProduceTextureDirectCHROMIUM',
3496 'impl_func': False, 3496 'impl_func': False,
3497 'type': 'PUT', 3497 'type': 'PUT',
3498 'count': 64, # GL_MAILBOX_SIZE_CHROMIUM 3498 'count': 16, # GL_MAILBOX_SIZE_CHROMIUM
3499 'unit_test': False, 3499 'unit_test': False,
3500 'client_test': False, 3500 'client_test': False,
3501 'extension': "CHROMIUM_texture_mailbox", 3501 'extension': "CHROMIUM_texture_mailbox",
3502 'trace_level': 1, 3502 'trace_level': 1,
3503 }, 3503 },
3504 'RenderbufferStorage': { 3504 'RenderbufferStorage': {
3505 'decoder_func': 'DoRenderbufferStorage', 3505 'decoder_func': 'DoRenderbufferStorage',
3506 'gl_test_func': 'glRenderbufferStorageEXT', 3506 'gl_test_func': 'glRenderbufferStorageEXT',
3507 'expectation': False, 3507 'expectation': False,
3508 'trace_level': 1, 3508 'trace_level': 1,
(...skipping 7666 matching lines...) Expand 10 before | Expand all | Expand 10 after
11175 Format(gen.generated_cpp_filenames) 11175 Format(gen.generated_cpp_filenames)
11176 11176
11177 if gen.errors > 0: 11177 if gen.errors > 0:
11178 print "%d errors" % gen.errors 11178 print "%d errors" % gen.errors
11179 return 1 11179 return 1
11180 return 0 11180 return 0
11181 11181
11182 11182
11183 if __name__ == '__main__': 11183 if __name__ == '__main__':
11184 sys.exit(main(sys.argv[1:])) 11184 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « gpu/GLES2/gl2extchromium.h ('k') | gpu/command_buffer/client/gles2_implementation_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698