mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-19 08:28:21 +02:00
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:
parent
11072cfd21
commit
7b4ea2fd38
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue