From: Kenneth Graunke Date: Thu, 20 Sep 2018 20:32:07 +0000 (-0700) Subject: iris: fix context restore of 3DSTATE_CONSTANT ranges X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aaced066e89716d66a89a26923a4e3e1e52f5666;p=mesa.git 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! --- diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index 01d771ac4d4..bdded0a1efd 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -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];