nir: fix lower_mediump_outputs to not require variables
authorMarek Olšák <marek.olsak@amd.com>
Sun, 6 Sep 2020 04:25:05 +0000 (00:25 -0400)
committerMarge Bot <eric+marge@anholt.net>
Thu, 10 Sep 2020 19:52:57 +0000 (19:52 +0000)
commit40f7afc1e97e11b65f9975f3c079f44e5357379f
treeedc2bc3a2fd473a1b6877d998b5d8962e374c4a5
parentc2ae39e0cea7ce43531c9de2e642ffb3add02ba2
nir: fix lower_mediump_outputs to not require variables

If IO is lowered, NIR doesn't have to contain any IO variables
(and in fact radeonsi removes them and other drivers should too).

This makes the pass work without variables.

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6621>
src/compiler/nir/nir_lower_mediump_outputs.c