Module: Mesa
Branch: main
Commit: 87444bb7ab4b27b1394af2ac2592110b6500352b
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=87444bb7ab4b27b1394af2ac2592110b6500352b

Author: Samuel Pitoiset <[email protected]>
Date:   Wed Mar  1 10:50:07 2023 +0100

radv: ignore alpha_is_on_msb on GFX11 because the hw ignores it

Ported from RadeonSI.

Signed-off-by: Samuel Pitoiset <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21621>

---

 src/amd/vulkan/radv_image.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/amd/vulkan/radv_image.c b/src/amd/vulkan/radv_image.c
index 73576b400e5..74fa1eaa53f 100644
--- a/src/amd/vulkan/radv_image.c
+++ b/src/amd/vulkan/radv_image.c
@@ -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)

Reply via email to