[Bug 104602] [apitrace] Graphical artifacts in Civilization VI on RX Vega

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Aug 1 14:09:56 UTC 2019


https://bugs.freedesktop.org/show_bug.cgi?id=104602

--- Comment #20 from Connor Abbott <cwabbott0 at gmail.com> ---
I wanted to make sure that improving the NIR path to reach parity with TGSI in
local variable handling wouldn't break things, so I investigated this a bit
more. It seems this is triggered by the fact that on Vega the TGSI path always
uses scratch, even for smaller local arrays. This bloats the scratch space used
by the VS in question. There are three back-to-back draw calls with this VS
(used to build up the map), each using scratch, and it seems that radeonsi
doesn't properly wait for each call to be done before starting the next and
reuses the same scratch buffer, resulting in the threads from one draw call
overwriting the scratch of the previous call. Hacking
si_update_spi_tmpring_size() to always allocate a new scratch buffer "fixes"
the black triangles.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20190801/6df6ca53/attachment.html>


More information about the dri-devel mailing list