From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 111241] Shadertoy shader causing hang Date: Sun, 28 Jul 2019 18:06:39 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0351644325==" 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 7544D89F6F for ; Sun, 28 Jul 2019 18:06:39 +0000 (UTC) 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 --===============0351644325== Content-Type: multipart/alternative; boundary="15643371990.68cE6ca.19829" Content-Transfer-Encoding: 7bit --15643371990.68cE6ca.19829 Date: Sun, 28 Jul 2019 18:06:39 +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=3D111241 Bug ID: 111241 Summary: Shadertoy shader causing hang Product: Mesa Version: 19.1 Hardware: Other OS: All Status: NEW Severity: normal Priority: medium Component: Drivers/Gallium/radeonsi Assignee: dri-devel@lists.freedesktop.org Reporter: mail@felix-potthast.de QA Contact: dri-devel@lists.freedesktop.org When opening https://www.shadertoy.com/view/3lsXDB on my Desktop PC with Radeon HD 7870 Graphics card (Pitcairn) i get a freeze. It works fine on my Laptop with Intel Graphics. Both systems use Mesa 19.1.3 --=20 You are receiving this mail because: You are the assignee for the bug.= --15643371990.68cE6ca.19829 Date: Sun, 28 Jul 2019 18:06:39 +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
Bug ID 111241
Summary Shadertoy shader causing hang
Product Mesa
Version 19.1
Hardware Other
OS All
Status NEW
Severity normal
Priority medium
Component Drivers/Gallium/radeonsi
Assignee dri-devel@lists.freedesktop.org
Reporter mail@felix-potthast.de
QA Contact dri-devel@lists.freedesktop.org

When opening https://www.shadertoy.com/view/3lsXDB on my Desktop PC
with Radeon HD 7870 Graphics card (Pitcairn) i get a freeze.

It works fine on my Laptop with Intel Graphics.

Both systems use Mesa 19.1.3


You are receiving this mail because:
  • You are the assignee for the bug.
= --15643371990.68cE6ca.19829-- --===============0351644325== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============0351644325==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 111241] Shadertoy shader causing hang Date: Thu, 08 Aug 2019 21:34:59 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0760362784==" 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 C7FD16ECC8 for ; Thu, 8 Aug 2019 21:34:58 +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 --===============0760362784== Content-Type: multipart/alternative; boundary="15653000980.75B694dEe.13351" Content-Transfer-Encoding: 7bit --15653000980.75B694dEe.13351 Date: Thu, 8 Aug 2019 21:34:58 +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=3D111241 --- Comment #1 from Pierre-Eric Pelloux-Prayer --- I could reproduce the issue on a Raven Ridge and a Navi10. But when using NIR (radeonsi_enable_nir=3Dtrue env variable) the shader is perfectly usable. --=20 You are receiving this mail because: You are the assignee for the bug.= --15653000980.75B694dEe.13351 Date: Thu, 8 Aug 2019 21:34:58 +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

Commen= t # 1 on bug 11124= 1 from Pierre= -Eric Pelloux-Prayer
I could reproduce the issue on a Raven Ridge and a Navi10.

But when using NIR (radeonsi_enable_nir=3Dtrue env variable) the shader is
perfectly usable.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15653000980.75B694dEe.13351-- --===============0760362784== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============0760362784==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 111241] Shadertoy shader causing hang Date: Fri, 09 Aug 2019 00:15:33 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1971174611==" 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 046A56ECE2 for ; Fri, 9 Aug 2019 00:15:33 +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 --===============1971174611== Content-Type: multipart/alternative; boundary="15653097321.4c1b.2228" Content-Transfer-Encoding: 7bit --15653097321.4c1b.2228 Date: Fri, 9 Aug 2019 00:15:32 +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=3D111241 --- Comment #2 from Dieter N=C3=BCtzel --- RX 580 / NIR amd-staging-drm-next Mesa git Firefox 68.0.1 [42489.228053] [drm:amdgpu_dm_commit_planes.constprop.0 [amdgpu]] *ERROR* Waiting for fences timed out or interrupted!=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20 [42494.348053] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx timeout,= but soft recovered [42508.171689] [drm:amdgpu_dm_commit_planes.constprop.0 [amdgpu]] *ERROR* Waiting for fences timed out or interrupted! [42513.035801] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx timeout,= but soft recovered [42556.811021] [drm:amdgpu_dm_commit_planes.constprop.0 [amdgpu]] *ERROR* Waiting for fences timed out or interrupted!=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20 [42561.418927] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx timeout,= but soft recovered [42571.658863] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx timeout,= but soft recovered --=20 You are receiving this mail because: You are the assignee for the bug.= --15653097321.4c1b.2228 Date: Fri, 9 Aug 2019 00:15:32 +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

