radv: do not allocate the FCE predicate for images that use comp-to-single

Images that support comp-to-single don't have to be fast-cleared at
all, so the predicate is unnecessary.

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/12323>
This commit is contained in:
Samuel Pitoiset
2021-08-13 10:39:38 +02:00
committed by Marge Bot
parent ef546cf96f
commit ab35a63dea
+1 -1
View File
@@ -1278,7 +1278,7 @@ radv_image_alloc_values(const struct radv_device *device, struct radv_image *ima
if (image->tiling == VK_IMAGE_TILING_DRM_FORMAT_MODIFIER_EXT)
return;
if (radv_image_has_cmask(image) || radv_image_has_dcc(image)) {
if (radv_image_has_cmask(image) || (radv_image_has_dcc(image) && !image->support_comp_to_single)) {
image->fce_pred_offset = image->size;
image->size += 8 * image->info.levels;
}