Bug 14971 - rgb2bgr_ppc2 crashes on ppc64
Summary: rgb2bgr_ppc2 crashes on ppc64
Status: RESOLVED FIXED
Alias: None
Product: liboil
Classification: Unclassified
Component: unknown (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: David Schleef
QA Contact: David Schleef
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-12 11:14 UTC by Bastien Nocera
Modified: 2008-03-13 17:05 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
patch (600 bytes, patch)
2008-03-12 15:13 UTC, David Schleef
Details | Splinter Review

Description Bastien Nocera 2008-03-12 11:14:28 UTC
On a PPC64 machine, with Altivec (and the patch from bug 14914).

---8<---
#include <liboil/liboil.h>

int main (int argc, char **argv)
{
        oil_debug_set_level (5);
        oil_init();
        return 0;
}
---8<---

Crashes when running rgb2bgr_ppc().

OIL: DEBUG liboiltest.c 399: oil_test_check_impl(): sum of absolute differences
0 for 300 values
OIL: LOG liboilfunction.c 388: oil_class_optimize(): impl rgb2bgr_ppc2 ave=16.8
std=1.15256
OIL: LOG liboilfunction.c 379: oil_class_optimize(): testing impl rgb2bgr_ppc
OIL: LOG liboiltest.c 232: oil_test_check_function(): calling function rgb2bgr_ppc
OIL: LOG liboiltest.c 241: oil_test_check_function():   dest1: 0x00000000 (0)
OIL: LOG liboiltest.c 241: oil_test_check_function():   src1: 0x00000000 (0)
OIL: LOG liboiltest.c 241: oil_test_check_function():   n: 0x00000064 (100)
Comment 1 David Schleef 2008-03-12 14:47:58 UTC
What is the value of HAVE_UNALIGNED_ACCESS in config.h?

And does it crash with SIGBUS, SIGILL, or SIGSEGV?
Comment 2 David Schleef 2008-03-12 15:13:19 UTC
Created attachment 15074 [details] [review]
patch
Comment 3 David Schleef 2008-03-13 16:54:48 UTC
Tested git HEAD on bombadil.infradead.org, appears to work now.
Comment 4 Bastien Nocera 2008-03-13 17:01:39 UTC
Is that with David's patch changing the register used? If so, any chance to get a new release? :)
Comment 5 David Schleef 2008-03-13 17:05:29 UTC
Yes, among other things.

New release in a few hours.  I'm currently test compiling on various architectures and closing bugs.


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.