Commen= t # 2 on bug 11124= 1 from Dieter N=C3=BCtzel
RX 580 / NIR
amd-staging-drm-next
Mesa git
Firefox 68.0.1

[42489.228053] [drm:amdgpu_dm_commit_planes.constprop.0 [amdgpu]] *ERROR*
Waiting for fences timed out or interrupted!=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20
[42494.348053] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx timeout,=
 but
soft recovered
[42508.171689] [drm:amdgpu_dm_commit_planes.constprop.0 [amdgpu]] *ERROR*
Waiting for fences timed out or interrupted!

[42513.035801] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx timeout,=
 but
soft recovered

[42556.811021] [drm:amdgpu_dm_commit_planes.constprop.0 [amdgpu]] *ERROR*
Waiting for fences timed out or interrupted!=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20
[42561.418927] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx timeout,=
 but
soft recovered

[42571.658863] [drm:amdgpu_job_timedout [amdgpu]] *ERROR* ring gfx timeout,=
 but
soft recovered


You are receiving this mail because:
  • You are the assignee for the bug.
= --15653097321.4c1b.2228-- --===============1971174611== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============1971174611==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 111241] Shadertoy shader causing hang Date: Fri, 09 Aug 2019 16:22:09 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1536819545==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 42AF86EE57 for ; Fri, 9 Aug 2019 16:22:09 +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 --===============1536819545== Content-Type: multipart/alternative; boundary="15653677290.9BAA3.21266" Content-Transfer-Encoding: 7bit --15653677290.9BAA3.21266 Date: Fri, 9 Aug 2019 16:22:09 +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=3D111241 --- Comment #3 from Pierre-Eric Pelloux-Prayer --- Here's my understanding of the issue. This shader uses 2 passes: - the first pass has BufferA as input and output and does: if (first frame) // init bufferA content else // do something useful - the 2nd pass has BufferA as input and does: N =3D texelFetch(bufferA) for(i=3D0; i < N; i++) // do something The problem here is the "// init bufferA content": it fails to initialize t= he buffer content properly, leading to an infinite loop in the 2nd pass. The exact code is: if (iFrame=3D=3D0) { O -=3D O; return; } If one replaces this line with: if (iFrame=3D=3D0) { O =3D vec4(0.0f); return; } The shader works fine (you can test the modified version here: https://www.shadertoy.com/view/wtSXzw ). --=20 You are receiving this mail because: You are the assignee for the bug.= --15653677290.9BAA3.21266 Date: Fri, 9 Aug 2019 16:22:09 +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

Commen= t # 3 on bug 11124= 1 from Pierre= -Eric Pelloux-Prayer
Here's my understanding of the issue.

This shader uses 2 passes:
 - the first pass has BufferA as input and output and does:

if (first frame)
  // init bufferA content
else
  // do something useful

 - the 2nd pass has BufferA as input and does:

N =3D texelFetch(bufferA)
for(i=3D0; i < N; i++)
  // do something


The problem here is the "// init bufferA content": it fails to in=
itialize the
buffer content properly, leading to an infinite loop in the 2nd pass.

The exact code is:
   if (iFrame=3D=3D0) { O -=3D O; return; }

If one replaces this line with:
   if (iFrame=3D=3D0) { O =3D vec4(0.0f); return; }

The shader works fine (you can test the modified version here:
https://www.shadertoy.com=
/view/wtSXzw ).


You are receiving this mail because:
  • You are the assignee for the bug.
