diff --git a/src/gallium/drivers/iris/iris_context.c b/src/gallium/drivers/iris/iris_context.c index c594f19beb9..14c5d1dbad9 100644 --- a/src/gallium/drivers/iris/iris_context.c +++ b/src/gallium/drivers/iris/iris_context.c @@ -42,7 +42,9 @@ iris_flush(struct pipe_context *ctx, struct iris_context *ice = (struct iris_context *)ctx; iris_batch_flush(&ice->render_batch); - iris_batch_flush(&ice->compute_batch); + + if (ice->compute_batch.contains_draw) + iris_batch_flush(&ice->compute_batch); // XXX: bogus!!! if (fence)