iris: put render batch first in fence code

this shouldn't matter, but it will make the next refactor easier
This commit is contained in:
Kenneth Graunke 2018-11-20 09:00:43 -08:00
parent d918c09975
commit c2a77efa71

View 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++) {