https://bugs.freedesktop.org/show_bug.cgi?id=87658
Roland Scheidegger changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
https://bugs.freedesktop.org/show_bug.cgi?id=87658
--- Comment #21 from Roland Scheidegger ---
(In reply to Chris Paulson-Ellis from comment #20)
> (In reply to Roland Scheidegger from comment #19)
> > Maybe using
> > PIPE_ALIGN_STACK static INLINE boolean sse2_has_daz(void)
> > would do the tric
https://bugs.freedesktop.org/show_bug.cgi?id=87658
--- Comment #20 from Chris Paulson-Ellis ---
(In reply to Roland Scheidegger from comment #19)
> Maybe using
> PIPE_ALIGN_STACK static INLINE boolean sse2_has_daz(void)
> would do the trick. I guess the PIPE_ALIGN_VAR on a stack'ed variable isn't
https://bugs.freedesktop.org/show_bug.cgi?id=87658
--- Comment #19 from Roland Scheidegger ---
Maybe using
PIPE_ALIGN_STACK static INLINE boolean sse2_has_daz(void)
would do the trick. I guess the PIPE_ALIGN_VAR on a stack'ed variable isn't
working otherwise. Not sure though this works on inlined
https://bugs.freedesktop.org/show_bug.cgi?id=87658
--- Comment #18 from Patrick Baggett ---
Right, I thought Chris Paulson-Ellis tried your patch which includes this
alignment, but it still didn't work due to alignment. I think we're both on the
same page though.
--
You are receiving this mail
https://bugs.freedesktop.org/show_bug.cgi?id=87658
--- Comment #17 from ubiz...@gmail.com ---
(In reply to Patrick Baggett from comment #16)
> That is strange...I would have expected an "illegal instruction" (SIGILL) if
> the CPU simply did not support this, but this is SIGSEGV. Is the 'fxsave'
>
https://bugs.freedesktop.org/show_bug.cgi?id=87658
--- Comment #16 from Patrick Baggett ---
That is strange...I would have expected an "illegal instruction" (SIGILL) if
the CPU simply did not support this, but this is SIGSEGV. Is the 'fxsave'
struct really aligned properly? It looks like should b
https://bugs.freedesktop.org/show_bug.cgi?id=87658
--- Comment #15 from Chris Paulson-Ellis ---
Oops - printed the wrong array...
(gdb) p /x regs2
$11 = {, 0x1080e, 0x4400, 0xbfebf9ff}
--
You are receiving this mail because:
You are the assignee for the bug.
___
https://bugs.freedesktop.org/show_bug.cgi?id=87658
--- Comment #14 from Chris Paulson-Ellis ---
(In reply to David Heidelberg (okias) from comment #13)
> Created attachment 111431 [details] [review]
> 0001-util-add-check-for-bit_FXSAVE.patch
>
> In case your CPU doesn't have FXSAVE support, this
https://bugs.freedesktop.org/show_bug.cgi?id=87658
David Heidelberg (okias) changed:
What|Removed |Added
Attachment #111297|0 |1
is obsolete|
https://bugs.freedesktop.org/show_bug.cgi?id=87658
--- Comment #12 from David Heidelberg (okias) ---
(In reply to ubizjak from comment #11)
> (In reply to David Heidelberg (okias) from comment #9)
> > I'd say it's kernel (more probably) or gcc bug.
>
> Nope. You have to check FXSAVE bit in cpuid
https://bugs.freedesktop.org/show_bug.cgi?id=87658
--- Comment #11 from ubiz...@gmail.com ---
(In reply to David Heidelberg (okias) from comment #9)
> I'd say it's kernel (more probably) or gcc bug.
Nope. You have to check FXSAVE bit in cpuid.
> For gcc, try 4.7.x and/or 4.9.x if you can.
>
> F
https://bugs.freedesktop.org/show_bug.cgi?id=87658
--- Comment #10 from Chris Paulson-Ellis ---
(In reply to David Heidelberg (okias) from comment #9)
> I'd say it's kernel (more probably) or gcc bug.
For the record...
$ uname -r
3.17.7-200.fc20.i686
$ dmesg | grep gcc
[0.00] Linux ver
https://bugs.freedesktop.org/show_bug.cgi?id=87658
--- Comment #9 from David Heidelberg (okias) ---
I'd say it's kernel (more probably) or gcc bug.
For gcc, try 4.7.x and/or 4.9.x if you can.
For kernel, I think it may be(?) related to [1]- > Paranoid restore. send a
SIGSEGV if we fail to resto
https://bugs.freedesktop.org/show_bug.cgi?id=87658
--- Comment #8 from Chris Paulson-Ellis ---
(In reply to David Heidelberg (okias) from comment #6)
> > > 0001-util-improve-fxsave-detection.patch
> try compile with CFLAGS="-mfxsr"
Somewhat inevitably, given the result of the second patch...
Pr
https://bugs.freedesktop.org/show_bug.cgi?id=87658
--- Comment #7 from Chris Paulson-Ellis ---
(In reply to David Heidelberg (okias) from comment #2)
> also_try_this_patch.patch
Program received signal SIGSEGV, Segmentation fault.
sse2_has_daz () at util/u_cpu_detect.c:285
285 __asm __vola
https://bugs.freedesktop.org/show_bug.cgi?id=87658
--- Comment #6 from David Heidelberg (okias) ---
(In reply to Chris Paulson-Ellis from comment #5)
> (In reply to David Heidelberg (okias) from comment #1)
> > 0001-util-improve-fxsave-detection.patch
>
> CC util/u_cpu_detect.lo
> util/u
https://bugs.freedesktop.org/show_bug.cgi?id=87658
--- Comment #5 from Chris Paulson-Ellis ---
(In reply to David Heidelberg (okias) from comment #1)
> 0001-util-improve-fxsave-detection.patch
CC util/u_cpu_detect.lo
util/u_cpu_detect.c: In function 'sse2_has_daz':
util/u_cpu_detect.c:28
https://bugs.freedesktop.org/show_bug.cgi?id=87658
--- Comment #4 from David Heidelberg (okias) ---
(In reply to Patrick Baggett from comment #3)
> -#if (defined(PIPE_CC_GCC) || defined(PIPE_CC_SUNPRO))
> +#if (defined(PIPE_CC_GCC) && (PIPE_CC_GCC_VERSION >= 408))
> + __builtin_ia32_fxsave(&fxa
https://bugs.freedesktop.org/show_bug.cgi?id=87658
--- Comment #3 from Patrick Baggett ---
-#if (defined(PIPE_CC_GCC) || defined(PIPE_CC_SUNPRO))
+#if (defined(PIPE_CC_GCC) && (PIPE_CC_GCC_VERSION >= 408))
+ __builtin_ia32_fxsave(&fxarea);
+#elif (defined(PIPE_CC_GCC) || defined(PIPE_CC_SUNPRO)
https://bugs.freedesktop.org/show_bug.cgi?id=87658
--- Comment #2 from David Heidelberg (okias) ---
Created attachment 111297
--> https://bugs.freedesktop.org/attachment.cgi?id=111297&action=edit
also_try_this_patch.patch
this is way how gcc check for DAZ, so maybe it'll work.
Please try both
https://bugs.freedesktop.org/show_bug.cgi?id=87658
David Heidelberg (okias) changed:
What|Removed |Added
CC||da...@ixit.cz
--- Comment #1
https://bugs.freedesktop.org/show_bug.cgi?id=87658
Bug ID: 87658
Summary: [llvmpipe] SEGV in sse2_has_daz on ancient Pentium4-M
Product: Mesa
Version: 10.3
Hardware: x86 (IA32)
OS: Linux (All)
Status: NEW
23 matches
Mail list logo