summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-07-20 00:47:40 -0700
committerKenneth Graunke <[email protected]>2019-02-21 10:26:07 -0800
commit5bd861de8bbbadf9f0094eb61575a57269fe643f (patch)
tree10c03b09cce6cffd407466481ec12eda38c68d5a
parent5e19885d5a48c4f09c31fe46697f3fd6e667d9a5 (diff)
iris: assert about passthrough shaders to make this easier to detect
otherwise it just silently fails and looks like some obscure problem
-rw-r--r--src/gallium/drivers/iris/iris_program.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/iris/iris_program.c b/src/gallium/drivers/iris/iris_program.c
index 1a425eb5333..c147d9ead4e 100644
--- a/src/gallium/drivers/iris/iris_program.c
+++ b/src/gallium/drivers/iris/iris_program.c
@@ -432,6 +432,10 @@ iris_update_compiled_tcs(struct iris_context *ice)
{
struct iris_uncompiled_shader *tcs =
ice->shaders.uncompiled[MESA_SHADER_TESS_CTRL];
+ struct iris_uncompiled_shader *tes =
+ ice->shaders.uncompiled[MESA_SHADER_TESS_EVAL];
+
+ assert(!(tes && !tcs));
if (!tcs)
return;