From: Jason Ekstrand Date: Mon, 17 Jun 2019 02:20:41 +0000 (-0500) Subject: anv/formats: Re-arrange the way se set some flag bits X-Git-Tag: upstream/19.3.0~5401 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fcbefe013a3b5babc86a4ae687adc34733f174a2;p=platform%2Fupstream%2Fmesa.git anv/formats: Re-arrange the way se set some flag bits Reviewed-by: Lionel Landwerlin --- diff --git a/src/intel/vulkan/anv_formats.c b/src/intel/vulkan/anv_formats.c index 4e15e62..70543e0 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; }