nir: fix 2 bugs in nir_create_passthrough_tcs
authorMarek Olšák <marek.olsak@amd.com>
Sat, 11 Mar 2023 04:03:58 +0000 (23:03 -0500)
committerMarge Bot <emma+marge@anholt.net>
Wed, 19 Apr 2023 21:42:11 +0000 (21:42 +0000)
commitace8a7068e0afde499f6f0146daa6041f4b9d250
tree83609020f76f01e79a9d3d3f7438bc11454b2da1
parent13e885842a4b962cd02f57e140b348daf551dff3
nir: fix 2 bugs in nir_create_passthrough_tcs

- VAR31 was ignored.
- Only a half of the 16-bit slot was passed through, though I'm not sure
  if nir_lower_io handles vec8. The slots are only for GLES and I don't
  think a passthrough TCS is possible with GLES.

Fixes: a8e84f50bc6c8 - nir: Add helper to create passthrough TCS shader

Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21861>
src/compiler/nir/nir_passthrough_tcs.c