Created attachment 88735 [details] 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
Which version of LLVM are you using? If it's 3.3, does a 3.4 snapshot work better?
I use llvm 3.4 daily emerged on gentoo
Could you dump the assembly output from the shaders? Use the environment variable: R600_DEBUG=ps,vs
Created attachment 89331 [details] R600_DEBUG=ps,vs shader dump
The problem is only with the "offset mapping" effect enabled. Radeonsi (HD 7950) + LLVM 3.4 git + mesa 10.1 git + linux 3.13
confirmed offset mapping is the culprit
Created attachment 89615 [details] [review] Work Around This patch should avoid the crash, but the effect will not be rendered correctly. Can you test?
(In reply to comment #7) > Created attachment 89615 [details] [review] [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
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
Created attachment 89805 [details] [review] Fix This new patch is an actual fix, not just a workaround. It fixes the crash for me, can you verify?
sorry for the delay, about your previous patch it worked as you say. ill test this one tonight many thanks for your time
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
Created attachment 89878 [details] dmesg of gpu hard reset This with or wthout your patch
If you need someone who tests the patch I can switch back to LLVM 3.4, let me know.
Rafael try latest libdrm from git. I had the same problem with libdrm 2.4.49
(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
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
The fix was committed to the LLVM tree: r195880
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.