Module: Mesa Branch: main Commit: 2aac18d7e4f959299a6790395100797800ce980c URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2aac18d7e4f959299a6790395100797800ce980c
Author: Asahi Lina <[email protected]> Date: Tue Nov 8 10:35:00 2022 -0500 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> --- 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 e843613d108..9e4803efcdd 100644 --- a/src/gallium/drivers/asahi/agx_state.c +++ b/src/gallium/drivers/asahi/agx_state.c @@ -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;
