Mesa is giving me a lot of failing test case results on big-endian ppc64. With the possible exception of the 084-unbalanced-parentheses
failures, they all look like byte-swapping bugs. Here's the first group of util_format_*
failures (there are many more failures like this):
Testing util_format_b5g5r5a1_unorm_fetch_rgba_float ...
FAILED: {0.225806, 0.774194, 0.000000, 0.000000} obtained
{0.000000, 0.000000, 1.000000, 0.000000} expected
FAILED: {0.774194, 0.000000, 0.096774, 1.000000} obtained
{0.000000, 1.000000, 0.000000, 0.000000} expected
FAILED: {0.000000, 0.096774, 0.903226, 0.000000} obtained
{1.000000, 0.000000, 0.000000, 0.000000} expected
FAILED: {0.000000, 0.129032, 0.000000, 0.000000} obtained
{0.000000, 0.000000, 0.000000, 1.000000} expected
Testing util_format_b5g5r5a1_unorm_pack_rgba_float ...
FAILED: 00 1f obtained
1f 00 expected
FAILED: 03 e0 obtained
e0 03 expected
FAILED: 7c 00 obtained
00 7c expected
FAILED: 80 00 obtained
00 80 expected
Testing util_format_b5g5r5a1_unorm_unpack_rgba ...
FAILED: {0.225806, 0.774194, 0.000000, 0.000000} obtained
{0.000000, 0.000000, 1.000000, 0.000000} expected
FAILED: {0.774194, 0.000000, 0.096774, 1.000000} obtained
{0.000000, 1.000000, 0.000000, 0.000000} expected
FAILED: {0.000000, 0.096774, 0.903226, 0.000000} obtained
{1.000000, 0.000000, 0.000000, 0.000000} expected
FAILED: {0.000000, 0.129032, 0.000000, 0.000000} obtained
{0.000000, 0.000000, 0.000000, 1.000000} expected
Testing util_format_b5g5r5a1_unorm_pack_rgba_8unorm ...
FAILED: 00 1f obtained
1f 00 expected
FAILED: 03 e0 obtained
e0 03 expected
FAILED: 7c 00 obtained
00 7c expected
FAILED: 80 00 obtained
00 80 expected
Testing util_format_b5g5r5a1_unorm_unpack_rgba_8unorm ...
FAILED: {0x39, 0xc5, 0x00, 0x00} obtained
{0x00, 0x00, 0xff, 0x00} expected
FAILED: {0xc5, 0x00, 0x18, 0xff} obtained
{0x00, 0xff, 0x00, 0x00} expected
FAILED: {0x00, 0x18, 0xe6, 0x00} obtained
{0xff, 0x00, 0x00, 0x00} expected
FAILED: {0x00, 0x20, 0x00, 0x00} obtained
{0x00, 0x00, 0x00, 0xff} expected
Testing util_format_b4g4r4a4_unorm_fetch_rgba_float ...
FAILED: {1.000000, 0.000000, 0.000000, 0.000000} obtained
{0.000000, 0.000000, 1.000000, 0.000000} expected
FAILED: {0.000000, 0.000000, 0.000000, 1.000000} obtained
{0.000000, 1.000000, 0.000000, 0.000000} expected
FAILED: {0.000000, 0.000000, 1.000000, 0.000000} obtained
{1.000000, 0.000000, 0.000000, 0.000000} expected
FAILED: {0.000000, 1.000000, 0.000000, 0.000000} obtained
{0.000000, 0.000000, 0.000000, 1.000000} expected
Testing util_format_b4g4r4a4_unorm_pack_rgba_float ...
FAILED: 00 0f obtained
0f 00 expected
FAILED: 00 f0 obtained
f0 00 expected
FAILED: 0f 00 obtained
00 0f expected
FAILED: f0 00 obtained
00 f0 expected
Testing util_format_b4g4r4a4_unorm_unpack_rgba ...
FAILED: {1.000000, 0.000000, 0.000000, 0.000000} obtained
{0.000000, 0.000000, 1.000000, 0.000000} expected
FAILED: {0.000000, 0.000000, 0.000000, 1.000000} obtained
{0.000000, 1.000000, 0.000000, 0.000000} expected
FAILED: {0.000000, 0.000000, 1.000000, 0.000000} obtained
{1.000000, 0.000000, 0.000000, 0.000000} expected
FAILED: {0.000000, 1.000000, 0.000000, 0.000000} obtained
{0.000000, 0.000000, 0.000000, 1.000000} expected
Testing util_format_b4g4r4a4_unorm_pack_rgba_8unorm ...
FAILED: 00 0f obtained
0f 00 expected
FAILED: 00 f0 obtained
f0 00 expected
FAILED: 0f 00 obtained
00 0f expected
FAILED: f0 00 obtained
00 f0 expected
Testing util_format_b4g4r4a4_unorm_unpack_rgba_8unorm ...
FAILED: {0xff, 0x00, 0x00, 0x00} obtained
{0x00, 0x00, 0xff, 0x00} expected
FAILED: {0x00, 0x00, 0x00, 0xff} obtained
{0x00, 0xff, 0x00, 0x00} expected
FAILED: {0x00, 0x00, 0xff, 0x00} obtained
{0xff, 0x00, 0x00, 0x00} expected
FAILED: {0x00, 0xff, 0x00, 0x00} obtained
{0x00, 0x00, 0x00, 0xff} expected
Testing util_format_b5g6r5_unorm_fetch_rgba_float ...
FAILED: {0.096774, 0.888889, 0.000000, 1.000000} obtained
{0.000000, 0.000000, 1.000000, 1.000000} expected
FAILED: {0.903226, 0.000000, 0.225806, 1.000000} obtained
{0.000000, 1.000000, 0.000000, 1.000000} expected
FAILED: {0.000000, 0.111111, 0.774194, 1.000000} obtained
{1.000000, 0.000000, 0.000000, 1.000000} expected
Testing util_format_b5g6r5_unorm_pack_rgba_float ...
FAILED: 00 1f obtained
1f 00 expected
FAILED: 07 e0 obtained
e0 07 expected
FAILED: f8 00 obtained
00 f8 expected
Testing util_format_b5g6r5_unorm_unpack_rgba ...
FAILED: {0.096774, 0.888889, 0.000000, 1.000000} obtained
{0.000000, 0.000000, 1.000000, 1.000000} expected
FAILED: {0.903226, 0.000000, 0.225806, 1.000000} obtained
{0.000000, 1.000000, 0.000000, 1.000000} expected
FAILED: {0.000000, 0.111111, 0.774194, 1.000000} obtained
{1.000000, 0.000000, 0.000000, 1.000000} expected
Testing util_format_b5g6r5_unorm_pack_rgba_8unorm ...
FAILED: 00 1f obtained
1f 00 expected
FAILED: 07 e0 obtained
e0 07 expected
FAILED: f8 00 obtained
00 f8 expected
Testing util_format_b5g6r5_unorm_unpack_rgba_8unorm ...
FAILED: {0x18, 0xe2, 0x00, 0xff} obtained
{0x00, 0x00, 0xff, 0xff} expected
FAILED: {0xe6, 0x00, 0x39, 0xff} obtained
{0x00, 0xff, 0x00, 0xff} expected
FAILED: {0x00, 0x1c, 0xc5, 0xff} obtained
{0xff, 0x00, 0x00, 0xff} expected
Testing util_format_b5g6r5_unorm_norm_flags ...
Testing util_format_r10g10b10a2_unorm_fetch_rgba_float ...
FAILED: {0.000000, 0.187683, 0.985337, 1.000000} obtained
{1.000000, 0.000000, 0.000000, 0.000000} expected
FAILED: {0.750733, 0.753666, 0.014663, 0.000000} obtained
{0.000000, 1.000000, 0.000000, 0.000000} expected
FAILED: {0.061584, 0.058651, 0.000000, 0.000000} obtained
{0.000000, 0.000000, 1.000000, 0.000000} expected
FAILED: {0.187683, 0.000000, 0.000000, 0.000000} obtained
{0.000000, 0.000000, 0.000000, 1.000000} expected
Testing util_format_r10g10b10a2_unorm_pack_rgba_float ...
FAILED: 00 00 03 ff obtained
ff 03 00 00 expected
FAILED: 00 0f fc 00 obtained
00 fc 0f 00 expected
FAILED: 3f f0 00 00 obtained
00 00 f0 3f expected
FAILED: c0 00 00 00 obtained
00 00 00 c0 expected
Testing util_format_r10g10b10a2_unorm_unpack_rgba ...
FAILED: {0.000000, 0.187683, 0.985337, 1.000000} obtained
{1.000000, 0.000000, 0.000000, 0.000000} expected
FAILED: {0.750733, 0.753666, 0.014663, 0.000000} obtained
{0.000000, 1.000000, 0.000000, 0.000000} expected
FAILED: {0.061584, 0.058651, 0.000000, 0.000000} obtained
{0.000000, 0.000000, 1.000000, 0.000000} expected
FAILED: {0.187683, 0.000000, 0.000000, 0.000000} obtained
{0.000000, 0.000000, 0.000000, 1.000000} expected
Testing util_format_r10g10b10a2_unorm_pack_rgba_8unorm ...
FAILED: 00 00 03 ff obtained
ff 03 00 00 expected
FAILED: 00 0f fc 00 obtained
00 fc 0f 00 expected
FAILED: 3f f0 00 00 obtained
00 00 f0 3f expected
FAILED: c0 00 00 00 obtained
00 00 00 c0 expected
Testing util_format_r10g10b10a2_unorm_unpack_rgba_8unorm ...
FAILED: {0x00, 0x30, 0xfc, 0xff} obtained
{0xff, 0x00, 0x00, 0x00} expected
FAILED: {0xc0, 0xc0, 0x03, 0x00} obtained
{0x00, 0xff, 0x00, 0x00} expected
FAILED: {0x0f, 0x0f, 0x00, 0x00} obtained
{0x00, 0x00, 0xff, 0x00} expected
FAILED: {0x30, 0x00, 0x00, 0x00} obtained
{0x00, 0x00, 0x00, 0xff} expected
Testing util_format_z32_float_unpack_z_32unorm ...
FAILED: 0x00000000 obtained
0xffffffff expected
Testing util_format_z32_float_pack_z_32unorm ...
FAILED: 3f 80 00 00 obtained
00 00 80 3f expected
Testing util_format_z32_float_unpack_z_float ...
FAILED: 0.000000 obtained
{1.000000, 0.000000, 0.000000, 0.000000} expected
Testing util_format_z32_float_pack_z_float ...
FAILED: 3f 80 00 00 obtained
00 00 80 3f expected
Testing util_format_r32_float_fetch_rgba_float ...
FAILED: {0.000000, 0.000000, 0.000000, 1.000000} obtained
{1.000000, 0.000000, 0.000000, 1.000000} expected
FAILED: {0.000000, 0.000000, 0.000000, 1.000000} obtained
{-1.000000, 0.000000, 0.000000, 1.000000} expected
Testing util_format_r32_float_pack_rgba_float ...
FAILED: 3f 80 00 00 obtained
00 00 80 3f expected
FAILED: bf 80 00 00 obtained
00 00 80 bf expected
Testing util_format_r32_float_unpack_rgba ...
FAILED: {0.000000, 0.000000, 0.000000, 1.000000} obtained
{1.000000, 0.000000, 0.000000, 1.000000} expected
FAILED: {0.000000, 0.000000, 0.000000, 1.000000} obtained
{-1.000000, 0.000000, 0.000000, 1.000000} expected
Testing util_format_r32_float_pack_rgba_8unorm ...
FAILED: 3f 80 00 00 obtained
00 00 80 3f expected
Testing util_format_r32_float_unpack_rgba_8unorm ...
FAILED: {0x00, 0x00, 0x00, 0xff} obtained
{0xff, 0x00, 0x00, 0xff} expected
Testing util_format_r32_float_norm_flags ...
Testing util_format_r32g32_float_fetch_rgba_float ...
FAILED: {0.000000, 0.000000, 0.000000, 1.000000} obtained
{1.000000, 0.000000, 0.000000, 1.000000} expected
FAILED: {0.000000, 0.000000, 0.000000, 1.000000} obtained
{-1.000000, 0.000000, 0.000000, 1.000000} expected
FAILED: {0.000000, 0.000000, 0.000000, 1.000000} obtained
{0.000000, 1.000000, 0.000000, 1.000000} expected
FAILED: {0.000000, 0.000000, 0.000000, 1.000000} obtained
{0.000000, -1.000000, 0.000000, 1.000000} expected
FAILED: {0.000000, 0.000000, 0.000000, 1.000000} obtained
{1.000000, 1.000000, 0.000000, 1.000000} expected
Testing util_format_r32g32_float_pack_rgba_float ...
FAILED: 3f 80 00 00 00 00 00 00 obtained
00 00 80 3f 00 00 00 00 expected
FAILED: bf 80 00 00 00 00 00 00 obtained
00 00 80 bf 00 00 00 00 expected
FAILED: 00 00 00 00 3f 80 00 00 obtained
00 00 00 00 00 00 80 3f expected
FAILED: 00 00 00 00 bf 80 00 00 obtained
00 00 00 00 00 00 80 bf expected
FAILED: 3f 80 00 00 3f 80 00 00 obtained
00 00 80 3f 00 00 80 3f expected
Testing util_format_r32g32_float_unpack_rgba ...
FAILED: {0.000000, 0.000000, 0.000000, 1.000000} obtained
{1.000000, 0.000000, 0.000000, 1.000000} expected
FAILED: {0.000000, 0.000000, 0.000000, 1.000000} obtained
{-1.000000, 0.000000, 0.000000, 1.000000} expected
FAILED: {0.000000, 0.000000, 0.000000, 1.000000} obtained
{0.000000, 1.000000, 0.000000, 1.000000} expected
FAILED: {0.000000, 0.000000, 0.000000, 1.000000} obtained
{0.000000, -1.000000, 0.000000, 1.000000} expected
FAILED: {0.000000, 0.000000, 0.000000, 1.000000} obtained
{1.000000, 1.000000, 0.000000, 1.000000} expected
Testing util_format_r32g32_float_pack_rgba_8unorm ...
FAILED: 3f 80 00 00 00 00 00 00 obtained
00 00 80 3f 00 00 00 00 expected
FAILED: 00 00 00 00 3f 80 00 00 obtained
00 00 00 00 00 00 80 3f expected
FAILED: 3f 80 00 00 3f 80 00 00 obtained
00 00 80 3f 00 00 80 3f expected
Testing util_format_r32g32_float_unpack_rgba_8unorm ...
FAILED: {0x00, 0x00, 0x00, 0xff} obtained
{0xff, 0x00, 0x00, 0xff} expected
FAILED: {0x00, 0x00, 0x00, 0xff} obtained
{0x00, 0xff, 0x00, 0xff} expected
FAILED: {0x00, 0x00, 0x00, 0xff} obtained
{0xff, 0xff, 0x00, 0xff} expected
Testing util_format_r32g32_float_norm_flags ...
Testing util_format_r32g32b32_float_fetch_rgba_float ...
FAILED: {0.000000, 0.000000, 0.000000, 1.000000} obtained
{1.000000, 0.000000, 0.000000, 1.000000} expected
FAILED: {0.000000, 0.000000, 0.000000, 1.000000} obtained
{-1.000000, 0.000000, 0.000000, 1.000000} expected
FAILED: {0.000000, 0.000000, 0.000000, 1.000000} obtained
{0.000000, 1.000000, 0.000000, 1.000000} expected
FAILED: {0.000000, 0.000000, 0.000000, 1.000000} obtained
{0.000000, -1.000000, 0.000000, 1.000000} expected
FAILED: {0.000000, 0.000000, 0.000000, 1.000000} obtained
{0.000000, 0.000000, 1.000000, 1.000000} expected
FAILED: {0.000000, 0.000000, 0.000000, 1.000000} obtained
{0.000000, 0.000000, -1.000000, 1.000000} expected
FAILED: {0.000000, 0.000000, 0.000000, 1.000000} obtained
{1.000000, 1.000000, 1.000000, 1.000000} expected
Testing util_format_r32g32b32_float_pack_rgba_float ...
FAILED: 3f 80 00 00 00 00 00 00 00 00 00 00 obtained
00 00 80 3f 00 00 00 00 00 00 00 00 expected
FAILED: bf 80 00 00 00 00 00 00 00 00 00 00 obtained
00 00 80 bf 00 00 00 00 00 00 00 00 expected
FAILED: 00 00 00 00 3f 80 00 00 00 00 00 00 obtained
00 00 00 00 00 00 80 3f 00 00 00 00 expected
FAILED: 00 00 00 00 bf 80 00 00 00 00 00 00 obtained
00 00 00 00 00 00 80 bf 00 00 00 00 expected
FAILED: 00 00 00 00 00 00 00 00 3f 80 00 00 obtained
00 00 00 00 00 00 00 00 00 00 80 3f expected
FAILED: 00 00 00 00 00 00 00 00 bf 80 00 00 obtained
00 00 00 00 00 00 00 00 00 00 80 bf expected
FAILED: 3f 80 00 00 3f 80 00 00 3f 80 00 00 obtained
00 00 80 3f 00 00 80 3f 00 00 80 3f expected