OLD | NEW |
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 os | 8 import os |
9 import os.path | 9 import os.path |
10 import sys | 10 import sys |
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
580 'GL_FASTEST', | 580 'GL_FASTEST', |
581 'GL_NICEST', | 581 'GL_NICEST', |
582 'GL_DONT_CARE', | 582 'GL_DONT_CARE', |
583 ], | 583 ], |
584 }, | 584 }, |
585 'PixelStore': { | 585 'PixelStore': { |
586 'type': 'GLenum', | 586 'type': 'GLenum', |
587 'valid': [ | 587 'valid': [ |
588 'GL_PACK_ALIGNMENT', | 588 'GL_PACK_ALIGNMENT', |
589 'GL_UNPACK_ALIGNMENT', | 589 'GL_UNPACK_ALIGNMENT', |
| 590 'GL_UNPACK_FLIP_Y_CHROMIUM', |
| 591 'GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM', |
590 ], | 592 ], |
591 'invalid': [ | 593 'invalid': [ |
592 'GL_PACK_SWAP_BYTES', | 594 'GL_PACK_SWAP_BYTES', |
593 'GL_UNPACK_SWAP_BYTES', | 595 'GL_UNPACK_SWAP_BYTES', |
594 ], | 596 ], |
595 }, | 597 }, |
596 'PixelStoreAlignment': { | 598 'PixelStoreAlignment': { |
597 'type': 'GLint', | 599 'type': 'GLint', |
598 'valid': [ | 600 'valid': [ |
599 '1', | 601 '1', |
(...skipping 902 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1502 'count': 4, | 1504 'count': 4, |
1503 'decoder_func': 'DoVertexAttrib4fv', | 1505 'decoder_func': 'DoVertexAttrib4fv', |
1504 }, | 1506 }, |
1505 'VertexAttribPointer': { | 1507 'VertexAttribPointer': { |
1506 'type': 'Manual', | 1508 'type': 'Manual', |
1507 'cmd_args': 'GLuint indx, GLintVertexAttribSize size, ' | 1509 'cmd_args': 'GLuint indx, GLintVertexAttribSize size, ' |
1508 'GLenumVertexAttribType type, GLboolean normalized, ' | 1510 'GLenumVertexAttribType type, GLboolean normalized, ' |
1509 'GLsizei stride, GLuint offset', | 1511 'GLsizei stride, GLuint offset', |
1510 'client_test': False, | 1512 'client_test': False, |
1511 }, | 1513 }, |
| 1514 'Viewport': { |
| 1515 'decoder_func': 'DoViewport', |
| 1516 }, |
1512 'ResizeCHROMIUM': { | 1517 'ResizeCHROMIUM': { |
1513 'type': 'Custom', | 1518 'type': 'Custom', |
1514 'impl_func': False, | 1519 'impl_func': False, |
1515 'unit_test': False, | 1520 'unit_test': False, |
1516 'extension': True, | 1521 'extension': True, |
1517 'chromium': True, | 1522 'chromium': True, |
1518 }, | 1523 }, |
1519 'GetRequestableExtensionsCHROMIUM': { | 1524 'GetRequestableExtensionsCHROMIUM': { |
1520 'type': 'Custom', | 1525 'type': 'Custom', |
1521 'impl_func': False, | 1526 'impl_func': False, |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1556 'expectation': False, | 1561 'expectation': False, |
1557 'extension': True, | 1562 'extension': True, |
1558 'chromium': True, | 1563 'chromium': True, |
1559 }, | 1564 }, |
1560 'TexImageIOSurface2DCHROMIUM': { | 1565 'TexImageIOSurface2DCHROMIUM': { |
1561 'decoder_func': 'DoTexImageIOSurface2DCHROMIUM', | 1566 'decoder_func': 'DoTexImageIOSurface2DCHROMIUM', |
1562 'unit_test': False, | 1567 'unit_test': False, |
1563 'extension': True, | 1568 'extension': True, |
1564 'chromium': True, | 1569 'chromium': True, |
1565 }, | 1570 }, |
| 1571 'CopyTextureCHROMIUM': { |
| 1572 'decoder_func': 'DoCopyTextureCHROMIUM', |
| 1573 'unit_test': False, |
| 1574 'extension': True, |
| 1575 'chromium': True, |
| 1576 }, |
1566 'TexStorage2DEXT': { | 1577 'TexStorage2DEXT': { |
1567 'unit_test': False, | 1578 'unit_test': False, |
1568 'extension': True, | 1579 'extension': True, |
1569 'decoder_func': 'DoTexStorage2DEXT', | 1580 'decoder_func': 'DoTexStorage2DEXT', |
1570 }, | 1581 }, |
1571 'DrawArraysInstancedANGLE': { | 1582 'DrawArraysInstancedANGLE': { |
1572 'type': 'Manual', | 1583 'type': 'Manual', |
1573 'cmd_args': 'GLenumDrawMode mode, GLint first, GLsizei count, ' | 1584 'cmd_args': 'GLenumDrawMode mode, GLint first, GLsizei count, ' |
1574 'GLsizei primcount', | 1585 'GLsizei primcount', |
1575 'extension': True, | 1586 'extension': True, |
(...skipping 4629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6205 gen.WriteCommonUtilsImpl("common/gles2_cmd_utils_implementation_autogen.h") | 6216 gen.WriteCommonUtilsImpl("common/gles2_cmd_utils_implementation_autogen.h") |
6206 | 6217 |
6207 if gen.errors > 0: | 6218 if gen.errors > 0: |
6208 print "%d errors" % gen.errors | 6219 print "%d errors" % gen.errors |
6209 return 1 | 6220 return 1 |
6210 return 0 | 6221 return 0 |
6211 | 6222 |
6212 | 6223 |
6213 if __name__ == '__main__': | 6224 if __name__ == '__main__': |
6214 sys.exit(main(sys.argv[1:])) | 6225 sys.exit(main(sys.argv[1:])) |
OLD | NEW |