prog_to_nir: fix write from vps to FOG
authorKarol Herbst <kherbst@redhat.com>
Tue, 26 Feb 2019 10:58:11 +0000 (11:58 +0100)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 8 Mar 2019 18:35:12 +0000 (10:35 -0800)
commit8a8742d32799eeb52eb7dbd4fd134a028b099d4d
tree34a10c0f7c7a4dca5defbfc58625a275abb0ee51
parentbca28deb46235cae3079dba29c5a62cf2168e4b3
prog_to_nir: fix write from vps to FOG

for fragment programs we already treat fog as a single component value,
but for vp we didn't.

Fixes fog related piglit tests with my out of tree Nouveau nir patches.

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/program/prog_to_nir.c