radeonsi/nir: Use correct location for uniform access bound
authorConnor Abbott <cwabbott0@gmail.com>
Wed, 29 May 2019 15:09:45 +0000 (17:09 +0200)
committerConnor Abbott <cwabbott0@gmail.com>
Fri, 31 May 2019 09:02:57 +0000 (11:02 +0200)
commitfca1a35163769f0476d559660a8f2c40054e9fd7
tree700bcc0d733a54c51d5783b7ba05cd747d210a18
parent6571032af1d2c00150c4a6699a5fc385dd174ab9
radeonsi/nir: Use correct location for uniform access bound

location is the API-level location, but driver_location is the actual
location the uniform gets passed to the driver. This apparently only
caused failures with builtins, where the location is 0 because it's
represented via the state tokens instead.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/gallium/drivers/radeonsi/si_shader_nir.c