From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 101731] System freeze with AMDGPU when playing The Witcher 3 (GOG GOTY) Date: Wed, 20 Sep 2017 09:36:11 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0600897653==" 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 961F26E6FD for ; Wed, 20 Sep 2017 09:36:11 +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 --===============0600897653== Content-Type: multipart/alternative; boundary="15059001716.Cc0F14c.615"; charset="UTF-8" --15059001716.Cc0F14c.615 Date: Wed, 20 Sep 2017 09:36:11 +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=3D101731 --- Comment #64 from Samuel Pitoiset --- See the attached trace from https://bugs.freedesktop.org/show_bug.cgi?id=3D102797, it reproduces the sa= me issue. So, basically the issue is that wine fails to set the transform feedback varyings in some situations, this explains why the following message is reported "fixme:d3d_shader:shader_glsl_generate_transform_feedback_varyings Unsupported component range 2-2.". Then, the GPU will hang later on because= it will read garbage from a TFB buffer. About TW3, I think that game uses TFB in some scenarios, I don't know why a= nd when, maybe it's based on some occlusion queries or some time constraints? Either way, this might explain why TFB is not used when tracing with apitra= ce or when using "GALLIUM_DDEBUG=3D800" which will flush and wait 800ms after = every draw call. The attached patches should workaround both issues (TW3 and Superposition),= but wine has to be fixed here. Please, let the bug open until it's really fixed. --=20 You are receiving this mail because: You are the assignee for the bug.= --15059001716.Cc0F14c.615 Date: Wed, 20 Sep 2017 09:36:11 +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 # 64 on bug 10173= 1 from Samuel Pitoiset
See the attached trace from
https://bugs.freedesktop.org/show_bug.=
cgi?id=3D102797, it reproduces the same
issue.

So, basically the issue is that wine fails to set the transform feedback
varyings in some situations, this explains why the following message is
reported "fixme:d3d_shader:shader_glsl_generate_transform_feedback_var=
yings
Unsupported component range 2-2.". Then, the GPU will hang later on be=
cause it
will read garbage from a TFB buffer.

About TW3, I think that game uses TFB in some scenarios, I don't know why a=
nd
when, maybe it's based on some occlusion queries or some time constraints?
Either way, this might explain why TFB is not used when tracing with apitra=
ce
or when using "GALLIUM_DDEBUG=3D800" which will flush and wait 80=
0ms after every
draw call.

The attached patches should workaround both issues (TW3 and Superposition),=
 but
wine has to be fixed here.

Please, let the bug open until it's really fixed.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15059001716.Cc0F14c.615-- --===============0600897653== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0600897653==--