I've had some problems with Dota2 ingame rendering for a while now. The icons on the minimap flickers and some parts of the ground too. The ground only flickers if normal maps are turned on.
I have uploaded two videos on github to demonstrate the issue:
Here is the issue on the Dota2 reborn bugtracker:
It seems like this commit broke the ingame rendering:
With the previous commit:
it seems to render fine.
Reverting those commits fixed the flickering on my tahiti xt.
Created attachment 116901 [details] [review]
radeonsi: Count TGSI_SEMANTIC_CLIPDIST again for the VS export count
Does this patch fix the problem?
(In reply to Michel Dänzer from comment #2)
> Created attachment 116901 [details] [review] [review]
> radeonsi: Count TGSI_SEMANTIC_CLIPDIST again for the VS export count
> Does this patch fix the problem?
As far as I can see, yes, removing only the TGSI_SEMANTIC_CLIPDIST case makes the corrupted texture flicker and the shadow flicker go away.
Seems to solve it for me also.
I'm guessing that this is just a temporary workaround?
(In reply to Sebastian Parborg from comment #4)
> I'm guessing that this is just a temporary workaround?
No, I think it's the proper fix. TGSI_SEMANTIC_CLIPDIST values are also passed to the pixel shader as a varying, so they need to be counted here.
I'll submit the patch to the mesa-dev mailing list for review.
Author: Michel Dänzer <firstname.lastname@example.org>
Date: Mon Jul 6 17:23:07 2015 +0900
radeonsi: Use param export count from si_llvm_export_vs in si_shader_vs
on Jan 24, 2017 at 07:05:02.
(provided by the Example extension).