<div dir="auto">Why the static data changes? Also, I haven't double checked the code, but I'm almost certain this is incomplete. You have to add code disallowing the other enums from being used on es2.</div><div class="gmail_extra"><br><div class="gmail_quote">On Aug 18, 2017 6:42 AM, "Harish Krupo" <<a href="mailto:harish.krupo.kps@intel.com">harish.krupo.kps@intel.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It passes dEQP-GLES2.capability.<wbr>extensions.other.GL_EXT_<wbr>occlusion_query_boolean<br>
test. I think the test is just a check for the existence of the extension. On<br>
gles3 and above, occlusion queries are part of the spec.<br>
<br>
Signed-off-by: Harish Krupo <<a href="mailto:harish.krupo.kps@intel.com">harish.krupo.kps@intel.com</a>><br>
---<br>
<br>
There is a piglit test for this extension in the piglit mailing list.<br>
<br>
 src/mapi/glapi/gen/es_EXT.xml     | 60 ++++++++++++++++++++++++++++++<wbr>+++++++++<br>
 src/mapi/glapi/gen/static_<wbr>data.py |  7 +++++<br>
 src/mesa/main/extensions_<wbr>table.h  |  1 +<br>
 3 files changed, 68 insertions(+)<br>
<br>
diff --git a/src/mapi/glapi/gen/es_EXT.<wbr>xml b/src/mapi/glapi/gen/es_EXT.<wbr>xml<br>
index 3a2bdb2fdc..1730a92e93 100644<br>
--- a/src/mapi/glapi/gen/es_EXT.<wbr>xml<br>
+++ b/src/mapi/glapi/gen/es_EXT.<wbr>xml<br>
@@ -751,6 +751,66 @@<br>
     </function><br>
 </category><br>
<br>
+<!-- 100. GL_EXT_occlusion_query_boolean --><br>
+<category name="GL_EXT_occlusion_query_<wbr>boolean" number="29"><br>
+    <enum name="CURRENT_QUERY_EXT"             count="1"  value="0x8865"><br>
+        <size name="GetQueryiv" mode="get"/><br>
+    </enum><br>
+    <enum name="QUERY_RESULT_EXT"              count="1"  value="0x8866"><br>
+        <size name="GetQueryObjectiv" mode="get"/><br>
+        <size name="GetQueryObjectuiv" mode="get"/><br>
+    </enum><br>
+    <enum name="QUERY_RESULT_AVAILABLE_<wbr>EXT"    count="1"  value="0x8867"><br>
+        <size name="GetQueryObjectiv" mode="get"/><br>
+        <size name="GetQueryObjectuiv" mode="get"/><br>
+    </enum><br>
+<br>
+    <enum name="ANY_SAMPLES_PASSED_EXT"                       value="0x8C2F"/><br>
+    <enum name="ANY_SAMPLES_PASSED_<wbr>CONSERVATIVE_EXT"          value="0x8D6A"/><br>
+<br>
+    <function name="GenQueriesEXT" alias="GenQueries"><br>
+        <param name="n" type="GLsizei"/><br>
+        <param name="ids" type="GLuint *"/><br>
+    </function><br>
+<br>
+    <function name="DeleteQueriesEXT" alias="DeleteQueries"><br>
+        <param name="n" type="GLsizei"/><br>
+        <param name="ids" type="const GLuint *"/><br>
+    </function><br>
+<br>
+    <function name="IsQueryEXT" alias="IsQuery"><br>
+        <param name="id" type="GLuint"/><br>
+        <return type="GLboolean"/><br>
+    </function><br>
+<br>
+    <function name="BeginQueryEXT" alias="BeginQuery"><br>
+        <param name="target" type="GLenum"/><br>
+        <param name="id" type="GLuint"/><br>
+    </function><br>
+<br>
+    <function name="EndQueryEXT" alias="EndQuery"><br>
+        <param name="target" type="GLenum"/><br>
+    </function><br>
+<br>
+    <function name="GetQueryivEXT" alias="GetQueryiv"><br>
+        <param name="target" type="GLenum"/><br>
+        <param name="pname" type="GLenum"/><br>
+        <param name="params" type="GLint *"/><br>
+    </function><br>
+<br>
+    <function name="GetQueryObjectivEXT" alias="GetQueryObjectiv"><br>
+        <param name="id" type="GLuint"/><br>
+        <param name="pname" type="GLenum"/><br>
+        <param name="params" type="GLint *"/><br>
+    </function><br>
+<br>
+    <function name="GetQueryObjectuivEXT" alias="GetQueryObjectuiv"><br>
+        <param name="id" type="GLuint"/><br>
+        <param name="pname" type="GLenum"/><br>
+        <param name="params" type="GLuint *"/><br>
+    </function><br>
+</category><br>
+<br>
 <!-- 103. GL_EXT_texture_rg --><br>
 <category name="GL_EXT_texture_rg" number="103"><br>
     <enum name="RED_EXT"                                  value="0x1903"/><br>
diff --git a/src/mapi/glapi/gen/static_<wbr>data.py b/src/mapi/glapi/gen/static_<wbr>data.py<br>
index 7a8933b8d7..f5709604cc 100644<br>
--- a/src/mapi/glapi/gen/static_<wbr>data.py<br>
+++ b/src/mapi/glapi/gen/static_<wbr>data.py<br>
@@ -452,6 +452,7 @@ functions = [<br>
     "BeginConditionalRenderNV",<br>
     "BeginQuery",<br>
     "BeginQueryARB",<br>
+    "BeginQueryEXT",<br>
     "BeginQueryIndexed",<br>
     "BeginTransformFeedback",<br>
     "BindAttribLocation",<br>
@@ -640,6 +641,7 @@ functions = [<br>
     "DeleteProgramsARB",<br>
     "DeleteQueries",<br>
     "DeleteQueriesARB",<br>
+    "DeleteQueriesEXT",<br>
     "DeleteRenderbuffers",<br>
     "DeleteRenderbuffersEXT",<br>
     "DeleteSamplers",<br>
@@ -710,6 +712,7 @@ functions = [<br>
     "EndList",<br>
     "EndQuery",<br>
     "EndQueryARB",<br>
+    "EndQueryEXT",<br>
     "EndQueryIndexed",<br>
     "EndTransformFeedback",<br>
     "EvalCoord1d",<br>
@@ -774,6 +777,7 @@ functions = [<br>
     "GenProgramsARB",<br>
     "GenQueries",<br>
     "GenQueriesARB",<br>
+    "GenQueriesEXT",<br>
     "GenRenderbuffers",<br>
     "GenRenderbuffersEXT",<br>
     "GenSamplers",<br>
@@ -904,10 +908,12 @@ functions = [<br>
     "GetQueryIndexediv",<br>
     "GetQueryiv",<br>
     "GetQueryivARB",<br>
+    "GetQueryivEXT",<br>
     "GetQueryObjectiv",<br>
     "GetQueryObjectivARB",<br>
     "GetQueryObjectuiv",<br>
     "GetQueryObjectuivARB",<br>
+    "GetQueryObjectuivEXT",<br>
     "GetRenderbufferParameteriv",<br>
     "<wbr>GetRenderbufferParameterivEXT"<wbr>,<br>
     "GetSamplerParameterfv",<br>
@@ -998,6 +1004,7 @@ functions = [<br>
     "IsProgramPipeline",<br>
     "IsQuery",<br>
     "IsQueryARB",<br>
+    "IsQueryEXT",<br>
     "IsRenderbuffer",<br>
     "IsRenderbufferEXT",<br>
     "IsSampler",<br>
diff --git a/src/mesa/main/extensions_<wbr>table.h b/src/mesa/main/extensions_<wbr>table.h<br>
index 347a6197ed..2e660ebae8 100644<br>
--- a/src/mesa/main/extensions_<wbr>table.h<br>
+++ b/src/mesa/main/extensions_<wbr>table.h<br>
@@ -229,6 +229,7 @@ EXT(EXT_map_buffer_range                    , ARB_map_buffer_range<br>
 EXT(EXT_memory_object                       , EXT_memory_object                      , GLL, GLC,  x , ES2, 2017)<br>
 EXT(EXT_memory_object_fd                    , EXT_memory_object_fd                   , GLL, GLC,  x , ES2, 2017)<br>
 EXT(EXT_multi_draw_arrays                   , dummy_true                             , GLL,  x , ES1, ES2, 1999)<br>
+EXT(EXT_occlusion_query_<wbr>boolean             , ARB_occlusion_query2                   ,  x ,  x ,  x , ES2, 2001)<br>
 EXT(EXT_packed_depth_stencil                , dummy_true                             , GLL, GLC,  x ,  x , 2005)<br>
 EXT(EXT_packed_float                        , EXT_packed_float                       , GLL, GLC,  x ,  x , 2004)<br>
 EXT(EXT_packed_pixels                       , dummy_true                             , GLL,  x ,  x ,  x , 1997)<br>
--<br>
2.12.2<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</blockquote></div></div>