From 2765749e0f2b72e53cd89e29dce365571279bfdf Mon Sep 17 00:00:00 2001 From: Sagar Ghuge Date: Fri, 27 Jul 2018 15:03:54 -0700 Subject: [PATCH] mesa: add EXTRA_EXT for AMD_depth_clamp_separate MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Sagar Ghuge Reviewed-by: Ian Romanick Reviewed-by: Marek Olšák --- src/mesa/main/get.c | 1 + src/mesa/main/get_hash_params.py | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/mesa/main/get.c b/src/mesa/main/get.c index 16625e92e25..1b1679e8bf7 100644 --- a/src/mesa/main/get.c +++ b/src/mesa/main/get.c @@ -468,6 +468,7 @@ EXTRA_EXT(NV_texture_rectangle); EXTRA_EXT(EXT_stencil_two_side); EXTRA_EXT(EXT_depth_bounds_test); EXTRA_EXT(ARB_depth_clamp); +EXTRA_EXT(AMD_depth_clamp_separate); EXTRA_EXT(ATI_fragment_shader); EXTRA_EXT(EXT_provoking_vertex); EXTRA_EXT(ARB_fragment_shader); diff --git a/src/mesa/main/get_hash_params.py b/src/mesa/main/get_hash_params.py index 87ed4bfaeac..1840db6ebbc 100644 --- a/src/mesa/main/get_hash_params.py +++ b/src/mesa/main/get_hash_params.py @@ -989,6 +989,11 @@ descriptor=[ # GL_ARB_indirect_parameters [ "PARAMETER_BUFFER_BINDING_ARB", "LOC_CUSTOM, TYPE_INT, 0, extra_ARB_indirect_parameters" ], + +# GL 4.1 +# GL_AMD_depth_clamp_separate + [ "DEPTH_CLAMP_NEAR_AMD", "CONTEXT_BOOL(Transform.DepthClampNear), extra_AMD_depth_clamp_separate" ], + [ "DEPTH_CLAMP_FAR_AMD", "CONTEXT_BOOL(Transform.DepthClampFar), extra_AMD_depth_clamp_separate" ], ]}, ] -- 2.30.2