/* this is actually a zink_ctx_surface, but we just want the inner surface */
struct zink_surface *surface = zink_csurface(psurf);
FREE(psurf);
- flush_pending_clears(ctx, res);
+ if (is_compute)
+ flush_pending_clears(ctx, res);
return surface;
}
update |= iv != b->image_view->image_view;
} else if (a != b)
update = true;
- flush_pending_clears(ctx, res);
+ if (shader_type == PIPE_SHADER_COMPUTE)
+ flush_pending_clears(ctx, res);
check_for_layout_update(ctx, res, shader_type == PIPE_SHADER_COMPUTE);
zink_batch_usage_set(&b->image_view->batch_uses, ctx->batch.state);
if (!a)