iris: rename ring to engine
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 31 Jul 2018 23:10:50 +0000 (16:10 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:08 +0000 (10:26 -0800)
makes more sense these days.  split from a patch by Chris Wilson

src/gallium/drivers/iris/iris_batch.c
src/gallium/drivers/iris/iris_batch.h
src/gallium/drivers/iris/iris_state.c

index bae1720601ed4aa236fea37b3b9d237a9b1d4d19..94c66409e1a1c13406bec3181538a0a44b31b6ef 100644 (file)
@@ -144,16 +144,16 @@ iris_init_batch(struct iris_batch *batch,
                 struct iris_screen *screen,
                 struct iris_vtable *vtbl,
                 struct pipe_debug_callback *dbg,
-                uint8_t ring)
+                uint8_t engine)
 {
    batch->screen = screen;
    batch->vtbl = vtbl;
    batch->dbg = dbg;
 
-   /* ring should be one of I915_EXEC_RENDER, I915_EXEC_BLT, etc. */
-   assert((ring & ~I915_EXEC_RING_MASK) == 0);
-   assert(util_bitcount(ring) == 1);
-   batch->ring = ring;
+   /* engine should be one of I915_EXEC_RENDER, I915_EXEC_BLT, etc. */
+   assert((engine & ~I915_EXEC_RING_MASK) == 0);
+   assert(util_bitcount(engine) == 1);
+   batch->engine = engine;
 
    batch->exec_count = 0;
    batch->exec_array_size = 100;
@@ -419,7 +419,7 @@ submit_batch(struct iris_batch *batch, int in_fence_fd, int *out_fence_fd)
       .buffer_count = batch->exec_count,
       .batch_start_offset = 0,
       .batch_len = batch->primary_batch_size,
-      .flags = batch->ring |
+      .flags = batch->engine |
                I915_EXEC_NO_RELOC |
                I915_EXEC_BATCH_FIRST |
                I915_EXEC_HANDLE_LUT,
index 950022b63be7280c91400f527620a8d479195de8..795a6981ec6c5089671a2fdc8a611f7bdc994a44 100644 (file)
@@ -56,8 +56,8 @@ struct iris_batch {
 
    uint32_t hw_ctx_id;
 
-   /** Which ring this batch targets - a I915_EXEC_RING_MASK value */
-   uint8_t ring;
+   /** Which engine this batch targets - a I915_EXEC_RING_MASK value */
+   uint8_t engine;
 
    /** The validation list */
    struct drm_i915_gem_exec_object2 *validation_list;
index 434626d27259ffa95fa3bac4d2dd7724065ddb35..d67c9bd84b2426d3262b42bb3498edf06b4160e6 100644 (file)
@@ -3831,7 +3831,7 @@ get_post_sync_flags(enum pipe_control_flags flags)
 }
 
 // XXX: compute support
-#define IS_COMPUTE_PIPELINE(batch) (batch->ring != I915_EXEC_RENDER)
+#define IS_COMPUTE_PIPELINE(batch) (batch->engine != I915_EXEC_RENDER)
 
 /**
  * Emit a series of PIPE_CONTROL commands, taking into account any