gallium/nir/tgsi: initialize file_max for inputs
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Tue, 17 Aug 2021 17:42:21 +0000 (19:42 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 19 Aug 2021 10:51:01 +0000 (10:51 +0000)
commit63529782d33b4c23282cebd7aef57bd70ff4e3fc
treedf36649a327650ad1b30a52c4178604024dbb92e
parent46746980081a8737b059dfcde7a0fea469837974
gallium/nir/tgsi: initialize file_max for inputs

When this was rewritten to support Vulkan, we stopped initializing
file_max to -1 in the case of no inputs. This causes the draw module
to go down a needlessly pessimistic case, printing an error while we're
at it.

Fixes: 42b5cfdbd26 ("gallivm/nir: fix vulkan vertex inputs")
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12440>
src/gallium/auxiliary/nir/nir_to_tgsi_info.c