From f79557dd38db2fdf6fc1c009aec969508b69d50a Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 19 Mar 2024 16:07:09 -0400 Subject: [PATCH] zink: do io fixup on patch variables too fixes spec@arb_separate_shader_objects@rendezvous by location (5 stages) cc: mesa-stable Part-of: --- src/gallium/drivers/zink/zink_compiler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_compiler.c b/src/gallium/drivers/zink/zink_compiler.c index 6acf9124f2e..3de4f9842eb 100644 --- a/src/gallium/drivers/zink/zink_compiler.c +++ b/src/gallium/drivers/zink/zink_compiler.c @@ -4975,7 +4975,7 @@ fixup_io_locations(nir_shader *nir) * iterate over all locations and set locations incrementally */ unsigned slot = 0; - for (unsigned i = 0; i < VARYING_SLOT_MAX; i++) { + for (unsigned i = 0; i < VARYING_SLOT_TESS_MAX; i++) { if (nir_slot_is_sysval_output(i, MESA_SHADER_NONE)) continue; bool found = false;