From: Jordan Justen Date: Sat, 4 Nov 2017 23:39:08 +0000 (-0700) Subject: main: Allow non-zero NUM_PROGRAM_BINARY_FORMATS X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fb077d603bcc46ad915e9863ebf53b75f4662f16;p=mesa.git main: Allow non-zero NUM_PROGRAM_BINARY_FORMATS Signed-off-by: Jordan Justen Reviewed-by: Nicolai Hähnle --- diff --git a/src/mesa/main/get_hash_params.py b/src/mesa/main/get_hash_params.py index 20ef6e4977a..6d99a029ed2 100644 --- a/src/mesa/main/get_hash_params.py +++ b/src/mesa/main/get_hash_params.py @@ -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 diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 40f70b067e8..d7e9f148f35 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -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; };