iris: Don't assume UBO indices are constant
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 29 May 2019 02:56:04 +0000 (21:56 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Wed, 29 May 2019 21:09:16 +0000 (21:09 +0000)
commit9dc57eebd578b976b94c54d083377ba0920d43a8
tree46a13f227b9b06aaef9ec0ff7afdadadfae5d9df
parent744f93f5c1e0d1e000e44f61e721c2d5fb545025
iris: Don't assume UBO indices are constant

It will be true for the constant/system value buffer because they use a
constant zero but it's not true in general.  If we ever got here when
the source wasn't constant, nir_src_as_uint would assert.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Cc: mesa-stable@lists.freedesktop.org
src/gallium/drivers/iris/iris_program.c