https://bugs.freedesktop.org/show_bug.cgi?id=71285
Priority: medium Bug ID: 71285 Assignee: dri-devel@lists.freedesktop.org Summary: Xonotic LLVM ERROR Severity: major Classification: Unclassified OS: Linux (All) Reporter: jrch2k10@gmail.com Hardware: x86-64 (AMD64) Status: NEW Version: git Component: Drivers/Gallium/radeonsi Product: Mesa
Created attachment 88735 --> https://bugs.freedesktop.org/attachment.cgi?id=88735&action=edit zipped shader dump
in Xonotic 7.0 several levels return this error after crash
LLVM ERROR: ran out of registers during register allocation
GL_VENDOR: X.Org GL_RENDERER: Gallium 0.4 on AMD CAPE VERDE GL_VERSION: 3.0 Mesa 10.0.0-devel (git-5ae31d7)
level maps/stormkeep
attached: shader dump
many thanks for your time
https://bugs.freedesktop.org/show_bug.cgi?id=71285
Rafael Castillo jrch2k10@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|medium |high
https://bugs.freedesktop.org/show_bug.cgi?id=71285
Michel Dänzer michel@daenzer.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #88735|text/plain |application/zip mime type| |
https://bugs.freedesktop.org/show_bug.cgi?id=71285
--- Comment #1 from Michel Dänzer michel@daenzer.net --- Which version of LLVM are you using? If it's 3.3, does a 3.4 snapshot work better?
https://bugs.freedesktop.org/show_bug.cgi?id=71285
--- Comment #2 from Rafael Castillo jrch2k10@gmail.com --- I use llvm 3.4 daily emerged on gentoo
https://bugs.freedesktop.org/show_bug.cgi?id=71285
--- Comment #3 from Tom Stellard tstellar@gmail.com --- Could you dump the assembly output from the shaders? Use the environment variable: R600_DEBUG=ps,vs
https://bugs.freedesktop.org/show_bug.cgi?id=71285
--- Comment #4 from Rafael Castillo jrch2k10@gmail.com --- Created attachment 89331 --> https://bugs.freedesktop.org/attachment.cgi?id=89331&action=edit R600_DEBUG=ps,vs shader dump
https://bugs.freedesktop.org/show_bug.cgi?id=71285
--- Comment #5 from darkbasic darkbasic@linuxsystems.it --- The problem is only with the "offset mapping" effect enabled. Radeonsi (HD 7950) + LLVM 3.4 git + mesa 10.1 git + linux 3.13
https://bugs.freedesktop.org/show_bug.cgi?id=71285
--- Comment #6 from Rafael Castillo jrch2k10@gmail.com --- confirmed offset mapping is the culprit
https://bugs.freedesktop.org/show_bug.cgi?id=71285
--- Comment #7 from Tom Stellard tstellar@gmail.com --- Created attachment 89615 --> https://bugs.freedesktop.org/attachment.cgi?id=89615&action=edit Work Around
This patch should avoid the crash, but the effect will not be rendered correctly. Can you test?
https://bugs.freedesktop.org/show_bug.cgi?id=71285
--- Comment #8 from Rafael Castillo jrch2k10@gmail.com --- (In reply to comment #7)
Created attachment 89615 [details] [review] Work Around
This patch should avoid the crash, but the effect will not be rendered correctly. Can you test?
yes ofc, when i reach home tonight ill test it and report back
https://bugs.freedesktop.org/show_bug.cgi?id=71285
--- Comment #9 from Rafael Castillo jrch2k10@gmail.com --- im try to test the patch but currently llvm master don't build claiming missing unistd.h header, so once is fixed ill test the patch
https://bugs.freedesktop.org/show_bug.cgi?id=71285
Tom Stellard tstellar@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #89615|0 |1 is obsolete| |
--- Comment #10 from Tom Stellard tstellar@gmail.com --- Created attachment 89805 --> https://bugs.freedesktop.org/attachment.cgi?id=89805&action=edit Fix
This new patch is an actual fix, not just a workaround. It fixes the crash for me, can you verify?
https://bugs.freedesktop.org/show_bug.cgi?id=71285
--- Comment #11 from Rafael Castillo jrch2k10@gmail.com --- sorry for the delay, about your previous patch it worked as you say. ill test this one tonight
many thanks for your time
https://bugs.freedesktop.org/show_bug.cgi?id=71285
--- Comment #12 from Rafael Castillo jrch2k10@gmail.com --- well it compiles just fine but since llvm 3.5 xonotic and pepper flash hard reset the GPU. im trying to get a dump of the failure
https://bugs.freedesktop.org/show_bug.cgi?id=71285
--- Comment #13 from Rafael Castillo jrch2k10@gmail.com --- Created attachment 89878 --> https://bugs.freedesktop.org/attachment.cgi?id=89878&action=edit dmesg of gpu hard reset
This with or wthout your patch
https://bugs.freedesktop.org/show_bug.cgi?id=71285
--- Comment #14 from darkbasic darkbasic@linuxsystems.it --- If you need someone who tests the patch I can switch back to LLVM 3.4, let me know.
https://bugs.freedesktop.org/show_bug.cgi?id=71285
--- Comment #15 from Arek Ruśniak arek.rusi@gmail.com --- Rafael try latest libdrm from git. I had the same problem with libdrm 2.4.49
https://bugs.freedesktop.org/show_bug.cgi?id=71285
--- Comment #16 from Rafael Castillo jrch2k10@gmail.com --- (In reply to comment #15)
Rafael try latest libdrm from git. I had the same problem with libdrm 2.4.49
thanks, arek
i do use libdrm git but i see that 5 days ago new patches landed and im not sure i pulled them, so i ll re emerge today to be sure and test again
many thanks for your tip
https://bugs.freedesktop.org/show_bug.cgi?id=71285
--- Comment #17 from Rafael Castillo jrch2k10@gmail.com --- ok after updating all my stack to todays git my GPU stopped hard resseting and effectively this patch fixes all xonotic issues.
Many many thanks for your good work tom
https://bugs.freedesktop.org/show_bug.cgi?id=71285
Tom Stellard tstellar@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #18 from Tom Stellard tstellar@gmail.com --- The fix was committed to the LLVM tree: r195880
dri-devel@lists.freedesktop.org