0005-Add-support-for-various-GLES-extensions.patch 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. From 804b1621754ab265af92c796e04da4d024fb22a5 Mon Sep 17 00:00:00 2001
  2. From: Brendan King <Brendan.King@imgtec.com>
  3. Date: Mon, 10 Mar 2014 12:27:03 +0000
  4. Subject: [PATCH] Add support for various GLES extensions
  5. Add support for:
  6. EXT_occlusion_query_boolean
  7. IMG_multisampled_render_to_texture
  8. OES_matrix_palette
  9. ---
  10. src/mapi/glapi/gen/es_EXT.xml | 41 ++++++++++++++++++++++++-------
  11. src/mapi/glapi/gen/static_data.py | 6 +++++
  12. 2 files changed, 38 insertions(+), 9 deletions(-)
  13. diff --git a/src/mapi/glapi/gen/es_EXT.xml b/src/mapi/glapi/gen/es_EXT.xml
  14. index 962170b..e586b0e 100644
  15. --- a/src/mapi/glapi/gen/es_EXT.xml
  16. +++ b/src/mapi/glapi/gen/es_EXT.xml
  17. @@ -285,28 +285,25 @@
  18. <enum name="WEIGHT_ARRAY_BUFFER_BINDING_OES" value="0x889E"/>
  19. <enum name="MATRIX_INDEX_ARRAY_BUFFER_BINDING_OES" value="0x8B9E"/>
  20. - <function name="CurrentPaletteMatrixOES" alias="CurrentPaletteMatrixARB"
  21. - exec="skip">
  22. + <function name="CurrentPaletteMatrixOES" es1="1.0" exec="dynamic">
  23. <param name="matrixpaletteindex" type="GLuint"/>
  24. </function>
  25. - <!-- no offset -->
  26. - <function name="LoadPaletteFromModelViewMatrixOES" exec="skip">
  27. + <function name="LoadPaletteFromModelViewMatrixOES" es1="1.0" exec="dynamic">
  28. </function>
  29. - <function name="MatrixIndexPointerOES" alias="MatrixIndexPointerARB"
  30. - exec="skip">
  31. + <function name="MatrixIndexPointerOES" es1="1.0" exec="dynamic">
  32. <param name="size" type="GLint"/>
  33. <param name="type" type="GLenum"/>
  34. <param name="stride" type="GLsizei"/>
  35. - <param name="pointer" type="const GLvoid *"/>
  36. + <param name="pointer" type="GLvoid *"/>
  37. </function>
  38. - <function name="WeightPointerOES" alias="WeightPointerARB" exec="skip">
  39. + <function name="WeightPointerOES" es1="1.0" exec="dynamic">
  40. <param name="size" type="GLint"/>
  41. <param name="type" type="GLenum"/>
  42. <param name="stride" type="GLsizei"/>
  43. - <param name="pointer" type="const GLvoid *"/>
  44. + <param name="pointer" type="GLvoid *"/>
  45. </function>
  46. </category>
  47. @@ -680,6 +677,32 @@
  48. </enum>
  49. </category>
  50. +<!-- 74. GL_IMG_multisampled_render_to_texture -->
  51. +<category name="GL_IMG_multisampled_render_to_texture" number="74">
  52. + <enum name="RENDERBUFFER_SAMPLES_IMG" value="0x9133"/>
  53. + <enum name="FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_IMG" value="0x9134"/>
  54. + <enum name="MAX_SAMPLES_IMG" value="0x9135"/>
  55. + <enum name="TEXTURE_SAMPLES_IMG" value="0x9136"/>
  56. +
  57. + <function name="RenderbufferStorageMultisampleIMG" es2="2.0" exec="dynamic">
  58. + <param name="target" type="GLenum"/>
  59. + <param name="samples" type="GLsizei"/>
  60. + <param name="internalformat" type="GLenum"/>
  61. + <param name="width" type="GLsizei"/>
  62. + <param name="height" type="GLsizei"/>
  63. + </function>
  64. +
  65. + <function name="FramebufferTexture2DMultisampleIMG" es2="2.0"
  66. + exec="dynamic">
  67. + <param name="target" type="GLenum"/>
  68. + <param name="attachment" type="GLenum"/>
  69. + <param name="textarget" type="GLenum"/>
  70. + <param name="texture" type="GLuint"/>
  71. + <param name="level" type="GLint"/>
  72. + <param name="samples" type="GLsizei"/>
  73. + </function>
  74. +</category>
  75. +
  76. <!-- 87. GL_OES_EGL_image_external -->
  77. <category name="GL_OES_EGL_image_external" number="87">
  78. <enum name="TEXTURE_EXTERNAL_OES" value="0x8D65"/>
  79. diff --git a/src/mapi/glapi/gen/static_data.py b/src/mapi/glapi/gen/static_data.py
  80. index d063930..79b8f19 100644
  81. --- a/src/mapi/glapi/gen/static_data.py
  82. +++ b/src/mapi/glapi/gen/static_data.py
  83. @@ -1691,6 +1691,12 @@ offsets = {
  84. "VertexAttribs4hvNV": 1655,
  85. "TexPageCommitmentEXT": 1656,
  86. "TexturePageCommitmentEXT" : 1657,
  87. + "CurrentPaletteMatrixOES" : 1658,
  88. + "LoadPaletteFromModelViewMatrixOES" : 1659,
  89. + "MatrixIndexPointerOES" : 1660,
  90. + "WeightPointerOES" : 1661,
  91. + "RenderbufferStorageMultisampleIMG" : 1662,
  92. + "FramebufferTexture2DMultisampleIMG" : 1663,
  93. }
  94. functions = [