main: Allow non-zero NUM_PROGRAM_BINARY_FORMATS
authorJordan Justen <jordan.l.justen@intel.com>
Sat, 4 Nov 2017 23:39:08 +0000 (16:39 -0700)
committerTimothy Arceri <tarceri@itsqueeze.com>
Fri, 8 Dec 2017 05:59:25 +0000 (16:59 +1100)
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/main/get_hash_params.py
src/mesa/main/mtypes.h

index 20ef6e4977a1875ef5a197c5268401addbdcf87a..6d99a029ed28812b4598e182dc184d57a5cdd43a 100644 (file)
@@ -324,7 +324,7 @@ descriptor=[
   [ "SHADER_BINARY_FORMATS", "LOC_CUSTOM, TYPE_INVALID, 0, extra_ARB_ES2_compatibility_api_es2" ],
 
 # GL_ARB_get_program_binary / GL_OES_get_program_binary
-  [ "NUM_PROGRAM_BINARY_FORMATS", "CONST(0), NO_EXTRA" ],
+  [ "NUM_PROGRAM_BINARY_FORMATS", "CONTEXT_UINT(Const.NumProgramBinaryFormats), NO_EXTRA" ],
   [ "PROGRAM_BINARY_FORMATS", "LOC_CUSTOM, TYPE_INVALID, 0, NO_EXTRA" ],
 
 # GL_INTEL_performance_query
index 40f70b067e8fdd0d85cef252154f648d3e806d97..d7e9f148f35da80d7c98246f31405a4da82795ba 100644 (file)
@@ -4022,6 +4022,9 @@ struct gl_constants
 
    /** When drivers are OK with mapped buffers during draw and other calls. */
    bool AllowMappedBuffersDuringExecution;
+
+   /** GL_ARB_get_program_binary */
+   GLuint NumProgramBinaryFormats;
 };