iris: Flag constants dirty on program changes
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 3 Nov 2018 13:44:48 +0000 (06:44 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:09 +0000 (10:26 -0800)
commit84a419432deffd47f166819e432a5f927f149263
tree9f80f263aa5c2f2ba336907efdf5f0c9c1791ad0
parent317ba8796f5572e657c0bfae643c2e2917157c7c
iris: Flag constants dirty on program changes

3DSTATE_CONSTANT_* looks at prog_data->ubo_ranges.  We were getting
saved by iris_set_constant_buffers() usually happening when changing
programs (as they usually change uniforms too), but with the clear
shader that doesn't use uniforms, we weren't getting one and were
leaving push constants enabled, screwing things up.

Also clean up a bit of a mess left by the hacks - we were missing
bindings in the VS/FS/CS case, among other issues...
src/gallium/drivers/iris/iris_program_cache.c