Bug 109615 - >=19.0.0 fails u_format_test on x86/ppc/ppc64
Summary: >=19.0.0 fails u_format_test on x86/ppc/ppc64
Status: RESOLVED MOVED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: 19.1
Hardware: All All
: medium normal
Assignee: mesa-dev
QA Contact: mesa-dev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-12 13:46 UTC by erhard_f
Modified: 2019-09-18 20:27 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
testlog.txt (290.04 KB, text/plain)
2019-02-12 13:46 UTC, erhard_f
Details
Gentoo build.log.xz (41.80 KB, application/x-xz)
2019-02-12 13:47 UTC, erhard_f
Details
Gentoo build.log.xz (19.1.5, x86) (57.23 KB, application/x-xz)
2019-09-03 10:52 UTC, erhard_f
Details
Gentoo build.log.xz (19.1.5, ppc64) (61.95 KB, application/x-xz)
2019-09-03 23:22 UTC, erhard_f
Details

Description erhard_f 2019-02-12 13:46:52 UTC
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 ...
-------
Comment 1 erhard_f 2019-02-12 13:47:39 UTC
Created attachment 143366 [details]
Gentoo build.log.xz
Comment 2 erhard_f 2019-02-12 13:51:06 UTC
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).
Comment 3 Dylan Baker 2019-02-19 22:37:51 UTC
Do these tests pass on 18.3?
Comment 4 erhard_f 2019-02-19 23:58:24 UTC
(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.
Comment 5 Matt Turner 2019-02-20 18:52:14 UTC
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.
Comment 6 Matt Turner 2019-02-28 22:03:44 UTC
Let's remove from the 19.0 release tracker.
Comment 7 Matt Turner 2019-04-08 22:49:50 UTC
No surprise: it's endianness dependent. Passes on little endian; fails on big endian.
Comment 8 A. Wilcox 2019-04-08 23:44:03 UTC
Is this an actual endian bug in Mesa, or do the test constants need to be adjusted based on byte order?
Comment 9 erhard_f 2019-07-15 16:08:20 UTC
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)
Comment 10 erhard_f 2019-09-03 10:50:22 UTC
Looks like mesa:gallium / u_format_test test failure is not ppc/ppc64 specific. It fails on x86 too.
Comment 11 erhard_f 2019-09-03 10:52:16 UTC
Created attachment 145251 [details]
Gentoo build.log.xz (19.1.5, x86)
Comment 12 erhard_f 2019-09-03 23:22:30 UTC
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).
Comment 13 GitLab Migration User 2019-09-18 20:27:37 UTC
-- 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.