st/mesa: Treat vertex outputs absent in outputMapping as zero in mesa_to_tgsi
authorDanylo Piliaiev <danylo.piliaiev@globallogic.com>
Wed, 5 Aug 2020 15:07:06 +0000 (18:07 +0300)
committerMarge Bot <eric+marge@anholt.net>
Thu, 6 Aug 2020 16:53:50 +0000 (16:53 +0000)
commit782ba8d3ae55af392da8ca829f3a185c10bbecfc
tree607e14e85da34849803a3318c2b7be6adcb533f9
parenta92cfa66b4ebf51b59fda81bd65d83f4ca013e7e
st/mesa: Treat vertex outputs absent in outputMapping as zero in mesa_to_tgsi

After updating vertex outputs being written based on optimized NIR, they may
go out of sync with outputs in mesa IR. Which is translated to TGSI and used
together with NIR if draw doesn't have llvm.

It's much easier to treat such outputs as zero because there is no pass to
entirely get rid of them.

Similar to eeab9c93db84e5759145891e8fdde66a5cdcf917 but now for outputs.

Fixes: d684fb37bfbc47d098158cb03c0672119a4469fe
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3365
Signed-off-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6187>
src/mesa/state_tracker/st_mesa_to_tgsi.c