ac/surface: don't compute single-sample CMASK if it's unaligned
authorMarek Olšák <marek.olsak@amd.com>
Tue, 19 May 2020 05:32:38 +0000 (01:32 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Sat, 23 May 2020 07:44:44 +0000 (03:44 -0400)
commit8db739880af2d50e871b6bd27437a2ad37cf6c00
tree5776645ed983cd61bf5b7303fef7824fd266b117
parent21504eab78eb465e27520baa7389fa732bfefa36
ac/surface: don't compute single-sample CMASK if it's unaligned

Displayable DCC can cause this and fail the assertion later.

Fixes: cf61f635ff6a38aad344ebe30551eaaac6fec038
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5095>
src/amd/common/ac_surface.c