Created attachment 137146 [details] Screenshot Starting with ("4c7af87fb92 anv: Enable UBO pushing"), I'm seeing some corrupted rendering in Dota 2 with anv on my kbl_gt2. I'm seeing this by watching the recording of MatchID 3372726385. At about 1:10 in the recording the little guy pops up at the bottom and has some bad vertices.
Created attachment 137203 [details] Broken shader with post-RA scheduling enabled
Created attachment 137204 [details] "fixed" shader with post-RA scheduling disabled
I've narrowed this down quite a bit now. This branch contains a patch which can help pin-point the exact shader: https://cgit.freedesktop.org/~jekstrand/mesa/commit/?h=wip/bug-104923 Anything which perturbs instructions seems to fix it. I think it's actually a bug in post-RA scheduling. If I disable post-ra scheduling everything goes back to passing.
Patch is on the list: https://patchwork.freedesktop.org/patch/207523/
This has been fixed by the following commit in master: commit ff4726077d86800d33520581f154a27dac408588 Author: Jason Ekstrand <jason.ekstrand@intel.com> Date: Wed Feb 28 19:57:44 2018 -0800 intel/fs: Set up sampler message headers in the visitor on gen7+ This gives the scheduler visibility into the headers which should improve scheduling. More importantly, however, it lets the scheduler know that the header gets written. As-is, the scheduler thinks that a texture instruction only reads it's payload and is unaware that it may write to the first register so it may reorder it with respect to a read from that register. This is causing issues in a couple of Dota 2 vertex shaders. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104923 Cc: mesa-stable@lists.freedesktop.org Reviewed-by: Francisco Jerez <currojerez@riseup.net>
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.