asahi: Implement texturing with non-zero start level

Unsure if this comes up anywhere.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14903>
This commit is contained in:
Alyssa Rosenzweig
2022-01-18 19:04:23 -05:00
committed by Marge Bot
parent 11072cfd21
commit 7b4ea2fd38
+1 -1
View File
@@ -480,7 +480,7 @@ agx_create_sampler_view(struct pipe_context *pctx,
cfg.height = u_minify(texture->height0, level);
cfg.levels = state->u.tex.last_level - level + 1;
cfg.srgb = (desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB);
cfg.address = agx_map_texture_gpu(rsrc, 0, state->u.tex.first_layer); // XXX: level?
cfg.address = agx_map_texture_gpu(rsrc, level, state->u.tex.first_layer);
cfg.unk_mipmapped = rsrc->mipmapped;
cfg.unk_2 = false;