Mesa (main): iris/batch: Add exec_flags field
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Dec 3 01:14:03 UTC 2021
Module: Mesa
Branch: main
Commit: 3643450dc0958cfc76455c2ac303bf2c8063582f
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3643450dc0958cfc76455c2ac303bf2c8063582f
Author: Jordan Justen <jordan.l.justen at intel.com>
Date: Tue Aug 31 13:22:24 2021 -0700
iris/batch: Add exec_flags field
Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni at intel.com>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12692>
---
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;
More information about the mesa-commit
mailing list