v3d: Fix assertion failures in debug builds.
authorEric Anholt <eric@anholt.net>
Tue, 16 Jul 2019 18:59:35 +0000 (11:59 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 18 Jul 2019 18:28:56 +0000 (11:28 -0700)
commit40e760960319bc8c9ee943c3d8136e23ef474d59
tree7541abfa706d04d278c5893a324fa91d102b8aab
parent1bced0fad2feeca34ef9d2a2d28b05e234d25e36
v3d: Fix assertion failures in debug builds.

nir_lower_io leaves around deref_var instructions after lowering away
deref intrinsics.  This ends up breaking validation after v3d_nir_lower_io
removes variables not actually being stored by the shader's
store_output()s.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/broadcom/compiler/vir.c