radeonsi/nir: Use uniform location when calculating const_file_max.
authorTimur Kristóf <timur.kristof@gmail.com>
Tue, 19 Feb 2019 13:19:59 +0000 (14:19 +0100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Tue, 19 Feb 2019 23:37:47 +0000 (10:37 +1100)
commit9429bcc4b03c551be61e28f06f9a407a0bc1139c
tree55418429dd62885fb19c004a58b3c0dc197ef5e6
parentafb15d14ca19ea321280bb83215af4c55b9ce881
radeonsi/nir: Use uniform location when calculating const_file_max.

The nine state tracker can produce NIR uniform variables
whose location is explicitly set. radeonsi did not take that
into account when calculating const_file_max, resulting in
rendering glitches. This patch fixes that.

Signed-Off-By: Timur Kristóf <timur.kristof@gmail.com>
Tested-by: Andre Heider <a.heider@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/gallium/drivers/radeonsi/si_shader_nir.c