radv: fix radv_layout_dcc_compressed() when image doesn't have DCC
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 11 Apr 2018 19:34:43 +0000 (21:34 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 12 Apr 2018 07:58:46 +0000 (09:58 +0200)
commit9eac49246cdc501530418e8bd2a3e6d47173332b
tree7b25007a8dd14de384d02f8895eba4dee8d6cdce
parentab0e625a671d19bb6a736d663bbc6fa5fd9ecd06
radv: fix radv_layout_dcc_compressed() when image doesn't have DCC

num_dcc_levels means that DCC is supported, but this doesn't
mean that it's enabled by the driver. Instead, we should rely
on radv_image_has_dcc().

This fixes some multisample regressions since 0babc8e5d66
("radv: fix picking the method for resolve subpass") on Vega.
This is because the resolve method changed from HW to FS, but
those fails are totally unexpected, so there might some
differences between Polaris and Vega here.

Fixes: 44fcf587445 ("radv: Disable DCC for GENERAL layout and compute transfer dest.")
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_image.c