Skip to content
  • Faith Ekstrand's avatar
    anv: Swizzle fast-clear values · 46187bb5
    Faith Ekstrand authored
    
    
    Starting with Gen12, we can fast-clear a lot more surface formats and we
    are suddenly in the position of having to fast-clear surfaces with
    formats with an implicit swizzle such as VK_FORMAT_R4G4B4A4_UNORM_PACK16
    which is represented as ISL_FORMAT_A4B4G4R4 with a BGRA swizzle.  In
    order for blorp to do the fast-clear color conversion for us, it needs
    a properly swizzled color.
    
    This fixes the following Vulkan CTS groups on TGL:
    
     - dEQP-VK.pipeline.blend.format.b4g4r4a4_unorm_pack16.*
     - dEQP-VK.api.image_clearing.core.clear_color_image.*.b4g4r4a4*
    
    Cc: mesa-stable@lists.freedesktop.org
    Reviewed-by: default avatarLionel Landwerlin <lionel.g.landwerlin@intel.com>
    Tested-by: Marge Bot <!4218>
    Part-of: <!4218>
    46187bb5