= --15653677290.9BAA3.21266-- --===============1536819545== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============1536819545==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 111241] Shadertoy shader causing hang Date: Fri, 09 Aug 2019 16:22:42 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0833675524==" 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 124C86EE5A for ; Fri, 9 Aug 2019 16:22:42 +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 --===============0833675524== Content-Type: multipart/alternative; boundary="15653677620.eac3b09.21444" Content-Transfer-Encoding: 7bit --15653677620.eac3b09.21444 Date: Fri, 9 Aug 2019 16:22:42 +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=3D111241 --- Comment #4 from Pierre-Eric Pelloux-Prayer --- Created attachment 144993 --> https://bugs.freedesktop.org/attachment.cgi?id=3D144993&action=3Dedit tgsi version of the shader --=20 You are receiving this mail because: You are the assignee for the bug.= --15653677620.eac3b09.21444 Date: Fri, 9 Aug 2019 16:22:42 +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


You are receiving this mail because:
  • You are the assignee for the bug.
= --15653677620.eac3b09.21444-- --===============0833675524== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============0833675524==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 111241] Shadertoy shader causing hang Date: Fri, 09 Aug 2019 16:22:59 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0429389027==" 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 30FE06EE59 for ; Fri, 9 Aug 2019 16:22:59 +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 --===============0429389027== Content-Type: multipart/alternative; boundary="15653677791.fB36c9A5C.21415" Content-Transfer-Encoding: 7bit --15653677791.fB36c9A5C.21415 Date: Fri, 9 Aug 2019 16:22:59 +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=3D111241 --- Comment #5 from Pierre-Eric Pelloux-Prayer --- Created attachment 144994 --> https://bugs.freedesktop.org/attachment.cgi?id=3D144994&action=3Dedit nir version --=20 You are receiving this mail because: You are the assignee for the bug.= --15653677791.fB36c9A5C.21415 Date: Fri, 9 Aug 2019 16:22:59 +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


You are receiving this mail because:
  • You are the assignee for the bug.
= --15653677791.fB36c9A5C.21415-- --===============0429389027== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============0429389027==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 111241] Shadertoy shader causing hang Date: Wed, 14 Aug 2019 12:56:48 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0641818296==" 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 62DCD6E5D4 for ; Wed, 14 Aug 2019 12:56:48 +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 --===============0641818296== Content-Type: multipart/alternative; boundary="15657874081.E51d.2135" Content-Transfer-Encoding: 7bit --15657874081.E51d.2135 Date: Wed, 14 Aug 2019 12:56:48 +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=3D111241 --- Comment #6 from Pierre-Eric Pelloux-Prayer --- I've created a different shadertoy showing the problem: https://www.shadertoy.com/view/Wt2SW1 (but this one doesn't hang the GPU). The shader for "Buffer A" is: 0: MOV TEMP[0], SV[0] 1: MAD TEMP[0].y, SV[0], CONST[0][2].xxxx, CONST[0][2].yyyy 2: MOV OUT[0], IMM[0].xxxx 3: USEQ TEMP[1].x, CONST[0][1].xxxx, IMM[1].xxxx 4: UIF TEMP[1].xxxx 5: ADD TEMP[2], TEMP[2], -TEMP[2] 6: ELSE [...] 13: MOV OUT[0], TEMP[2] 14: END TEMP[2] is used before being assigned a value, so I suppose that's what all= ows LLVM to turn line 5 in: v_mov_b32_e32 v3, 0x7fc00000 v_mov_b32_e32 v2, 0x7fc00000 v_mov_b32_e32 v1, 0x7fc00000 v_mov_b32_e32 v0, 0x7fc00000 (ie: output is NaN) A possible way to fix this is to transform "dst =3D x - x" operations in "d= st =3D 0" which is what nir does in its nir_opt_algebraic pass. I've open a MR to fix/discuss this issue: https://gitlab.freedesktop.org/mesa/mesa/merge_requests/1681 --=20 You are receiving this mail because: You are the assignee for the bug.= --15657874081.E51d.2135 Date: Wed, 14 Aug 2019 12:56:48 +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

