iris: put render batch first in fence code
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 20 Nov 2018 17:00:43 +0000 (09:00 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Feb 2019 18:26:10 +0000 (10:26 -0800)
this shouldn't matter, but it will make the next refactor easier

src/gallium/drivers/iris/iris_fence.c

index 8c0d5b9..2ab11b8 100644 (file)
@@ -161,8 +161,8 @@ iris_fence_flush(struct pipe_context *ctx,
    struct iris_screen *screen = (void *) ctx->screen;
    struct iris_context *ice = (struct iris_context *)ctx;
    struct iris_batch *batch[IRIS_BATCH_COUNT] = {
+      &ice->render_batch,
       &ice->compute_batch,
-      &ice->render_batch
    };
 
    /* XXX PIPE_FLUSH_DEFERRED */
@@ -194,8 +194,8 @@ iris_fence_await(struct pipe_context *ctx,
 {
    struct iris_context *ice = (struct iris_context *)ctx;
    struct iris_batch *batch[IRIS_BATCH_COUNT] = {
+      &ice->render_batch,
       &ice->compute_batch,
-      &ice->render_batch
    };
    for (unsigned b = 0; b < ARRAY_SIZE(batch); b++) {
       for (unsigned i = 0; i < fence->count; i++) {