Mesa (main): pvr: Fix UTIL_ARCH_BIG_ENDIAN check in vk_format.h.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jun 7 14:02:37 UTC 2022


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

Author: Rajnesh Kanwal <rajnesh.kanwal at imgtec.com>
Date:   Mon May 16 16:53:18 2022 +0100

pvr: Fix UTIL_ARCH_BIG_ENDIAN check in vk_format.h.

Signed-off-by: Rajnesh Kanwal <rajnesh.kanwal at imgtec.com>
Reviewed-by: Frank Binns <frank.binns at imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16897>

---

 src/imagination/vulkan/vk_format.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/imagination/vulkan/vk_format.h b/src/imagination/vulkan/vk_format.h
index 6c351dc7513..2473ac112bc 100644
--- a/src/imagination/vulkan/vk_format.h
+++ b/src/imagination/vulkan/vk_format.h
@@ -48,7 +48,7 @@ vk_format_is_alpha_on_msb(VkFormat vk_format)
 
    return (desc->colorspace == UTIL_FORMAT_COLORSPACE_RGB ||
            desc->colorspace == UTIL_FORMAT_COLORSPACE_SRGB) &&
-#if defined(UTIL_ARCH_BIG_ENDIAN)
+#if UTIL_ARCH_BIG_ENDIAN
            desc->swizzle[3] == PIPE_SWIZZLE_X;
 #else
            desc->swizzle[3] == PIPE_SWIZZLE_W;



More information about the mesa-commit mailing list