Created attachment 130079 [details]
grass in the main menu
The grass has some black lines in where it shouldnt be.
Im on Radeon HD 7970. But looks like there are more people with the same problem:
No progress here in the last 3 months. Adding porter to CC list, maybe its a game specific bug, as it looks definitely different than the Windows version.
However by looking at different youtube videos the game looks properly rendered on linux nvidia driver.
Could you provide an apitrace?
Thanks for your response, I will try to provide the trace by the end of the week.
Im just curious, since Plagman can give you the steam key and the problem also exists on RX470 / RX480 according to the links provided above, which means it looks more like an general problem, wouldnt it speed up the process if yourself would just look into the problem?
However Im happy to deliver that trace for you.
Here you are:
I have a very slow upload, so I compressed the file.
(In reply to Gregor Münch from comment #3)
> Im just curious, since Plagman can give you the steam key and the problem
> also exists on RX470 / RX480 according to the links provided above, which
> means it looks more like an general problem, wouldnt it speed up the process
> if yourself would just look into the problem?
Ultimately the easiest way to reproduce issues is with apitrace or similar tool. Using it doesn't require knowing how to get to the relevant part of the game, or other necessary conditions to trigger the issue.
Farming out the apitrace collection to the bug reporters is one of the ways to reduce the workload on the developers (as there are ~infinite bug reporters, and a very finite number of developers).
(In reply to Ilia Mirkin from comment #5)
> Ultimately the easiest way to reproduce issues is with apitrace or similar
> tool. Using it doesn't require knowing how to get to the relevant part of
> the game, or other necessary conditions to trigger the issue.
> Farming out the apitrace collection to the bug reporters is one of the ways
> to reduce the workload on the developers (as there are ~infinite bug
> reporters, and a very finite number of developers).
Thanks for the explanation. All this is true but:
-its a popular game, Top10 in Steam ranking, so Valve as AMD should have some interest seeing the game working as good as it does on nvidia
-in this case, its seems it doesnt depend on the architecture, its a problem with GCN 1.0 - 4.0 and maybe Intel too, so it can be reproduced with any hardware
-I cant imagine fixing those bugs is possible without testing the real game, in the end you still need the game to see the impact of your changes
However Im fine with whatever is best for you guys.
Hmm, I'm afraid that looks a bit tricky to analyze. I wonder if the game actually does something slightly different on NVidia cards? Would be nice if somebody could replay the trace on different hardware and see if the problem exists there as well.
As said, watching some youtube clips,
All show correct rendering.
Its of course something else if it takes another renderpath with mesa and amdgpu-pro.
It might be a WQM vs KILL issue.
I have a basic initial fix for the grass issue. It works as follows.
The GLSL discard call site sets a flag that the pixel should be killed, but doesn't kill the thread. The thread is killed at the end of the shader.
Thank you very much for fixing this!
Its sad to see that our first guess was true and this is actually a game bug.
Since TTimo is CCed already:
Could you respond if a game fix is planned?
No game fix is planned at this time.
Marek's addition of glsl_correct_derivatives_after_discard is generally a good thing for mesa compatibility with the broader GL driver ecosystem.
Finally its fixed. Thank you all involved!
Also, I measured no performance difference.
Please also send this to stable!
If someone wants the old behavior back:
Thanks for the response @Timothee