mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
asahi: Set cfg.levels for linear framebuffers
Otherwise we will crash in GenXML, which does not specify a default here. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19606>
This commit is contained in:
parent
a5b8918800
commit
2aac18d7e4
1 changed files with 1 additions and 0 deletions
|
|
@ -804,6 +804,7 @@ agx_set_framebuffer_state(struct pipe_context *pctx,
|
|||
|
||||
if (tex->layout.tiling == AIL_TILING_LINEAR) {
|
||||
cfg.stride = ail_get_linear_stride_B(&tex->layout, level) - 4;
|
||||
cfg.levels = 1;
|
||||
} else {
|
||||
cfg.unk_tiled = true;
|
||||
cfg.levels = tex->base.last_level + 1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue