OSDN Git Service

nir/lower_io_to_vector: don't create arrays when not needed
authorRhys Perry <pendingchaos02@gmail.com>
Thu, 14 Nov 2019 15:31:52 +0000 (15:31 +0000)
committerRhys Perry <pendingchaos02@gmail.com>
Mon, 2 Dec 2019 17:45:01 +0000 (17:45 +0000)
commit5404b7aaa36fad18df19e12abcc8af69014e74c2
tree6338219f12a599931a86e22f8289162e54318242
parent01cacdb71ee45067dd8fa48298530bd8a05c53d0
nir/lower_io_to_vector: don't create arrays when not needed

Some backends require that there are no array varyings.

If there were no arrays in the input shader, the pass shouldn't have to
create new ones.

Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2103
Fixes: bcd14756eec ('nir/lower_io_to_vector: add flat mode')
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/compiler/nir/nir_lower_io_to_vector.c