From: Kenneth Graunke Date: Wed, 21 Nov 2018 19:54:37 +0000 (-0800) Subject: iris: Re-pin even if nothing is dirty X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=84a8c635279a54ba46bada9ef18ed6ea1d9538f9;p=mesa.git iris: Re-pin even if nothing is dirty --- diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index 36b9fdb9ab7..5ead5650f91 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -4442,6 +4442,11 @@ iris_upload_render_state(struct iris_context *ice, */ iris_use_pinned_bo(batch, ice->state.binder.bo, false); + if (!batch->contains_draw) { + iris_restore_render_saved_bos(ice, batch, draw); + batch->contains_draw = true; + } + iris_upload_dirty_render_state(ice, batch, draw); if (draw->index_size > 0) { @@ -4543,11 +4548,6 @@ iris_upload_render_state(struct iris_context *ice, //prim.BaseVertexLocation = ...; } - - if (!batch->contains_draw) { - iris_restore_render_saved_bos(ice, batch, draw); - batch->contains_draw = true; - } } static void