From: Kenneth Graunke Date: Tue, 20 Nov 2018 17:00:43 +0000 (-0800) Subject: iris: put render batch first in fence code X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c2a77efa71f4b36708575652b89165745c4ad054;p=mesa.git iris: put render batch first in fence code this shouldn't matter, but it will make the next refactor easier --- diff --git a/src/gallium/drivers/iris/iris_fence.c b/src/gallium/drivers/iris/iris_fence.c index 8c0d5b97171..2ab11b80697 100644 --- a/src/gallium/drivers/iris/iris_fence.c +++ b/src/gallium/drivers/iris/iris_fence.c @@ -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++) {