From: Kenneth Graunke Date: Sat, 3 Nov 2018 14:24:54 +0000 (-0700) Subject: iris: fix overhead regression from "don't stomp each other's dirty bits" X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aef1ba5ce4fe2c2359d2927f209107853440bb5a;p=mesa.git iris: fix overhead regression from "don't stomp each other's dirty bits" The change from dirty = 0ull to dirty &= ~NOT_MY_BITS broke the "nothing to do? skip it!" optimization. thanks to Chris for noticing this! --- diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index be7ca83d4b3..859c96717bc 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -3766,7 +3766,7 @@ iris_upload_dirty_render_state(struct iris_context *ice, { const uint64_t dirty = ice->state.dirty; - if (!dirty) + if (!(dirty & IRIS_ALL_DIRTY_FOR_RENDER)) return; struct iris_genx_state *genx = ice->state.genx;