asahi: Fix rendering into mipmapped framebuffers

batch->key.width will be minified, but then the PBE::level field will
incorrectly minify again.

Fixes dEQP-GLES31.functional.shaders.framebuffer_fetch.basic.framebuffer_texture_level

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21400>
This commit is contained in:
Alyssa Rosenzweig
2023-02-09 14:29:29 -05:00
committed by Marge Bot
parent 0e0825013d
commit dee4784e53
+2 -2
View File
@@ -1088,8 +1088,8 @@ agx_batch_upload_pbe(struct agx_batch *batch, unsigned rt)
if (desc->nr_channels >= 4)
cfg.swizzle_a = agx_channel_from_pipe(desc->swizzle[3]) & 3;
cfg.width = batch->key.width;
cfg.height = batch->key.height;
cfg.width = surf->texture->width0;
cfg.height = surf->texture->height0;
cfg.level = surf->u.tex.level;
cfg.buffer = agx_map_texture_gpu(tex, layer);
cfg.unk_mipmapped = tex->mipmapped;