radv: ignore alpha_is_on_msb on GFX11 because the hw ignores it

Ported from RadeonSI.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21621>
This commit is contained in:
Samuel Pitoiset
2023-03-01 10:50:07 +01:00
committed by Marge Bot
parent 0a3387a190
commit 87444bb7ab
+3
View File
@@ -971,6 +971,9 @@ gfx9_border_color_swizzle(const struct util_format_description *desc)
bool
vi_alpha_is_on_msb(struct radv_device *device, VkFormat format)
{
if (device->physical_device->rad_info.gfx_level >= GFX11)
return false;
const struct util_format_description *desc = vk_format_description(format);
if (device->physical_device->rad_info.gfx_level >= GFX10 && desc->nr_channels == 1)