[Mesa-dev] [PATCH 5/5] mesa/main: expose ARB_internalformat_query2 on ES2.

Alejandro PiƱeiro apinheiro at igalia.com
Fri May 13 14:57:07 UTC 2016


>From the ARB_internalformat_query2 spec:
	"Dependencies
         OpenGL 2.0 or OpenGL ES 2.0 is required."

Additionally there are other mentions to ES 2.0 and 3.0 on the spec.

Acked-by: Eduardo Lima <elima at igalia.com>
Acked-by: Antia Puentes <apuentes at igalia.com>
---
 src/mapi/glapi/gen/ARB_internalformat_query2.xml | 2 +-
 src/mesa/main/extensions_table.h                 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mapi/glapi/gen/ARB_internalformat_query2.xml b/src/mapi/glapi/gen/ARB_internalformat_query2.xml
index 9b0f320..073c14f 100644
--- a/src/mapi/glapi/gen/ARB_internalformat_query2.xml
+++ b/src/mapi/glapi/gen/ARB_internalformat_query2.xml
@@ -107,7 +107,7 @@
         <enum name="VIEW_CLASS_BPTC_UNORM"           value="0x82D2"/>
         <enum name="VIEW_CLASS_BPTC_FLOAT"           value="0x82D3"/>
 
-    <function name="GetInternalformati64v" es2="3.0">
+    <function name="GetInternalformati64v" es2="2.0">
         <param name="target" type="GLenum"/>
         <param name="internalformat" type="GLenum"/>
         <param name="pname" type="GLenum"/>
diff --git a/src/mesa/main/extensions_table.h b/src/mesa/main/extensions_table.h
index 18a5505..b07fca8 100644
--- a/src/mesa/main/extensions_table.h
+++ b/src/mesa/main/extensions_table.h
@@ -75,7 +75,7 @@ EXT(ARB_half_float_vertex                   , ARB_half_float_vertex
 EXT(ARB_indirect_parameters                 , ARB_indirect_parameters                ,  x , GLC,  x ,  x , 2013)
 EXT(ARB_instanced_arrays                    , ARB_instanced_arrays                   , GLL, GLC,  x ,  x , 2008)
 EXT(ARB_internalformat_query                , ARB_internalformat_query               , GLL, GLC,  x ,  x , 2011)
-EXT(ARB_internalformat_query2               , ARB_internalformat_query2              , GLL, GLC,  x ,  x , 2013)
+EXT(ARB_internalformat_query2               , ARB_internalformat_query2              , GLL, GLC,  x , ES2, 2013)
 EXT(ARB_invalidate_subdata                  , dummy_true                             , GLL, GLC,  x ,  x , 2012)
 EXT(ARB_map_buffer_alignment                , dummy_true                             , GLL, GLC,  x ,  x , 2011)
 EXT(ARB_map_buffer_range                    , ARB_map_buffer_range                   , GLL, GLC,  x ,  x , 2008)
-- 
2.7.4



More information about the mesa-dev mailing list