From: Nicolai Hähnle <nicolai.haeh...@amd.com> Reviewed-by: Ian Romanick <ian.d.roman...@intel.com> Reviewed-by: Marek Olšák <marek.ol...@amd.com> --- src/mesa/main/get.c | 1 + src/mesa/main/get_hash_params.py | 3 +++ src/mesa/main/mtypes.h | 3 +++ 3 files changed, 7 insertions(+)
diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index 397f4a3..cf3ee63 100644 --- a/src/mesa/main/get.c +++ b/src/mesa/main/get.c @@ -494,20 +494,21 @@ EXTRA_EXT(ARB_shader_subroutine); EXTRA_EXT(ARB_shader_storage_buffer_object); EXTRA_EXT(ARB_indirect_parameters); EXTRA_EXT(ATI_meminfo); EXTRA_EXT(NVX_gpu_memory_info); EXTRA_EXT(ARB_cull_distance); 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); +EXTRA_EXT(ARB_sparse_buffer); static const int extra_ARB_color_buffer_float_or_glcore[] = { EXT(ARB_color_buffer_float), EXTRA_API_GL_CORE, EXTRA_END }; static const int extra_NV_primitive_restart[] = { diff --git a/src/mesa/main/get_hash_params.py b/src/mesa/main/get_hash_params.py index 3b67d09..f6ffb4c 100644 --- a/src/mesa/main/get_hash_params.py +++ b/src/mesa/main/get_hash_params.py @@ -942,20 +942,23 @@ descriptor=[ [ "GPU_MEMORY_INFO_CURRENT_AVAILABLE_VIDMEM_NVX", "LOC_CUSTOM, TYPE_INT, NO_OFFSET, extra_NVX_gpu_memory_info" ], [ "GPU_MEMORY_INFO_EVICTION_COUNT_NVX", "LOC_CUSTOM, TYPE_INT, NO_OFFSET, extra_NVX_gpu_memory_info" ], [ "GPU_MEMORY_INFO_EVICTED_MEMORY_NVX", "LOC_CUSTOM, TYPE_INT, NO_OFFSET, extra_NVX_gpu_memory_info" ], # GL_ARB_cull_distance [ "MAX_CULL_DISTANCES", "CONTEXT_INT(Const.MaxClipPlanes), extra_ARB_cull_distance" ], [ "MAX_COMBINED_CLIP_AND_CULL_DISTANCES", "CONTEXT_INT(Const.MaxClipPlanes), extra_ARB_cull_distance" ], # GL_ARB_compute_variable_group_size [ "MAX_COMPUTE_VARIABLE_GROUP_INVOCATIONS_ARB", "CONTEXT_INT(Const.MaxComputeVariableGroupInvocations), extra_ARB_compute_variable_group_size" ], + +# GL_ARB_sparse_buffer + [ "SPARSE_BUFFER_PAGE_SIZE_ARB", "CONTEXT_INT(Const.SparseBufferPageSize), extra_ARB_sparse_buffer" ], ]}, # Enums restricted to OpenGL Core profile { "apis": ["GL_CORE"], "params": [ # GL_ARB_shader_subroutine [ "MAX_SUBROUTINES", "CONST(MAX_SUBROUTINES), extra_ARB_shader_subroutine" ], [ "MAX_SUBROUTINE_UNIFORM_LOCATIONS", "CONST(MAX_SUBROUTINE_UNIFORM_LOCATIONS), extra_ARB_shader_subroutine" ], # GL_ARB_indirect_parameters [ "PARAMETER_BUFFER_BINDING_ARB", "LOC_CUSTOM, TYPE_INT, 0, extra_ARB_indirect_parameters" ], diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 5f8b889..778ef25 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -3815,20 +3815,23 @@ struct gl_constants bool LowerTCSPatchVerticesIn; /**< Lower gl_PatchVerticesIn to a uniform */ bool LowerTESPatchVerticesIn; /**< Lower gl_PatchVerticesIn to a uniform */ bool PrimitiveRestartForPatches; bool LowerCsDerivedVariables; /**< Lower gl_GlobalInvocationID and * gl_LocalInvocationIndex based on * other builtin variables. */ /** GL_OES_primitive_bounding_box */ bool NoPrimitiveBoundingBoxOutput; + /** GL_ARB_sparse_buffer */ + GLuint SparseBufferPageSize; + /** Used as an input for sha1 generation in the on-disk shader cache */ unsigned char *dri_config_options_sha1; }; /** * Enable flag for each OpenGL extension. Different device drivers will * enable different extensions at runtime. */ struct gl_extensions -- 2.9.3 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev