iris: assert about passthrough shaders to make this easier to detect
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 20 Jul 2018 07:47:40 +0000 (00:47 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:07 +0000 (10:26 -0800)
otherwise it just silently fails and looks like some obscure problem

src/gallium/drivers/iris/iris_program.c

index 1a425eb53338651174b9cbe937d74bbf5025a267..c147d9ead4e4b94db01e59a916c792860b338d91 100644 (file)
@@ -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;