# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/mesa/hotfix-r600-bigendian-constants.patch # Copyright (C) 2026 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 or patched project license # --- T2-COPYRIGHT-END --- Disable real buffer in constbuf0 on big-endian r600. r600 uploads constant buffers as raw words; with prefer_real_buffer_in_constbuf0 the shader reads them in the wrong byte order on big-endian. Part of the same ppc64 enablement, kept as a separate change because it is a different code path. --- mesa-26.3.1/src/gallium/drivers/r600/r600_pipe.c.vanilla 2026-11-19 13:21:46.911120563 +0100 +++ mesa-26.3.1/src/gallium/drivers/r600/r600_pipe.c 2026-11-19 13:22:18.509656976 +0100 @@ -406,7 +406,7 @@ enum radeon_family family = rscreen->b.family; /* Supported features (boolean caps). */ - caps->prefer_real_buffer_in_constbuf0 = true; + caps->prefer_real_buffer_in_constbuf0 = !UTIL_ARCH_BIG_ENDIAN; caps->npot_textures = true; caps->mixed_framebuffer_sizes = true; caps->mixed_color_depth_bits = true;