radv: make sure FMASK is enabled for TC-compat CMASK

Otherwise it makes no sense at all.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9415>
This commit is contained in:
Samuel Pitoiset 2021-01-19 14:16:38 +01:00 committed by Marge Bot
parent 0c281283d8
commit b9222cc906
1 changed files with 2 additions and 1 deletions

View File

@ -281,7 +281,8 @@ radv_use_tc_compat_cmask_for_image(struct radv_device *device,
VK_IMAGE_USAGE_TRANSFER_SRC_BIT)))
return false;
if (radv_image_has_dcc(image))
/* If the image doesn't have FMASK, it can't be fetchable. */
if (!radv_image_has_fmask(image))
return false;
return true;