Europa Universalis 4 freezing during game start (10.3.3)
https://bugs.freedesktop.org/show_bug.cgi?id=86720
Bug ID: 86720
Summary: Europa Universalis 4 freezing during game start
(10.3.3)
Product: Mesa
Version: 10.3
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/r600
Assignee: [email protected]
Reporter: [email protected]Created attachment 110028
--> https://bugs.freedesktop.org/attachment.cgi?id=110028&action=edit
134220 line strace from loading game to freeze to force quit.
Europa Universalis 4 stops responding after loading from pressing "Play" in the nation select screen.
Not present in Mesa 10.3.2, the problem was introduced in 10.3.3. Related to the radeon driver, as the Intel driver works without issue.
OS: Arch Linux
GPU: Radeon HD 6950
GPU Driver: xf86-video-ati 7.5.0
CPU: Intel i5-2500K
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86720
--- Comment #1 from Michel Dänzer <[email protected]> --- Can you bisect Mesa?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86720
Felix Schwarz <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected] | |u Blocks| |77449
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86720
Eero Tamminen <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Europa Universalis 4 |[radeon] Europa Universalis
|freezing during game start |4 freezing during game
|(10.3.3) |start (10.3.3)Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86720
--- Comment #2 from [email protected] --- After a couple of hours of compiling...
Commit e8c7affa66407932519fc6d82a449b453343d9fc works fine. Commit d26258166ca056da62536bebdf107e21d9ce92fb introduces the issue.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86720
--- Comment #3 from Marek Olšák <[email protected]> ---
It looks like the R600 driver cannot handle some loops and hangs (in an infinite loop probably).
There are some new fixes for Cayman in the master branch. Can you apply them and see if they help?
http://cgit.freedesktop.org/mesa/mesa/log?qt=grep&q=r600
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86720
--- Comment #4 from [email protected] ---
Commit 133280120b4bc714bbb7665e383f36ab262c280a, after the fixes for Cayman in master, still has the issue.
Or did you mean of me to cherry-pick specific fixes?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86720
--- Comment #5 from Marek Olšák <[email protected]> --- (In reply to glwhieuhghfbjds from comment #4)
Quoted 4 lines
Commit
133280120b4bc714bbb7665e383f36ab262c280a, after the fixes for Cayman in master, still has the issue.Or did you mean of me to cherry-pick specific fixes?
No. It looks like Cayman still has some bugs.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86720
--- Comment #6 from Joti Papadopoulos <[email protected]> --- Actually, i'm having this issue as well with a HD5850. So it's probably not Cayman specific
OS: Arch Linux
GPU:Radeon HD5850
Mesa 10.3.5 and 10.5git(last tested about a week ago) CPU:Phenom 2 X3 720
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86720
--- Comment #7 from Artem Hluvchynskyi <[email protected]> --- Same issue with HD5730 and mesa git: Mesa 10.5.0-devel (git-8d2542f). Tried turning off every available graphics option in the game and using "notiling" (which helped with a similar GPU lockup in Tropico 5) but nothing.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86720
--- Comment #8 from Artem Hluvchynskyi <[email protected]> --- Created attachment 111977
--> https://bugs.freedesktop.org/attachment.cgi?id=111977&action=edit
Part of the log during the lockup
Messages in the attached part of the log are repeating for a while, with monitors going off and on. Eventually the system is usable for a while and then just locks up for good, requiring a hard reset.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86720
--- Comment #9 from João Grego <[email protected]> ---
Having the same issue with HD5650. When using mesa 10.2.8 there was no problem, but when I upgraded to mesa 10.4.2 the entire system froze after loading a game, either new or saved.
OS: Gentoo amd64
GPU: Radeon HD5650
GPU driver: xf86-video-ati 7.5.0
Mesa: 10.4.2
CPU: intel i3 M370
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[email protected]
Reviewed-by Brian Paulhttps://bugs.freedesktop.org/show_bug.cgi?id=86720
--- Comment #10 from Felix Schwarz <[email protected]> --- I can confirm that the issue was introduced (on master) with this commit:
commit 6fcb5520b78cdf1e5013c125501932315a069955
Author: Marek Olšák <[email protected]> Date: Tue Oct 28 19:49:44 2014 +0100
Revert "st/mesa: set MaxUnrollIterations = 255"
This reverts commit 20836c81851e0df29a8ee9c86e5e5388738c840b.
255 is a huge number. If you have a loop with 255 iterations, unrolling it will exceed the SM3 instruction limit. Let's use the default again.
The comment about a SM3 limit doesn't make sense. For SM3, we generally want 32 (default) or a lower number due to the SM3 instruction limit, which is 512 instructions. For SM4, we can try higher numbers if needed, but some shaders can end up being pretty huge and shader compilation can take more time.
This fixes a shader compile failure on R500/SM3. Reported on IRC.
Marek: You mentioned that the r600 driver might be unable to handle certain loops. Is there anything the community can do to get this fixed? apitrace? Checking for piglit regressions related to the mentioned commit? I assume that you would be able to fix this much better if you could reproduce the problem easily.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86720
--- Comment #11 from Marek Olšák <[email protected]> ---
I'd add a PIPE_CAP and allow the driver to set MaxUnrollIterations with it. For r600g, the old value should be used. For other drivers, the new value should be used.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86720
--- Comment #12 from Felix Schwarz <[email protected]> --- (In reply to Marek Olšák from comment #11)
Quoted 1 line
I'd add a
PIPE_CAPand allow the driver to set MaxUnrollIterations with it.
"I'd add" as in "I plan to add" or as in "someone else should fix that by ..."?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86720
--- Comment #13 from Médéric Boquien <[email protected]> ---
For what it is worth, a temporary workaround would be setting R600_DEBUG=nosb. I saw that in a comment about bug #88263 and it turns out to work.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86720
--- Comment #14 from Marek Olšák <[email protected]> --- Created attachment 113246
--> https://bugs.freedesktop.org/attachment.cgi?id=113246&action=edit
patch
Hi guys, could you please test this patch?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86720
--- Comment #15 from Felix Schwarz <[email protected]> --- I applied your patch on top of mesa 7ea1e3749738c63388d3bcca327e4e4dd28f17b8 with llvm 3.5 and linux 3.18.5 and I can confirm that this problem fixes the original problem as expected.
One thing that bothers me personally is that no piglit test went bad when the initial change was committed. Marek do you think it would be a good idea as a newbie project to come up with a minimal api trace and try to build a piglit test preventing that kind of problem or is that likely to be a fruitless effort?
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86720
--- Comment #16 from Marek Olšák <[email protected]> --- Having a piglit test reproducing the issue would be very useful.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86720
--- Comment #17 from Joti Papadopoulos <[email protected]> --- I can confirm the patch fixes the issue here as well
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86720
--- Comment #18 from Felix Schwarz <[email protected]> --- I created an API trace which reproduces the problem for me
(https://dl.dropboxusercontent.com/s/hc6v7gdcshj4ljd/eu4.trace-lockup.xz?dl=0 , 120 MB, unfortunately trimming produces only invalid states). The shaders itself don't look to bad to me but I don't have any experience deducing a miminal testcase from an apitrace (pointers welcome).
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86720
Marek Olšák <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC|[email protected] |
--- Comment #19 from Marek Olšák <[email protected]> --- (removing myself from the Cc list, already getting emails from dri-devel)
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86720
Joe Glaser <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
--- Comment #20 from Joe Glaser <[email protected]> --- Hey everyone,
I am a bit new to working with Mesa and haven't needed to patch anything in it before. However, I am experiencing the GPU overload mentioned in the OC's post (Hitting Play at Nation Select causes the game to attempt to load, but crash when displaying the units and requiring a system reboot). I'd like to apply Marek Olšák's patch file, however I am unfamiliar with the commands I need to use to run it on Fedora 21.
Any ideas?
OS: Fedora 21 x86_64 [Gnome3.14.2]
GPU: Radeon HD 6520G
GPU Driver: Gallium 0.4 on AMD SUMO
CPU: AMD A6-3420M APU with Radeon HD Graphics x4
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86720
Joe Glaser <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86720
Joe Glaser <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |critical
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86720
--- Comment #21 from Benjamin Bellec <[email protected]> ---
@Joe Glaser
As said above, an easy workaround is to disable the r600 shader optimizer. Just launch Steam like this:
$ R600_DEBUG=nosb steam
But performance will be not good, and you already have a weak GPU. If it's too slow, then you can try to patch and build Mesa. You can follow this tutorial:
http://forums.fedora-fr.org/viewtopic.php?pid=532589
If you don't read french, you can translate the page with Google Chrome. The translation is still... understandable.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86720
--- Comment #22 from Médéric Boquien <[email protected]> ---
Has the patch been committed? I have just tried with Mesa 10.5.1 and the freeze is still there. Thanks!
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86720
--- Comment #23 from Benjamin Bellec <[email protected]> --- (In reply to Médéric Boquien from comment #22)
Quoted 2 lines
Has the patch been committed? I have just tried with Mesa 10.5.1 and the freeze is still there. Thanks!
No the patch hasn't been committed. Some developer said the patch is not a proper fix. Look at this for more information :
http://lists.freedesktop.org/archives/mesa-dev/2015-February/076633.html
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86720
--- Comment #24 from [email protected] ---
Still present in 10.6.1 and game is still unplayable on Radeon
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86720
--- Comment #25 from Felix Schwarz <[email protected]> --- For Fedora I have a COPR with the Fedora's mesa package plus the workaround proposed by Marek on top. Other than that I think what is really needed as a first step is to extract a minimal (piglit) test case.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86720
--- Comment #26 from [email protected] ---
I tried run it with nosb parameters like mentioned above "R600_DEBUG=nosb force_s3tc_enable=true /usr/bin/steam %U" and game works, but textures looks very bad.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86720
--- Comment #27 from Benjamin Bellec <[email protected]> --- (In reply to noga.dany from comment #26)
Quoted 3 lines
I tried run it with nosb parameters like mentioned above "R600_DEBUG=nosb force_s3tc_enable=true
/usr/bin/steam%U" and game works, but textures looks very bad.
Remove the "force_s3tc_enable=true" in your command.
And be sure to have the s3tc lib installed (libtxc_dxtn). You can check that with this command:
$ glxinfo |grep s3tc
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86720
--- Comment #28 from [email protected] ---
(In reply to Benjamin Bellec from comment #27)
Quoted 10 lines
(In reply to noga.dany from comment #26)
Quoted 3 lines
I tried run it with nosb parameters like mentioned above "R600_DEBUG=nosb force_s3tc_enable=true
/usr/bin/steam%U" and game works, but textures looks very bad.Remove the "force_s3tc_enable=true" in your command.
And be sure to have the s3tc lib installed (
libtxc_dxtn). You can check that with this command:$ glxinfo |grep s3tc
Ok, I have installed libtxc_dxtn 64bit and 32bit and tried it with "R600_DEBUG=nosb /usr/bin/steam %U". Unfortunately it doesn't look good either. Screenshot attached.
Mesa 10.6.4
Kernel 4.1.1
AMD HD 6870
So with nosb works but looks bad and without nosb it looks good, but system freezes.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86720
--- Comment #29 from [email protected] ---
Created attachment 117697
--> https://bugs.freedesktop.org/attachment.cgi?id=117697&action=edit
screenshot with R600_DEBUG=nosb on Mesa 10.6.4 and AMD HD 6870
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
https://bugs.freedesktop.org/show_bug.cgi?id=86720
--- Comment #30 from [email protected] ---
(In reply to noga.dany from comment #29)
Quoted 2 lines
Created attachment 117697 [details]
screenshot with R600_DEBUG=nosb on Mesa 10.6.4 and AMD HD 6870
I think the graphics glitches that appear with nosb can be fixed if you disable some of the effects. I can't remember which at the moment. I was able to run with no apparent issues on my HD 6850 after turning on nosb.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 86720] [radeon] Europa Universalis 4 freezing during game start (10.3.3+, still broken on 11.0.2)
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=86720
[email protected] changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|10.3 |11.0
Summary|[radeon] Europa Universalis |[radeon] Europa Universalis
|4 freezing during game |4 freezing during game
|start (10.3.3) |start (10.3.3+, still
| |broken on 11.0.2)--- Comment #31 from [email protected] ---
Tested on 11.0.2 and still it freezes
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 86720] [radeon] Europa Universalis 4 freezing during game start (10.3.3+, still broken on 11.0.2)
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=86720
--- Comment #32 from Benjamin Bellec <[email protected]> --- Marek pushed the fix.
So it's likely to be fixed in Mesa 11.0.4 which should be released in less than a week.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 86720] [radeon] Europa Universalis 4 freezing during game start (10.3.3+, still broken on 11.0.2)
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=86720
Fabio Pedretti <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXEDSignature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 86720] [radeon] Europa Universalis 4 freezing during game start (10.3.3+, still broken on 11.0.2)
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=86720
Lukáš Krejza <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://bugs.freedesktop.or | |g/show_bug.cgi?id=93706
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 86720] [radeon] Europa Universalis 4 freezing during game start (10.3.3+, still broken on 11.0.2)
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=86720
--- Comment #33 from Lukáš Krejza <[email protected]> --- I have found possibly related bug / regression on current Mesa git:
https://bugs.freedesktop.org/show_bug.cgi?id=93706
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
[Bug 86720] [radeon] Europa Universalis 4 freezing during game start (10.3.3+, still broken on 11.0.2)
In reply to [email protected]https://bugs.freedesktop.org/show_bug.cgi?id=86720
[email protected] changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Assignee|[email protected] |[email protected]
|.org |
Resolution|FIXED |---
CC| |[email protected]--- Comment #34 from [email protected] ---
Created attachment 125183
--> https://bugs.freedesktop.org/attachment.cgi?id=125183&action=edit
EU4 shader #175 in TGSI , unoptmized disassembly, sbdump of all stages and optimized disassembly
While the committed workaround does work for this case, the bug in R600 Shader Backend is not fixed and it is triggered by other more complicated shaders. For example:
https://bugs.freedesktop.org/show_bug.cgi?id=94900
I had locally reverted the unroll workaround in order to obtain the form that triggers this bug. If you need to test the bug with this shader, then in r600_pipe.c:559 you have to set PIPE_SHADER_CAP_MAX_UNROLL_ITERATIONS_HINT to 32, instead of 255.
The buggy shader is the vertex shader of call 1024042 in the trace. When using R600_DEBUG=ps,vs, the shader is under #175 .
Like in the other bugreport, this shader causes assertion failure in the sb_checker (if mesa is compiled with debugging) and the bug is also workarounded by R600_DEBUG=sbsafemath.
This works because it disables the call to fold_assoc() in expr_handler::fold_alu_op2() somewhere around sb_expr.cpp:740
In order to locate the bug, I've enabled the sbdump for all SB stages.
I'm also uploading a second log, with the "fold_assoc()" disabled, so a side-by-side comparison of both logs could indicate how the function affects the result through the different stages. (I recommend diffuse program.)
This shader is easier to analyze, because it contains just one loop with 4 iterations and no other conditional branches and jumps. The loop counter register is used as index for memory access. The memory address calculations might be involved in triggering the bug as fold_assoc() works on them. The sb_checker complains about instructions that list the counter register, so it is possible that the instruction that increments it is somehow "optimized" out.
Signature · 2 lines
You are receiving this mail because: You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel