aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Faye-Lund <[email protected]>2019-07-15 12:03:08 +0200
committerErik Faye-Lund <[email protected]>2019-10-28 08:51:46 +0000
commitc947aee63bf67f4ae46ae51bf539a4447c8bf1c2 (patch)
tree869d0973ebeb5eac721526900745985a740cb462
parentc2f52cf94f68a918ecb5227074c6da03da34c4b0 (diff)
zink/spirv: debug-print unknown varying slots
Acked-by: Jordan Justen <[email protected]>
-rw-r--r--src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c b/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c
index 3792729ccb3..9683fb1416f 100644
--- a/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c
+++ b/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c
@@ -220,7 +220,8 @@ emit_input(struct ntv_context *ctx, struct nir_variable *var)
break;
default:
- unreachable("unknown varying slot");
+ debug_printf("unknown varying slot: %s\n", gl_varying_slot_name(var->data.location));
+ unreachable("unexpected varying slot");
}
}
} else {
@@ -276,7 +277,8 @@ emit_output(struct ntv_context *ctx, struct nir_variable *var)
break;
default:
- unreachable("unknown varying slot");
+ debug_printf("unknown varying slot: %s\n", gl_varying_slot_name(var->data.location));
+ unreachable("unexpected varying slot");
}
}
} else if (ctx->stage == MESA_SHADER_FRAGMENT) {