diff options
author | Kenneth Graunke <[email protected]> | 2018-07-20 00:47:40 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:07 -0800 |
commit | 5bd861de8bbbadf9f0094eb61575a57269fe643f (patch) | |
tree | 10c03b09cce6cffd407466481ec12eda38c68d5a | |
parent | 5e19885d5a48c4f09c31fe46697f3fd6e667d9a5 (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.c | 4 |
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; |