aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gallium/drivers/lima/lima_draw.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gallium/drivers/lima/lima_draw.c b/src/gallium/drivers/lima/lima_draw.c
index d39e198cd9b..3b8f7526f32 100644
--- a/src/gallium/drivers/lima/lima_draw.c
+++ b/src/gallium/drivers/lima/lima_draw.c
@@ -1693,10 +1693,8 @@ lima_pipe_flush(struct pipe_context *pctx, struct pipe_fence_handle **fence,
unsigned flags)
{
struct lima_context *ctx = lima_context(pctx);
- if (!lima_ctx_dirty(ctx))
- return;
-
- _lima_flush(ctx, flags & PIPE_FLUSH_END_OF_FRAME);
+ if (lima_ctx_dirty(ctx))
+ _lima_flush(ctx, flags & PIPE_FLUSH_END_OF_FRAME);
if (fence) {
int fd;