From c837156e99b2832e9233aef182731dc8bd85c180 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 26 Apr 2023 10:20:45 -0400 Subject: [PATCH] asahi: Bind staging resources as RENDER_TARGET This doesn't matter in practice (at least with mesa/st), but it's more correct technically. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/asahi/agx_pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/asahi/agx_pipe.c b/src/gallium/drivers/asahi/agx_pipe.c index dfbb405..351bd8f 100644 --- a/src/gallium/drivers/asahi/agx_pipe.c +++ b/src/gallium/drivers/asahi/agx_pipe.c @@ -809,11 +809,11 @@ agx_alloc_staging(struct pipe_screen *screen, struct agx_resource *rsc, } tmpl.last_level = 0; - tmpl.bind |= PIPE_BIND_LINEAR; /* Linear is incompatible with depth/stencil, so we convert */ tmpl.format = agx_staging_color_format_for_zs(rsc->layout.format); tmpl.bind &= ~PIPE_BIND_DEPTH_STENCIL; + tmpl.bind |= PIPE_BIND_LINEAR | PIPE_BIND_RENDER_TARGET; struct pipe_resource *pstaging = screen->resource_create(screen, &tmpl); if (!pstaging) -- 2.7.4