summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/iris/iris_batch.h
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2018-01-20 23:11:37 -0800
committerKenneth Graunke <[email protected]>2019-02-21 10:26:05 -0800
commitb701096ab9577527531db8ef0cdc1761bde4f21c (patch)
tree06335b38d975594a06653bef45b0942a635eaaf4 /src/gallium/drivers/iris/iris_batch.h
parent64f043570da6c2293c056a12a8d439a370241f9f (diff)
iris: make iris_batch target a particular ring
Diffstat (limited to 'src/gallium/drivers/iris/iris_batch.h')
-rw-r--r--src/gallium/drivers/iris/iris_batch.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gallium/drivers/iris/iris_batch.h b/src/gallium/drivers/iris/iris_batch.h
index 10d815f839c..2074b058061 100644
--- a/src/gallium/drivers/iris/iris_batch.h
+++ b/src/gallium/drivers/iris/iris_batch.h
@@ -64,6 +64,9 @@ struct iris_batch {
uint32_t hw_ctx_id;
+ /** Which ring this batch targets - a I915_EXEC_RING_MASK value */
+ uint8_t ring;
+
bool no_wrap;
/** The validation list */
@@ -79,9 +82,10 @@ struct iris_batch {
struct hash_table *state_sizes;
};
-void iris_batch_init(struct iris_batch *batch,
+void iris_init_batch(struct iris_batch *batch,
struct iris_screen *screen,
- struct pipe_debug_callback *dbg);
+ struct pipe_debug_callback *dbg,
+ uint8_t ring);
void iris_batch_free(struct iris_batch *batch);
void iris_require_command_space(struct iris_batch *batch, unsigned size);
void iris_require_state_space(struct iris_batch *batch, unsigned size);