summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/iris/iris_state.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/iris/iris_state.c')
-rw-r--r--src/gallium/drivers/iris/iris_state.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c
index a24ffab51a3..1dafc91ee7a 100644
--- a/src/gallium/drivers/iris/iris_state.c
+++ b/src/gallium/drivers/iris/iris_state.c
@@ -1271,8 +1271,12 @@ iris_setup_state_base_address(struct iris_context *ice,
struct iris_batch *batch,
struct iris_bo *instruction_bo)
{
- if (ice->state.dirty & IRIS_DIRTY_STATE_BASE_ADDRESS)
- ice->state.dirty &= ~IRIS_DIRTY_STATE_BASE_ADDRESS;
+ if (!(ice->state.dirty & IRIS_DIRTY_STATE_BASE_ADDRESS))
+ return;
+
+ //iris_batchbuffer_flush(...)
+
+ ice->state.dirty &= ~IRIS_DIRTY_STATE_BASE_ADDRESS;
/* XXX: PIPE_CONTROLs */