From: Kenneth Graunke Date: Sun, 21 Jan 2018 08:36:54 +0000 (-0800) Subject: iris: flag SBA updates when instruction BO changes X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f31ae762161af10bde1e896dbb37e9f48a0c7f01;p=mesa.git iris: flag SBA updates when instruction BO changes --- diff --git a/src/gallium/drivers/iris/iris_program_cache.c b/src/gallium/drivers/iris/iris_program_cache.c index 2cbd635684d..8287b7eda15 100644 --- a/src/gallium/drivers/iris/iris_program_cache.c +++ b/src/gallium/drivers/iris/iris_program_cache.c @@ -160,6 +160,8 @@ recreate_cache_bo(struct iris_context *ice, uint32_t size) iris_bo_unreference(old_bo); iris_bo_unmap(old_bo); } + + ice->state.dirty |= IRIS_DIRTY_STATE_BASE_ADDRESS; } const void * 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 */