Skip to content
  • Alejandro Piñeiro's avatar
    v3dv/format: Add support for VK_KHR_format_feature_flags2 · 746287d2
    Alejandro Piñeiro authored and Marge Bot's avatar Marge Bot committed
    
    
    VK_KHR_format_feature_flags2 is mostly about define a new 64-bit
    VkFormatFeatureFlagBits2KHR format feature flag type, as 29 bits of
    the 32-bit VkFormatFeatureFlagBits are already in use.
    
    So all the bits from VkFormatFeatureFlagBits are being replicated, and
    most of the work here consist on switch to the new flags.
    
    From the new (not replicated from VkFormatFeatureFlagBits) flag bits,
    we don't support
    VK_FORMAT_FEATURE_2_STORAGE_READ_WITHOUT_FORMAT_BIT_KHR or
    VK_FORMAT_FEATURE_2_STORAGE_WRITE_WITHOUT_FORMAT_BIT_KHR, as right now
    we require the format on the shader for doing the read and stores.
    
    We use now VK_FORMAT_FEATURE_2_SAMPLED_IMAGE_DEPTH_COMPARISON_BIT_KHR,
    but only applying it for depth formats.
    
    Reviewed-by: default avatarIago Toral Quiroga <itoral@igalia.com>
    Part-of: <!16718>
    746287d2