gallium: Fix setup of pstipple frag coord var.
authorEric Anholt <eric@anholt.net>
Tue, 21 Apr 2020 23:18:42 +0000 (16:18 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 23 Apr 2020 18:52:46 +0000 (18:52 +0000)
commite82ce1852a40d2648c98317da2c0f2cf656d15c7
tree7e47fbbebeb81887c1ef0e697eb25f086a2dd59d
parent035fd4fb9f403f281e95b63290fa6e3e6a6ee22f
gallium: Fix setup of pstipple frag coord var.

If the last input was a struct or matrix, we would have overlapped driver
locations for our new position var.

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
Reviewed-by: Jose Maria Casanova Crespo <jmcasanova@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4670>
src/gallium/auxiliary/nir/nir_draw_helpers.c