From 0c281283d8cc439384cf0d98903f2085e6bd7810 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Tue, 19 Jan 2021 14:13:42 +0100 Subject: [PATCH] radv: remove redundant check when enabling TC-compat CMASK We already check that the image has CMASK. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Part-of: --- src/amd/vulkan/radv_image.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c index 466bb338df9..fe6715ae861 100644 --- a/src/amd/vulkan/radv_image.c +++ b/src/amd/vulkan/radv_image.c @@ -284,9 +284,6 @@ radv_use_tc_compat_cmask_for_image(struct radv_device *device, if (radv_image_has_dcc(image)) return false; - if (!radv_image_has_cmask(image)) - return false; - return true; }