aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/amd/vulkan/radv_image.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c
index f6b0ba0e09a..7bfd34041cd 100644
--- a/src/amd/vulkan/radv_image.c
+++ b/src/amd/vulkan/radv_image.c
@@ -1331,7 +1331,8 @@ radv_image_can_enable_cmask(struct radv_image *image)
static inline bool
radv_image_can_enable_fmask(struct radv_image *image)
{
- return image->info.samples > 1 && vk_format_is_color(image->vk_format);
+ return image->info.samples > 1 &&
+ image->usage & VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT;
}
static inline bool