iris: assert about passthrough shaders to make this easier to detect

otherwise it just silently fails and looks like some obscure problem
This commit is contained in:
Kenneth Graunke
2018-07-20 00:47:40 -07:00
parent 5e19885d5a
commit 5bd861de8b

View File

@@ -432,6 +432,10 @@ iris_update_compiled_tcs(struct iris_context *ice)
{ {
struct iris_uncompiled_shader *tcs = struct iris_uncompiled_shader *tcs =
ice->shaders.uncompiled[MESA_SHADER_TESS_CTRL]; ice->shaders.uncompiled[MESA_SHADER_TESS_CTRL];
struct iris_uncompiled_shader *tes =
ice->shaders.uncompiled[MESA_SHADER_TESS_EVAL];
assert(!(tes && !tcs));
if (!tcs) if (!tcs)
return; return;