From 4a783abd79aeea876d06f1f6da6955b2e0cb07eb Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 6 Apr 2023 14:29:33 -0400 Subject: [PATCH] nir/print: print location names for (some) tess slots these should be fine to print Acked-by: Caio Oliveira Part-of: --- src/compiler/nir/nir_print.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/compiler/nir/nir_print.c b/src/compiler/nir/nir_print.c index e7b03f3..4ea1bae 100644 --- a/src/compiler/nir/nir_print.c +++ b/src/compiler/nir/nir_print.c @@ -695,6 +695,11 @@ get_location_str(unsigned location, gl_shader_stage stage, return gl_varying_slot_name_for_stage(location, stage); break; + case MESA_SHADER_TESS_CTRL: + case MESA_SHADER_TESS_EVAL: + if (location >= VARYING_SLOT_MAX) + break; + FALLTHROUGH; case MESA_SHADER_TASK: case MESA_SHADER_MESH: case MESA_SHADER_GEOMETRY: @@ -709,8 +714,6 @@ get_location_str(unsigned location, gl_shader_stage stage, return gl_frag_result_name(location); break; - case MESA_SHADER_TESS_CTRL: - case MESA_SHADER_TESS_EVAL: case MESA_SHADER_COMPUTE: case MESA_SHADER_KERNEL: default: -- 2.7.4