Commen= t # 6 on bug 11124= 1 from Pierre= -Eric Pelloux-Prayer
I've created a different shadertoy showing the problem:
https://www.shadertoy.com=
/view/Wt2SW1 (but this one doesn't hang the GPU).

The shader for "Buffer A" is:

  0: MOV TEMP[0], SV[0]
  1: MAD TEMP[0].y, SV[0], CONST[0][2].xxxx, CONST[0][2].yyyy
  2: MOV OUT[0], IMM[0].xxxx
  3: USEQ TEMP[1].x, CONST[0][1].xxxx, IMM[1].xxxx
  4: UIF TEMP[1].xxxx
  5:   ADD TEMP[2], TEMP[2], -TEMP[2]
  6: ELSE
  [...]
 13: MOV OUT[0], TEMP[2]
 14: END

TEMP[2] is used before being assigned a value, so I suppose that's what all=
ows
LLVM to turn line 5 in:

   v_mov_b32_e32 v3, 0x7fc00000
   v_mov_b32_e32 v2, 0x7fc00000
   v_mov_b32_e32 v1, 0x7fc00000
   v_mov_b32_e32 v0, 0x7fc00000

(ie: output is NaN)

A possible way to fix this is to transform "dst =3D x - x" operat=
ions in "dst =3D
0" which is what nir does in its nir_opt_algebraic pass.

I've open a MR to fix/discuss this issue:
ht=
tps://gitlab.freedesktop.org/mesa/mesa/merge_requests/1681


You are receiving this mail because:
  • You are the assignee for the bug.
= --15657874081.E51d.2135-- --===============0641818296== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============0641818296==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 111241] Shadertoy shader causing hang Date: Thu, 29 Aug 2019 23:57:01 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0605979886==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id BD2156E229 for ; Thu, 29 Aug 2019 23:57:00 +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 --===============0605979886== Content-Type: multipart/alternative; boundary="15671230201.3fE0c5Cb6.30921" Content-Transfer-Encoding: 7bit --15671230201.3fE0c5Cb6.30921 Date: Thu, 29 Aug 2019 23:57:00 +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=3D111241 --- Comment #7 from Dieter N=C3=BCtzel --- Works for me with commit # glsl: replace 'x + (-x)' with constant 0 https://cgit.freedesktop.org/mesa/mesa/commit/?id=3D47cc660d9c19572e5ef2dce= 7c8ae1766a2ac9885 Thanks Pierre-Eric! --=20 You are receiving this mail because: You are the assignee for the bug.= --15671230201.3fE0c5Cb6.30921 Date: Thu, 29 Aug 2019 23:57:00 +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

Commen= t # 7 on bug 11124= 1 from Dieter N=C3=BCtzel
Works for me with commit #

glsl: replace 'x + (-x)' with constant 0
https://cgit.freedesktop.org/mesa/mesa/commit=
/?id=3D47cc660d9c19572e5ef2dce7c8ae1766a2ac9885

Thanks Pierre-Eric!


You are receiving this mail because:
  • You are the assignee for the bug.
= --15671230201.3fE0c5Cb6.30921-- --===============0605979886== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============0605979886==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 111241] Shadertoy shader causing hang Date: Fri, 30 Aug 2019 00:05:57 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1172711772==" 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 80F246E228 for ; Fri, 30 Aug 2019 00:05:57 +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 --===============1172711772== Content-Type: multipart/alternative; boundary="15671235571.8D7617d.31052" Content-Transfer-Encoding: 7bit --15671235571.8D7617d.31052 Date: Fri, 30 Aug 2019 00:05:57 +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=3D111241 --- Comment #8 from Dieter N=C3=BCtzel --- BTW Pierre-Eric can you look into this Shadertoy shader corruption, too? https://www.shadertoy.com/view/Xt3cWS I get it with Konqueror 5.0.97 KDE Frameworks 5.61.0 Qt 5.13.0 And Firefox 68.0.1 --=20 You are receiving this mail because: You are the assignee for the bug.= --15671235571.8D7617d.31052 Date: Fri, 30 Aug 2019 00:05:57 +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

Commen= t # 8 on bug 11124= 1 from Dieter N=C3=BCtzel
BTW

Pierre-Eric can you look into this

Shadertoy shader corruption, too?
https://www.shadertoy.com=
/view/Xt3cWS

I get it with

Konqueror 5.0.97
KDE Frameworks 5.61.0
Qt 5.13.0

And

Firefox 68.0.1


You are receiving this mail because:
  • You are the assignee for the bug.
