ac/surface: Handle non-retiled displayable DCC correctly for modifiers.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 2 May 2021 01:51:29 +0000 (03:51 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 5 Jul 2021 22:34:13 +0000 (22:34 +0000)
commite2e9dd44f42261445d1af87624cedb3d09d63600
tree4e9292727d48aac1a83762456db7ed02b08b8dc7
parentbb14ef81d574d916722262e19783b3f438c748ff
ac/surface: Handle non-retiled displayable DCC correctly for modifiers.

There is some hardware with num_render_backends == 1, but the number
of render backends in GB_ADDR_CFG > 1. Turns out this can be turned
off by making them rb unaligned which is valid with only 1 render
backend.

Fixes: 0833dd7d124 ("amd/common: Add support for modifiers.")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10575>
src/amd/common/ac_surface.c