nir/spirv: Add the option to keep ViewIndex as an input
authorConnor Abbott <cwabbott0@gmail.com>
Tue, 30 Jun 2020 11:47:22 +0000 (13:47 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 19 Aug 2020 16:36:43 +0000 (16:36 +0000)
commit340c73d4efd6198df077bc0f8b4e670df42f6ec6
tree4bb3afd48426ce1a7b887b3630e6c5c08983514d
parentc1e69570331183987dd4d490fd12acdf94982953
nir/spirv: Add the option to keep ViewIndex as an input

This is necessary for fragment shaders on adreno.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5719>
src/compiler/spirv/nir_spirv.h
src/compiler/spirv/vtn_variables.c