From fcbefe013a3b5babc86a4ae687adc34733f174a2 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Sun, 16 Jun 2019 21:20:41 -0500 Subject: anv/formats: Re-arrange the way se set some flag bits Reviewed-by: Lionel Landwerlin --- src/intel/vulkan/anv_formats.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/intel/vulkan/anv_formats.c') diff --git a/src/intel/vulkan/anv_formats.c b/src/intel/vulkan/anv_formats.c index 4e15e626eed..70543e0cfdf 100644 --- a/src/intel/vulkan/anv_formats.c +++ b/src/intel/vulkan/anv_formats.c @@ -513,7 +513,11 @@ anv_get_image_format_features(const struct gen_device_info *devinfo, if (vk_tiling == VK_IMAGE_TILING_LINEAR) return 0; - flags |= VK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT; + flags |= VK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT | + VK_FORMAT_FEATURE_BLIT_SRC_BIT | + VK_FORMAT_FEATURE_BLIT_DST_BIT | + VK_FORMAT_FEATURE_TRANSFER_SRC_BIT | + VK_FORMAT_FEATURE_TRANSFER_DST_BIT; if (aspects == VK_IMAGE_ASPECT_DEPTH_BIT || devinfo->gen >= 8) flags |= VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT; @@ -521,11 +525,6 @@ anv_get_image_format_features(const struct gen_device_info *devinfo, if ((aspects & VK_IMAGE_ASPECT_DEPTH_BIT) && devinfo->gen >= 9) flags |= VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_MINMAX_BIT_EXT; - flags |= VK_FORMAT_FEATURE_BLIT_SRC_BIT | - VK_FORMAT_FEATURE_BLIT_DST_BIT | - VK_FORMAT_FEATURE_TRANSFER_SRC_BIT | - VK_FORMAT_FEATURE_TRANSFER_DST_BIT; - return flags; } -- cgit v1.2.3