mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 03:00:24 +01:00
panvk: Fix depth-stencil AFBC support
When both the depth and stencil attachments are enabled, and the underlying image is AFBC, it must be an combined Z24S8 format. Make sure this is the case when initializing the fbinfo object. Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29451>
This commit is contained in:
parent
baf8570b28
commit
4a30a28653
1 changed files with 9 additions and 0 deletions
|
|
@ -1579,6 +1579,15 @@ panvk_cmd_begin_rendering_init_state(struct panvk_cmd_buffer *cmdbuf,
|
|||
|
||||
cmdbuf->state.gfx.render.fb
|
||||
.bos[cmdbuf->state.gfx.render.fb.bo_count++] = img->bo;
|
||||
|
||||
if (drm_is_afbc(img->pimage.layout.modifier)) {
|
||||
assert(fbinfo->zs.view.zs == &iview->pview || !fbinfo->zs.view.zs);
|
||||
fbinfo->zs.view.zs = &iview->pview;
|
||||
} else {
|
||||
fbinfo->zs.view.s =
|
||||
&iview->pview != fbinfo->zs.view.zs ? &iview->pview : NULL;
|
||||
}
|
||||
|
||||
fbinfo->zs.view.s =
|
||||
&iview->pview != fbinfo->zs.view.zs ? &iview->pview : NULL;
|
||||
fbinfo->nr_samples = MAX2(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue