Module: Mesa
Branch: staging/23.3
Commit: fc2b8f9ee3d56f183957f2c5a9fae6f9e709aba5
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=fc2b8f9ee3d56f183957f2c5a9fae6f9e709aba5

Author: Tapani Pälli <[email protected]>
Date:   Thu Dec 14 13:12:23 2023 +0200

mesa: fix enum support for EXT_clip_cull_distance

Extension was enabled but required enums not.

Fixes: 979bcb9f428 ("glsl: add EXT_clip_cull_distance support based on 
ARB_cull_distance")
Signed-off-by: Tapani Pälli <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26688>
(cherry picked from commit 629b15f446a41492fc5057c04008c6de9c52b078)

---

 .pick_status.json                | 2 +-
 src/mesa/main/get_hash_params.py | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/.pick_status.json b/.pick_status.json
index f2c03ca069a..e211add33d4 100644
--- a/.pick_status.json
+++ b/.pick_status.json
@@ -174,7 +174,7 @@
         "description": "mesa: fix enum support for EXT_clip_cull_distance",
         "nominated": true,
         "nomination_type": 1,
-        "resolution": 0,
+        "resolution": 1,
         "main_sha": null,
         "because_sha": "979bcb9f4288564fb6c5807bcfbfd0a78176c3ef",
         "notes": null
diff --git a/src/mesa/main/get_hash_params.py b/src/mesa/main/get_hash_params.py
index 90d09c4a631..267efa5b3be 100644
--- a/src/mesa/main/get_hash_params.py
+++ b/src/mesa/main/get_hash_params.py
@@ -494,6 +494,10 @@ descriptor=[
 
 # GL_EXT_framebuffer_EXT  / GLES 3.0 + EXT_sRGB_write_control
   [ "FRAMEBUFFER_SRGB_EXT", "CONTEXT_BOOL(Color.sRGBEnabled), 
extra_EXT_framebuffer_sRGB" ],
+
+# GL_ARB_cull_distance, GL_EXT_clip_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" ],
 ]},
 
 { "apis": ["GLES", "GLES2"], "params": [
@@ -1009,10 +1013,6 @@ descriptor=[
   [ "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" ],
 

Reply via email to