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:
parent
0c281283d8
commit
b9222cc906
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue