From a553c54abf92533daf442073dd3408c35f57d8ba Mon Sep 17 00:00:00 2001 From: Vadym Shovkoplias Date: Tue, 13 Feb 2018 11:38:22 -0700 Subject: mesa: add glsl version query (v4) Add support for GL_NUM_SHADING_LANGUAGE_VERSIONS and glGetStringi for GL_SHADING_LANGUAGE_VERSION v2: - Combine similar functionality into _mesa_get_shading_language_version() function. - Change GLSL version return mechanism. v3: - Add return of empty string for GLSL ver 1.10. - Move _mesa_get_shading_language_version() function to src/mesa/main/version.c. v4: - Add OpenGL version check. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104915 Signed-off-by: Andriy Khulap Signed-off-by: Vadym Shovkoplias Reviewed-by: Brian Paul --- src/mesa/main/get_hash_params.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mesa/main/get_hash_params.py') diff --git a/src/mesa/main/get_hash_params.py b/src/mesa/main/get_hash_params.py index e127b6bdb23..5d2afedc437 100644 --- a/src/mesa/main/get_hash_params.py +++ b/src/mesa/main/get_hash_params.py @@ -543,6 +543,9 @@ descriptor=[ # GL_ARB_texture_cube_map_array [ "TEXTURE_BINDING_CUBE_MAP_ARRAY_ARB", "LOC_CUSTOM, TYPE_INT, TEXTURE_CUBE_ARRAY_INDEX, extra_ARB_texture_cube_map_array_OES_texture_cube_map_array" ], + + # GL_NUM_SHADING_LANGUAGE_VERSIONS + [ "NUM_SHADING_LANGUAGE_VERSIONS", "LOC_CUSTOM, TYPE_INT, 0, extra_version_43" ], ]}, # Enums in OpenGL Core profile and ES 3.0 -- cgit v1.2.3