radv: Fix assert that is too strict.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Fri, 7 Aug 2020 18:29:07 +0000 (20:29 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 10 Aug 2020 09:34:49 +0000 (09:34 +0000)
commitff4f6202be26d1ffe1dfd306e6a586ea380367bc
tree5f5435a16248ba6a5511ea13856302de8201bd6e
parentf7e7cf637e1b457d56b3aaf4d05c928ef9acff17
radv: Fix assert that is too strict.

The added assert fails on MSAA images if we disable FMASK ....

Reordered things.

Fixes: c6aadbae715 "radv: Don't use both DCC and CMASK for single sample images."
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3385
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6232>
src/amd/vulkan/radv_image.c