Created attachment 143365 [details] testlog.txt The output from the failed tests: 44/47 mesa:gallium / u_format_test FAIL 0.23 s (exit status 1) --- command --- /var/tmp/portage/media-libs/mesa-19.0.0_rc2/work/mesa-19.0.0-rc2-abi_ppc_64.ppc64/src/gallium/tests/unit/u_format_test --- Listing only the last 100 lines from a long log. --- FAILED: 00 3e obtained 3e 00 expected FAILED: 07 c0 obtained c0 07 expected FAILED: f8 00 obtained 00 f8 expected FAILED: 00 01 obtained 01 00 expected Testing util_format_a1b5g5r5_unorm_unpack_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_a1b5g5r5_unorm_pack_rgba_8unorm ... FAILED: 00 3e obtained 3e 00 expected FAILED: 07 c0 obtained c0 07 expected FAILED: f8 00 obtained 00 f8 expected FAILED: 00 01 obtained 01 00 expected Testing util_format_a1b5g5r5_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_a1b5g5r5_unorm_norm_flags ... Testing util_format_x1b5g5r5_unorm_fetch_rgba_float ... FAILED: {0.225806, 0.774194, 0.000000, 1.000000} obtained {0.000000, 0.000000, 1.000000, 1.000000} expected FAILED: {0.774194, 0.000000, 0.096774, 1.000000} obtained {0.000000, 1.000000, 0.000000, 1.000000} expected FAILED: {0.000000, 0.096774, 0.903226, 1.000000} obtained {1.000000, 0.000000, 0.000000, 1.000000} expected FAILED: {1.000000, 0.870968, 1.000000, 1.000000} obtained {1.000000, 1.000000, 1.000000, 1.000000} expected Testing util_format_x1b5g5r5_unorm_pack_rgba_float ... FAILED: 00 3e obtained 3e 00 expected FAILED: 07 c0 obtained c0 07 expected FAILED: f8 00 obtained 00 f8 expected FAILED: ff fe obtained fe ff expected Testing util_format_x1b5g5r5_unorm_unpack_rgba_float ... FAILED: {0.225806, 0.774194, 0.000000, 1.000000} obtained {0.000000, 0.000000, 1.000000, 1.000000} expected FAILED: {0.774194, 0.000000, 0.096774, 1.000000} obtained {0.000000, 1.000000, 0.000000, 1.000000} expected FAILED: {0.000000, 0.096774, 0.903226, 1.000000} obtained {1.000000, 0.000000, 0.000000, 1.000000} expected FAILED: {1.000000, 0.870968, 1.000000, 1.000000} obtained {1.000000, 1.000000, 1.000000, 1.000000} expected Testing util_format_x1b5g5r5_unorm_pack_rgba_8unorm ... FAILED: 00 3e obtained 3e 00 expected FAILED: 07 c0 obtained c0 07 expected FAILED: f8 00 obtained 00 f8 expected FAILED: ff fe obtained fe ff expected Testing util_format_x1b5g5r5_unorm_unpack_rgba_8unorm ... FAILED: {0x39, 0xc5, 0x00, 0xff} obtained {0x00, 0x00, 0xff, 0xff} expected FAILED: {0xc5, 0x00, 0x18, 0xff} obtained {0x00, 0xff, 0x00, 0xff} expected FAILED: {0x00, 0x18, 0xe6, 0xff} obtained {0xff, 0x00, 0x00, 0xff} expected FAILED: {0xff, 0xde, 0xff, 0xff} obtained {0xff, 0xff, 0xff, 0xff} expected Testing util_format_x1b5g5r5_unorm_norm_flags ... Testing util_format_a4b4g4r4_unorm_fetch_rgba_float ... Testing util_format_a4b4g4r4_unorm_pack_rgba_float ... Testing util_format_a4b4g4r4_unorm_unpack_rgba_float ... Testing util_format_a4b4g4r4_unorm_pack_rgba_8unorm ... Testing util_format_a4b4g4r4_unorm_unpack_rgba_8unorm ... Testing util_format_a4b4g4r4_unorm_norm_flags ... Testing util_format_r8_srgb_fetch_rgba_float ... Testing util_format_r8_srgb_pack_rgba_float ... Testing util_format_r8_srgb_unpack_rgba_float ... Testing util_format_r8_srgb_pack_rgba_8unorm ... Testing util_format_r8_srgb_unpack_rgba_8unorm ... Testing util_format_r8_srgb_norm_flags ... Testing util_format_a8l8_sint_norm_flags ... Testing util_format_g8r8_sint_norm_flags ... Testing util_format_a8b8g8r8_sint_norm_flags ... Testing util_format_x8b8g8r8_sint_norm_flags ... -------
Created attachment 143366 [details] Gentoo build.log.xz
The "44/47 mesa:gallium / u_format_test" failing here is new in 19.0.0_rc. 18.3.x passes core tests just fine on ppc64 (not so the llvmpipe tests, see bug #106644).
Do these tests pass on 18.3?
(In reply to Dylan Baker from comment #3) > Do these tests pass on 18.3? Mesa 18.3.x passes all tests on ppc64 BE. The failing tests in question are not part of 18.3 as far as I've seen.
Right, the tests were enabled by commit 54abd2e0844edf005510cb50b001cde8cf0366b7 Author: Eric Anholt <eric@anholt.net> Date: Thu Jan 24 09:36:56 2019 -0800 gallium: Enable unit tests as actual meson unit tests. These tests don't need swrast, so we can always enable them when build_tests is set. Most of them run to successful completion quickly (.9s on my SKL). and git tag --contains=54abd2e0844edf005510cb50b001cde8cf0366b7 19.0-branchpoint mesa-19.0-rc1 mesa-19.0.0-rc1 mesa-19.0.0-rc2 mesa-19.0.0-rc3 mesa-19.0.0-rc4 so they weren't run in 18.3.
Let's remove from the 19.0 release tracker.
No surprise: it's endianness dependent. Passes on little endian; fails on big endian.
Is this an actual endian bug in Mesa, or do the test constants need to be adjusted based on byte order?
Stills fails in 19.0.8 and 19.1.2: 47/50 mesa:gallium / u_format_test FAIL 0.09 s (exit status 1) Additionally failing in 19.1.2: 25/50 mesa:compiler+nir / nir_vars FAIL 0.57 s (killed by signal 6 SIGABRT)
Looks like mesa:gallium / u_format_test test failure is not ppc/ppc64 specific. It fails on x86 too.
Created attachment 145251 [details] Gentoo build.log.xz (19.1.5, x86)
Created attachment 145259 [details] Gentoo build.log.xz (19.1.5, ppc64) 25/51 mesa:compiler+nir / nir_vars FAIL 0.30 s (killed by signal 6 SIGABRT) 48/51 mesa:gallium / u_format_test FAIL 0.18 s (exit status 1) Ok: 49 Expected Fail: 0 Fail: 2 Unexpected Pass: 0 Skipped: 0 Timeout: 0 On ppc64 really lots of the util_format_* tests fail (see Gentoo build.log.xz, ppc64).
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/1036.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.