From aaced066e89716d66a89a26923a4e3e1e52f5666 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Thu, 20 Sep 2018 13:32:07 -0700 Subject: [PATCH] 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! --- src/gallium/drivers/iris/iris_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; -- 2.30.2