= --15671235571.8D7617d.31052-- --===============1172711772== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============1172711772==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 111241] Shadertoy shader causing hang Date: Fri, 30 Aug 2019 00:06:57 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1800608803==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 94C196E226 for ; Fri, 30 Aug 2019 00:06:57 +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 --===============1800608803== Content-Type: multipart/alternative; boundary="15671236170.f3AE6d.32417" Content-Transfer-Encoding: 7bit --15671236170.f3AE6d.32417 Date: Fri, 30 Aug 2019 00:06:57 +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=3D111241 --- Comment #9 from Dieter N=C3=BCtzel --- Created attachment 145215 --> https://bugs.freedesktop.org/attachment.cgi?id=3D145215&action=3Dedit Shadertoy-EOT-Grid-scene-2.png --=20 You are receiving this mail because: You are the assignee for the bug.= --15671236170.f3AE6d.32417 Date: Fri, 30 Aug 2019 00:06:57 +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

Commen= t # 9 on bug 11124= 1 from Dieter N=C3=BCtzel
Created attachmen=
t 145215 [details]
Shadertoy-EOT-Grid-scene-2.png


You are receiving this mail because:
  • You are the assignee for the bug.
= --15671236170.f3AE6d.32417-- --===============1800608803== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============1800608803==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 111241] Shadertoy shader causing hang Date: Fri, 30 Aug 2019 00:11:40 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1843986609==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id C8B376E229 for ; Fri, 30 Aug 2019 00:11:39 +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 --===============1843986609== Content-Type: multipart/alternative; boundary="15671238990.2313B.344" Content-Transfer-Encoding: 7bit --15671238990.2313B.344 Date: Fri, 30 Aug 2019 00:11:39 +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=3D111241 --- Comment #10 from Dieter N=C3=BCtzel --- (In reply to Dieter N=C3=BCtzel from comment #9) > Created attachment 145215 [details] > Shadertoy-EOT-Grid-scene-2.png Saw it first @ 2. November 2018 --=20 You are receiving this mail because: You are the assignee for the bug.= --15671238990.2313B.344 Date: Fri, 30 Aug 2019 00:11:39 +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 # 10 on bug 11124= 1 from Dieter N=C3=BCtzel
(In reply to Dieter N=C3=BCtzel from comment #9)
> Created attachment 145215 [details]
> Shadertoy-EOT-Grid-scene-2.png

Saw it first @ 2. November 2018


You are receiving this mail because:
  • You are the assignee for the bug.
= --15671238990.2313B.344-- --===============1843986609== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============1843986609==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 111241] Shadertoy shader causing hang Date: Fri, 30 Aug 2019 11:56:23 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1157117111==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 08D226E2C4 for ; Fri, 30 Aug 2019 11:56:23 +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 --===============1157117111== Content-Type: multipart/alternative; boundary="15671661820.2e68060.21576" Content-Transfer-Encoding: 7bit --15671661820.2e68060.21576 Date: Fri, 30 Aug 2019 11:56:22 +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=3D111241 --- Comment #11 from Pierre-Eric Pelloux-Prayer --- (In reply to Dieter N=C3=BCtzel from comment #8) > BTW >=20 > Pierre-Eric can you look into this >=20 > Shadertoy shader corruption, too? > https://www.shadertoy.com/view/Xt3cWS > The "Buffer A" shader doesn't write fragColor when uv.y is < 0.1 or > 0.9. So the content is undefined and may be black on some platform or random. radeonsi is correct here, but we might want to replace undef values with 0x= 0 to get a default value instead of random. --=20 You are receiving this mail because: You are the assignee for the bug.= --15671661820.2e68060.21576 Date: Fri, 30 Aug 2019 11:56:22 +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 # 11 on bug 11124= 1 from Pierre= -Eric Pelloux-Prayer
(In reply to Dieter N=C3=BCtzel from comment #8)
> BTW
>=20
> Pierre-Eric can you look into this
>=20
> Shadertoy shader corruption, too?
> https://www.shaderto=
y.com/view/Xt3cWS
>

The "Buffer A" shader doesn't write fragColor when uv.y is < 0=
.1 or > 0.9.

So the content is undefined and may be black on some platform or random.

radeonsi is correct here, but we might want to replace undef values with 0x=
0 to
get a default value instead of random.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15671661820.2e68060.21576-- --===============1157117111== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============1157117111==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 111241] Shadertoy shader causing hang Date: Fri, 30 Aug 2019 23:57:36 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0053131477==" 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 41A806E132 for ; Fri, 30 Aug 2019 23:57:36 +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 --===============0053131477== Content-Type: multipart/alternative; boundary="15672094560.045E7.22501" Content-Transfer-Encoding: 7bit --15672094560.045E7.22501 Date: Fri, 30 Aug 2019 23:57:36 +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=3D111241 --- Comment #12 from Dieter N=C3=BCtzel --- (In reply to Pierre-Eric Pelloux-Prayer from comment #11) > (In reply to Dieter N=C3=BCtzel from comment #8) > > BTW > >=20 > > Pierre-Eric can you look into this > >=20 > > Shadertoy shader corruption, too? > > https://www.shadertoy.com/view/Xt3cWS > > >=20 > The "Buffer A" shader doesn't write fragColor when uv.y is < 0.1 or > 0.9. >=20 > So the content is undefined and may be black on some platform or random. >=20 > radeonsi is correct here, but we might want to replace undef values with = 0x0 > to get a default value instead of random. Cool to have you around for bug hunting...;-) Any hints where I shoud change 'undef values with 0x0' for testing? And sorry that I 'hijacked' this thread - should I open a new ticket? --=20 You are receiving this mail because: You are the assignee for the bug.= --15672094560.045E7.22501 Date: Fri, 30 Aug 2019 23:57:36 +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 # 12 on bug 11124= 1 from Dieter N=C3=BCtzel
(In reply to Pierre-Eric Pelloux-Prayer from comment #11)
> (In reply to Dieter N=C3=BCtzel from comment #8)
> > BTW
> >=20
> > Pierre-Eric can you look into this
> >=20
> > Shadertoy shader corruption, too?
> > https://www.sha=
dertoy.com/view/Xt3cWS
> >
>=20
> The "Buffer A" shader doesn't write fragColor when uv.y is &=
lt; 0.1 or > 0.9.
>=20
> So the content is undefined and may be black on some platform or rando=
m.
>=20
> radeonsi is correct here, but we might want to replace undef values wi=
th 0x0
> to get a default value instead of random.

Cool to have you around for bug hunting...;-)

Any hints where I shoud change 'undef values with 0x0' for testing?

And sorry that I 'hijacked' this thread - should I open a new ticket?


You are receiving this mail because:
  • You are the assignee for the bug.
= --15672094560.045E7.22501-- --===============0053131477== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============0053131477==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 111241] Shadertoy shader causing hang Date: Mon, 02 Sep 2019 23:47:12 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1391691096==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 15A91898BC for ; Mon, 2 Sep 2019 23:47:12 +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 --===============1391691096== Content-Type: multipart/alternative; boundary="15674680310.E5af.22215" Content-Transfer-Encoding: 7bit --15674680310.E5af.22215 Date: Mon, 2 Sep 2019 23:47: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=3D111241 Timothy Arceri changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #13 from Timothy Arceri --- (In reply to Dieter N=C3=BCtzel from comment #12) > (In reply to Pierre-Eric Pelloux-Prayer from comment #11) > > (In reply to Dieter N=C3=BCtzel from comment #8) > > > BTW > > >=20 > > > Pierre-Eric can you look into this > > >=20 > > > Shadertoy shader corruption, too? > > > https://www.shadertoy.com/view/Xt3cWS > > > > >=20 > > The "Buffer A" shader doesn't write fragColor when uv.y is < 0.1 or > 0= .9. > >=20 > > So the content is undefined and may be black on some platform or random. > >=20 > > radeonsi is correct here, but we might want to replace undef values wit= h 0x0 > > to get a default value instead of random. >=20 > Cool to have you around for bug hunting...;-) >=20 > Any hints where I shoud change 'undef values with 0x0' for testing? >=20 > And sorry that I 'hijacked' this thread - should I open a new ticket? I don't think you need to open a bug for it at all. As its not a bug in Mesa its a shader bug. Closing this bug report as it should be fixed by: commit 47cc660d9c19572e5ef2dce7c8ae1766a2ac9885 glsl: replace 'x + (-x)' with constant 0 This fixes a hang in shadertoy for radeonsi where a buffer was initializ= ed with: value -=3D value with value being undefined. In this case LLVM replace the operation with an assignment to NaN. Cc: 19.1 19.2 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=3D111241 Reviewed-by: Marek Ol=C5=A1=C3=A1k --=20 You are receiving this mail because: You are the assignee for the bug.= --15674680310.E5af.22215 Date: Mon, 2 Sep 2019 23:47: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 Timothy Arceri changed bug 11124= 1
What Removed Added
Status NEW RESOLVED
Resolution --- FIXED

