From 2d8a714f9c3afaa331c1fb4a82b61b3cc057b294 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Fri, 24 Nov 2023 23:34:00 -0400 Subject: [PATCH] asahi: choose staging bind better Signed-off-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/asahi/agx_pipe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/asahi/agx_pipe.c b/src/gallium/drivers/asahi/agx_pipe.c index a15020e8599..39381dc9bf6 100644 --- a/src/gallium/drivers/asahi/agx_pipe.c +++ b/src/gallium/drivers/asahi/agx_pipe.c @@ -877,8 +877,8 @@ agx_alloc_staging(struct pipe_screen *screen, struct agx_resource *rsc, /* 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; + tmpl.bind = + PIPE_BIND_LINEAR | PIPE_BIND_RENDER_TARGET | PIPE_BIND_SAMPLER_VIEW; struct pipe_resource *pstaging = screen->resource_create(screen, &tmpl); if (!pstaging)