From 92cd946028fbaf012ff9f75f6cd47cfda2835761 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Tue, 6 Jun 2023 19:44:40 -0400 Subject: [PATCH] asahi: Mark writeable images as such ail needs this information to select the appropriate layout. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/asahi/agx_pipe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/asahi/agx_pipe.c b/src/gallium/drivers/asahi/agx_pipe.c index 2fd07a2ca40..f26287079d5 100644 --- a/src/gallium/drivers/asahi/agx_pipe.c +++ b/src/gallium/drivers/asahi/agx_pipe.c @@ -163,6 +163,7 @@ agx_resource_setup(struct agx_device *dev, struct agx_resource *nresource) .depth_px = templ->depth0 * templ->array_size, .sample_count_sa = MAX2(templ->nr_samples, 1), .levels = templ->last_level + 1, + .writeable_image = templ->bind & PIPE_BIND_SHADER_IMAGE, }; }