Skip to content
  • Faith Ekstrand's avatar
    anv: Canonicalize buffer formats for image/buffer copies · dd92179a
    Faith Ekstrand authored
    Some formats, in particular YCbCr formats and ASTC have additional
    restrictions.  We already whack ASTC formats to RGBA32_UINT because the
    hardware doesn't allow LINEAR with ASTC.  However, we need to fix YCbCr
    formats as well because they come with alignment restrictions that we
    can't guarantee are satisfied.  We're using blorp_copy to do the copies
    so we may as well just stomp formats for everything.
    
    Fixes: b24b93d5
    
     "anv: enable VK_KHR_sampler_ycbcr_conversion"
    Reviewed-by: default avatarLionel Landwerlin <lionel.g.landwerlin@intel.com>
    Tested-by: Marge Bot <!3460>
    Part-of: <!3460>
    dd92179a