mesa: add missing CONTEXT_ROBUST_ACCESS enum
authorTapani Pälli <tapani.palli@intel.com>
Tue, 25 Oct 2016 10:31:58 +0000 (13:31 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Thu, 27 Oct 2016 04:06:41 +0000 (07:06 +0300)
commit 85008db1d51f923113832394d7f8d6b1868be882 missed this enum
for GL_KHR_robustness implementation

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/mapi/glapi/gen/KHR_robustness.xml
src/mesa/main/context.c
src/mesa/main/get.c
src/mesa/main/get_hash_params.py
src/mesa/main/mtypes.h

index e773501daa89d12cd66d07c42766e241034d6896..21425938a669377f683187f7c529aa92dfb9b7fe 100644 (file)
@@ -12,6 +12,9 @@
     <enum name="INNOCENT_CONTEXT_RESET"               value="0x8254"/>
     <enum name="UNKNOWN_CONTEXT_RESET"                value="0x8255"/>
 
+    <enum name="CONTEXT_ROBUST_ACCESS" count="1" value="0x90F3">
+        <size name="Get" mode="get"/>
+    </enum>
     <enum name="RESET_NOTIFICATION_STRATEGY" count="1" value="0x8256">
         <size name="Get" mode="get"/>
     </enum>
index 5aaf150e019d92a0072824d8b4baed1588b843ab..c62575c08abfde3f50954720adb8f305ff74c04f 100644 (file)
@@ -678,6 +678,9 @@ _mesa_init_constants(struct gl_constants *consts, gl_api api)
    /* GL_ARB_robustness */
    consts->ResetStrategy = GL_NO_RESET_NOTIFICATION_ARB;
 
+   /* GL_KHR_robustness */
+   consts->RobustAccess = GL_FALSE;
+
    /* ES 3.0 or ARB_ES3_compatibility */
    consts->MaxElementIndex = 0xffffffffu;
 
index 6234f6ed6b7b7769bd44705c106102f7da178b86..ad692c6c2cfee154557bcde50c5c516bf65631c9 100644 (file)
@@ -491,6 +491,7 @@ EXTRA_EXT(EXT_window_rectangles);
 EXTRA_EXT(KHR_blend_equation_advanced_coherent);
 EXTRA_EXT(OES_primitive_bounding_box);
 EXTRA_EXT(ARB_compute_variable_group_size);
+EXTRA_EXT(KHR_robustness);
 
 static const int
 extra_ARB_color_buffer_float_or_glcore[] = {
index 52371805941f19212ea545ab3e2aedc331c4bfdc..90fae8754abef093e57cfcb8973b1c53d7c94def 100644 (file)
@@ -343,6 +343,7 @@ descriptor=[
   [ "BLEND_ADVANCED_COHERENT_KHR", "CONTEXT_BOOL(Color.BlendCoherent), extra_KHR_blend_equation_advanced_coherent" ],
 
 # GL_ARB_robustness / GL_KHR_robustness
+  [ "CONTEXT_ROBUST_ACCESS", "CONTEXT_ENUM(Const.RobustAccess), extra_KHR_robustness" ],
   [ "RESET_NOTIFICATION_STRATEGY_ARB", "CONTEXT_ENUM(Const.ResetStrategy), extra_KHR_robustness_or_GL" ],
 ]},
 
index 79cf9878dbd38bcc6f60a84d8bd3e8fe02eb4419..3f3c41bad6f68c542d2544311fc4e1ee690eda6a 100644 (file)
@@ -3548,6 +3548,9 @@ struct gl_constants
    /* GL_ARB_robustness */
    GLenum ResetStrategy;
 
+   /* GL_KHR_robustness */
+   GLboolean RobustAccess;
+
    /* GL_ARB_blend_func_extended */
    GLuint MaxDualSourceDrawBuffers;