Skip to content

tu/a750: Allow mutable images to have UBWC with all compatible formats

What does this MR do and why?

A750+ added a special flag that allows HW to correctly interpret UBWC, including UBWC fast-clear when casting image to a different format permitted by Vulkan. So it's possible to have UBWC enabled for image that has e.g. R32_UINT and R8G8B8A8_UNORM in the mutable formats list.

Prop driver always enable this flag when it meets MUTABLE VK flag, but I don't think it is free for perf (otherwise why won't it be a single flag in dbg reg), so I only enable when formats are incompatible per previous rules.

Swapped formats should also be compatible with non-swapped ones with some additional care (as I saw in prop driver's cmdstream), but for now I made them incompatible.

Merge request reports