From 84a8c635279a54ba46bada9ef18ed6ea1d9538f9 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Wed, 21 Nov 2018 11:54:37 -0800 Subject: [PATCH] iris: Re-pin even if nothing is dirty --- src/gallium/drivers/iris/iris_state.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 -- 2.30.2