From 5bd861de8bbbadf9f0094eb61575a57269fe643f Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Fri, 20 Jul 2018 00:47:40 -0700 Subject: [PATCH] iris: assert about passthrough shaders to make this easier to detect otherwise it just silently fails and looks like some obscure problem --- src/gallium/drivers/iris/iris_program.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.30.2