zink: make unassigned io variables unreachable

this should no longer be possible to hit

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28884>
This commit is contained in:
Mike Blumenkrantz
2024-04-22 10:20:14 -04:00
committed by Marge Bot
parent 390ac5ba14
commit 18f9f17be5

View File

@@ -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: