diff --git a/src/gallium/drivers/etnaviv/etnaviv_compiler_nir.c b/src/gallium/drivers/etnaviv/etnaviv_compiler_nir.c index e0559c18c5c..3286533cf8e 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_compiler_nir.c +++ b/src/gallium/drivers/etnaviv/etnaviv_compiler_nir.c @@ -556,6 +556,7 @@ emit_tex(struct etna_compile *c, nir_tex_instr * tex) break; case nir_tex_src_comparator: case nir_tex_src_ddy: + assert(!src2); src2 = &tex->src[i].src; break; default: