tgsi_to_nir: Set correct location for uniforms.
authorTimur Kristóf <timur.kristof@gmail.com>
Mon, 4 Mar 2019 14:10:55 +0000 (15:10 +0100)
committerEric Anholt <eric@anholt.net>
Tue, 5 Mar 2019 19:13:27 +0000 (19:13 +0000)
commit45809bcb33f273ac0b5c2511e1f2711af2eb1bad
treed19fdef9fa807db734def50a55b2f90b8581476e
parent770faf546d14db6a8eced0da406e48a32fabf551
tgsi_to_nir: Set correct location for uniforms.

Previously, only the driver_location was set for all variables,
but constants need to use the location field instead. This change
is necessary because the nine state tracker can produce non-packed
constants whose location needs to be explicitly set.

Signed-Off-By: Timur Kristóf <timur.kristof@gmail.com>
Tested-by: Andre Heider <a.heider@gmail.com>
Tested-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/gallium/auxiliary/nir/tgsi_to_nir.c