From 18f9f17be522394575ba5ea88335a561ee5c4789 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 22 Apr 2024 10:20:14 -0400 Subject: [PATCH] zink: make unassigned io variables unreachable this should no longer be possible to hit Part-of: --- src/gallium/drivers/zink/zink_compiler.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/zink/zink_compiler.c b/src/gallium/drivers/zink/zink_compiler.c index 512cf05e82e..f29ef2e7563 100644 --- a/src/gallium/drivers/zink/zink_compiler.c +++ b/src/gallium/drivers/zink/zink_compiler.c @@ -2643,6 +2643,8 @@ assign_producer_var_io(gl_shader_stage stage, nir_variable *var, unsigned *reser unsigned slot = var->data.location; switch (slot) { case -1: + unreachable("there should be no UINT32_MAX location variables!"); + break; case VARYING_SLOT_POS: case VARYING_SLOT_PSIZ: case VARYING_SLOT_LAYER: