From eef7fff852978f23434bcaf6bc6af1ada215e4ff Mon Sep 17 00:00:00 2001 From: Asahi Lina Date: Thu, 15 Jun 2023 02:49:25 +0900 Subject: [PATCH] asahi: Pass through surface sample count This makes PIPE_CAP_SURFACE_SAMPLE_COUNT do something, namely, explode with lots of fireworks. We'll have to figure out what's wrong, but at least now we aren't just not trying at all. Should not break anything as long as PIPE_CAP_SURFACE_SAMPLE_COUNT is not flipped on. Signed-off-by: Asahi Lina Part-of: --- src/gallium/drivers/asahi/agx_state.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/asahi/agx_state.c b/src/gallium/drivers/asahi/agx_state.c index 528e0f071d2..0f0f4608e25 100644 --- a/src/gallium/drivers/asahi/agx_state.c +++ b/src/gallium/drivers/asahi/agx_state.c @@ -888,6 +888,7 @@ agx_create_surface(struct pipe_context *ctx, struct pipe_resource *texture, surface->context = ctx; surface->format = surf_tmpl->format; + surface->nr_samples = surf_tmpl->nr_samples; surface->width = u_minify(texture->width0, level); surface->height = u_minify(texture->height0, level); surface->texture = texture;