From 3643450dc0958cfc76455c2ac303bf2c8063582f Mon Sep 17 00:00:00 2001 From: Jordan Justen Date: Tue, 31 Aug 2021 13:22:24 -0700 Subject: [PATCH] iris/batch: Add exec_flags field Signed-off-by: Jordan Justen Reviewed-by: Paulo Zanoni Reviewed-by: Kenneth Graunke Part-of: --- src/gallium/drivers/iris/iris_batch.c | 3 ++- src/gallium/drivers/iris/iris_batch.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/iris/iris_batch.c b/src/gallium/drivers/iris/iris_batch.c index 66651068974..47c7208cde9 100644 --- a/src/gallium/drivers/iris/iris_batch.c +++ b/src/gallium/drivers/iris/iris_batch.c @@ -242,6 +242,7 @@ iris_init_non_engine_contexts(struct iris_context *ice, int priority) for (int i = 0; i < IRIS_BATCH_COUNT; i++) { struct iris_batch *batch = &ice->batches[i]; batch->hw_ctx_id = iris_create_hw_context(screen->bufmgr); + batch->exec_flags = I915_EXEC_RENDER; assert(batch->hw_ctx_id); iris_hw_context_set_priority(screen->bufmgr, batch->hw_ctx_id, priority); } @@ -842,7 +843,7 @@ submit_batch(struct iris_batch *batch) .batch_start_offset = 0, /* This must be QWord aligned. */ .batch_len = ALIGN(batch->primary_batch_size, 8), - .flags = I915_EXEC_RENDER | + .flags = batch->exec_flags | I915_EXEC_NO_RELOC | I915_EXEC_BATCH_FIRST | I915_EXEC_HANDLE_LUT, diff --git a/src/gallium/drivers/iris/iris_batch.h b/src/gallium/drivers/iris/iris_batch.h index b568239a4e1..230d63b28c4 100644 --- a/src/gallium/drivers/iris/iris_batch.h +++ b/src/gallium/drivers/iris/iris_batch.h @@ -80,6 +80,7 @@ struct iris_batch { uint64_t last_surface_base_address; uint32_t hw_ctx_id; + uint32_t exec_flags; /** A list of all BOs referenced by this batch */ struct iris_bo **exec_bos;