From: Michael Tretter <m.tret...@pengutronix.de> Ignore ssa_undef nir instructions when generating code, because all users of the undefined values are removed and undefined values are not used. The instructions should be removed while rewriting the users of undefined variables, but are not removed yet.
Signed-off-by: Michael Tretter <m.tret...@pengutronix.de> Signed-off-by: Philipp Zabel <p.za...@pengutronix.de> --- src/gallium/drivers/etnaviv/etnaviv_compiler.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/etnaviv/etnaviv_compiler.c b/src/gallium/drivers/etnaviv/etnaviv_compiler.c index 66553199fe19..f17b9979b705 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_compiler.c +++ b/src/gallium/drivers/etnaviv/etnaviv_compiler.c @@ -2199,6 +2199,9 @@ etna_emit_instr(struct etna_compile *c, nir_instr *instr) case nir_instr_type_load_const: /* Nothing to do */ break; + case nir_instr_type_ssa_undef: + /* TODO: ssa_undef should be removed already */ + break; default: BUG("Unhandled nir_instr: %d", instr->type); assert(0); -- 2.17.1 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev