nir: Move new edgeflag assert into the io_lowered case
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 25 Aug 2020 00:00:33 +0000 (17:00 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 25 Aug 2020 16:43:19 +0000 (16:43 +0000)
commit2a9ffc24cc7a8d782c60265e6a28f0a0067b292c
treecfb3b7f1f114c0335cdfdc95f3d29f5ef3aacfcc
parent2fcfcca842a6c3ca77f38791da88b185839f064a
nir: Move new edgeflag assert into the io_lowered case

We only need to assert this in the `io_lowered` case, which actually
uses num_outputs.  This assert also doesn't appear to hold on iris,
where num_outputs is showing up as 0 (because it's likely not yet set).

Fixes assertion failures in edgeflag related tests on iris, which
doesn't use the io_lowered path currently.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3456
Fixes: 484a60d5474 ("nir: generate lowered IO in nir_lower_passthrough_edgeflags")
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6450>
src/compiler/nir/nir_lower_passthrough_edgeflags.c