ac/surface: don't set is_displayable if displayable DCC is missing
authorMarek Olšák <marek.olsak@amd.com>
Wed, 10 Jun 2020 15:43:49 +0000 (11:43 -0400)
committerMarge Bot <eric+marge@anholt.net>
Thu, 11 Jun 2020 10:01:57 +0000 (10:01 +0000)
commit374f6d568f6c9f7f790fd93d40eaaff7e3c93a9e
tree1896d4e054532b2d9f784cc966fd7afbc1cd693b
parent0fcf55329bed583a7459ae0c6f854d0c034f2a91
ac/surface: don't set is_displayable if displayable DCC is missing

If flags.display isn't set, then displayable DCC will not be computed, so
is_displayable will always be false.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5424>
src/amd/common/ac_surface.c