From: bugzilla-daemon@freedesktop.org Subject: [Bug 104602] [apitrace] Graphical artifacts in Civilization VI on RX Vega Date: Thu, 01 Aug 2019 14:13:19 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0619509286==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id 803046E63B for ; Thu, 1 Aug 2019 14:13:19 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0619509286== Content-Type: multipart/alternative; boundary="15646687992.E770aC7.6572" Content-Transfer-Encoding: 7bit --15646687992.E770aC7.6572 Date: Thu, 1 Aug 2019 14:13:19 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D104602 --- Comment #21 from Jason Playne --- (In reply to Connor Abbott from comment #20) > I wanted to make sure that improving the NIR path to reach parity with TG= SI > 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 pa= th > always uses scratch, even for smaller local arrays. This bloats the scrat= ch > 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 start= ing > 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 "fix= es" > the black triangles. Thanks heaps for looking into the issue Conner. Looking at the explanation = on what was happening makes it sound simple - I am sure the debugging effort w= as far greater! <3 --=20 You are receiving this mail because: You are the assignee for the bug.= --15646687992.E770aC7.6572 Date: Thu, 1 Aug 2019 14:13:19 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Comme= nt # 21 on bug 10460= 2 from Jason Playne
(In reply to Connor Abbott from comment #20)
> I wanted to make sure that improving the NIR pat=
h to reach parity with TGSI
> in local variable handling wouldn't break things, so I investigated th=
is 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 sc=
ratch
> space used by the VS in question. There are three back-to-back draw ca=
lls
> with this VS (used to build up the map), each using scratch, and it se=
ems
> that radeonsi doesn't properly wait for each call to be done before st=
arting
> 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 &=
quot;fixes"
> the black triangles.

Thanks heaps for looking into the issue Conner. Looking at the explanation =
on
what was happening makes it sound simple - I am sure the debugging effort w=
as
far greater!

<3


You are receiving this mail because:
  • You are the assignee for the bug.
= --15646687992.E770aC7.6572-- --===============0619509286== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============0619509286==--