Summary: | media-libs/mesa-23.3.1 fails tests on big-endian: nir_loop_unroll_test.fadd{,_rev} | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | matoro <matoro_gentoo> |
Component: | Current packages | Assignee: | Gentoo X packagers <x11> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | matoro_gentoo, sparc |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | Sparc64 | ||
OS: | Linux | ||
URL: | https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26964 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | build.log and emerge --info |
Description
matoro
![]() Is this a regression? Created attachment 881376 [details]
build.log and emerge --info
(In reply to Matt Turner from comment #1) > Is this a regression? Not a regression from 23.1.9. But I also just reproduced the same issue on ppc64, so it appears to be a generic BE issue. (In reply to matoro from comment #3) > (In reply to Matt Turner from comment #1) > > Is this a regression? > > Not a regression from 23.1.9. But I also just reproduced the same issue on > ppc64, so it appears to be a generic BE issue. Thanks. Let's not block stabilization in that case. Hopefully I can find time to investigate soon. I've spent some time investigating tonight on sparc64. The two tests that fail were known to fail on s390 (also big endian) at the time they were added. See https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3445 The loop unrolling code correctly identifies the initial value, step value, and limit value. But calculate_iterations() fails and returns -1. Debugging further, the problem occurs here: > uint64_t iter_u64 = nir_const_value_as_uint(iter, bit_size); > return iter_u64 > INT_MAX ? -1 : (int)iter_u64; At the end of get_iteration(). iter is an i64 nir value, but we're asking it to be interpreted as a 32-bit integer, so nir_const_value_as_uint() returns 0 instead of 6. Give $URL a try. (In reply to Matt Turner from comment #6) > Give $URL a try. Works perfect here, thanks! The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93b9d9dc97403326a984a056615295a163e259fa commit 93b9d9dc97403326a984a056615295a163e259fa Author: Matt Turner <mattst88@gentoo.org> AuthorDate: 2024-01-10 21:34:47 +0000 Commit: Matt Turner <mattst88@gentoo.org> CommitDate: 2024-01-11 04:41:51 +0000 media-libs/mesa: Version bump to 23.3.3 Bug: https://bugs.gentoo.org/908079 Closes: https://bugs.gentoo.org/921297 Signed-off-by: Matt Turner <mattst88@gentoo.org> media-libs/mesa/Manifest | 1 + media-libs/mesa/files/23.3.3-big-endian.patch | 84 ++++ ...3-symbols-check-Add-_GLOBAL_OFFSET_TABLE_.patch | 31 ++ media-libs/mesa/mesa-23.3.3.ebuild | 450 +++++++++++++++++++++ 4 files changed, 566 insertions(+) |