iris: flag SBA updates when instruction BO changes

This commit is contained in:
Kenneth Graunke 2018-01-21 00:36:54 -08:00
parent 7d90cc8da4
commit f31ae76216
2 changed files with 8 additions and 2 deletions

View file

@ -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 *

View file

@ -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 */