iris: fix context restore of 3DSTATE_CONSTANT ranges

if clean we want to DO the pinning...not SKIP the pinning.

thanks to Jordan Justen for catching this!
This commit is contained in:
Kenneth Graunke 2018-09-20 13:32:07 -07:00
parent 58a6c99ebe
commit aaced066e8

View file

@ -3276,7 +3276,7 @@ iris_restore_context_saved_bos(struct iris_context *ice,
}
for (int stage = 0; stage <= MESA_SHADER_FRAGMENT; stage++) {
if (clean & (IRIS_DIRTY_CONSTANTS_VS << stage))
if (!(clean & (IRIS_DIRTY_CONSTANTS_VS << stage)))
continue;
struct iris_shader_state *shs = &ice->state.shaders[stage];