Comme= nt # 13 on bug 11124= 1 from Timothy Arceri
(In reply to Dieter N=C3=BCtzel from comment #12)
> (In reply to Pierre-Eric Pelloux-Prayer from comment #11)
> > (In reply to Dieter N=C3=BCtzel from comment #8)
> > > BTW
> > >=20
> > > Pierre-Eric can you look into this
> > >=20
> > > Shadertoy shader corruption, too?
> > > https://ww=
w.shadertoy.com/view/Xt3cWS
> > >
> >=20
> > The "Buffer A" shader doesn't write fragColor when uv.y=
 is < 0.1 or > 0.9.
> >=20
> > So the content is undefined and may be black on some platform or =
random.
> >=20
> > radeonsi is correct here, but we might want to replace undef valu=
es with 0x0
> > to get a default value instead of random.
>=20
> Cool to have you around for bug hunting...;-)
>=20
> Any hints where I shoud change 'undef values with 0x0' for testing?
>=20
> And sorry that I 'hijacked' this thread - should I open a new ticket?<=
/span >

I don't think you need to open a bug for it at all. As its not a bug in Mesa
its a shader bug.

Closing this bug report as it should be fixed by:

commit  47cc660d9c19572e5ef2dce7c8ae1766a2ac9885
glsl: replace 'x + (-x)' with constant 0
   This fixes a hang in shadertoy for radeonsi where a buffer was initializ=
ed
with:

   value -=3D value

   with value being undefined.
   In this case LLVM replace the operation with an assignment to NaN.

   Cc: 19.1 19.2 <mesa-stable@lists.freedesktop.org>
   Bugzilla: https://bugs.freedesktop.org/show_bug.=
cgi?id=3D111241
   Reviewed-by: Marek Ol=C5=A1=C3=A1k <marek.olsak@amd.com>


You are receiving this mail because:
  • You are the assignee for the bug.
= --15674680310.E5af.22215-- --===============1391691096== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============1391691096==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 111241] Shadertoy shader causing hang Date: Tue, 03 Sep 2019 12:00:34 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0642072039==" 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 03A458908B for ; Tue, 3 Sep 2019 12:00:34 +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 --===============0642072039== Content-Type: multipart/alternative; boundary="15675120330.B81E7D41.29032" Content-Transfer-Encoding: 7bit --15675120330.B81E7D41.29032 Date: Tue, 3 Sep 2019 12:00:33 +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=3D111241 --- Comment #14 from Pierre-Eric Pelloux-Prayer --- > > And sorry that I 'hijacked' this thread - should I open a new ticket? >=20 > I don't think you need to open a bug for it at all. As its not a bug in M= esa > its a shader bug. >=20 It's not a bug in Mesa but if adopting the same behavior than other drivers= is cheap performance-wise I think we should consider it. For instance, adding a prolog to PS that always initializes v0, v1, v2 to 0 could do the trick... maybe there are other/better ways though. --=20 You are receiving this mail because: You are the assignee for the bug.= --15675120330.B81E7D41.29032 Date: Tue, 3 Sep 2019 12:00:33 +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 # 14 on bug 11124= 1 from Pierre= -Eric Pelloux-Prayer
> > And sorry that I 'hijacked' th=
is thread - should I open a new ticket?
>=20
> I don't think you need to open a bug for it at all. As its not a bug i=
n Mesa
> its a shader bug.
> 

It's not a bug in Mesa but if adopting the same behavior than other drivers=
 is
cheap performance-wise I think we should consider it.

For instance, adding a prolog to PS that always initializes v0, v1, v2 to 0
could do the trick... maybe there are other/better ways though.


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