From: Samuel Pitoiset Date: Thu, 21 Dec 2017 16:45:23 +0000 (+0100) Subject: radv: reduce the number of small surfaces that need CMASK or DCC X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=79c495aa377c486b220da538558177208999283d;p=mesa.git radv: reduce the number of small surfaces that need CMASK or DCC Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c index efd17e48896..15410f140e7 100644 --- a/src/amd/vulkan/radv_image.c +++ b/src/amd/vulkan/radv_image.c @@ -813,7 +813,7 @@ static inline bool radv_image_can_enable_dcc_or_cmask(struct radv_image *image) { if (image->info.samples <= 1 && - image->info.width <= 512 && image->info.height <= 512) { + image->info.width * image->info.height <= 512 * 512) { /* Do not enable CMASK or DCC for small surfaces where the cost * of the eliminate pass can be higher than the benefit of fast * clear. RadeonSI does this, but the image threshold is