From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 104143] r600/sb: clobbers gl_Position -> gl_FragCoord Date: Wed, 06 Dec 2017 11:32:43 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0723313622==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 2882289E1B for ; Wed, 6 Dec 2017 11:32:43 +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 --===============0723313622== Content-Type: multipart/alternative; boundary="15125599630.1A4202.24968"; charset="UTF-8" --15125599630.1A4202.24968 Date: Wed, 6 Dec 2017 11:32:43 +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=3D104143 --- Comment #2 from Gert Wollny --- Created attachment 136000 --> https://bugs.freedesktop.org/attachment.cgi?id=3D136000&action=3Dedit piglit screen output of simplified piglit --=20 You are receiving this mail because: You are the assignee for the bug.= --15125599630.1A4202.24968 Date: Wed, 6 Dec 2017 11:32:43 +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 10414= 3 from Gert Wollny
Created [details]
piglit screen output of simplified piglit


You are receiving this mail because:
  • You are the assignee for the bug.
= --15125599630.1A4202.24968-- --===============0723313622== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0723313622==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 104143] r600/sb: clobbers gl_Position -> gl_FragCoord Date: Wed, 06 Dec 2017 11:34:27 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0415071351==" 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 332156E65E for ; Wed, 6 Dec 2017 11:34:27 +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 --===============0415071351== Content-Type: multipart/alternative; boundary="15125600670.2b41C.24975"; charset="UTF-8" --15125600670.2b41C.24975 Date: Wed, 6 Dec 2017 11:34:27 +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=3D104143 --- Comment #4 from Gert Wollny --- Created attachment 136002 --> https://bugs.freedesktop.org/attachment.cgi?id=3D136002&action=3Dedit Version of the piglit that passes copy of gl_Position and tests it --=20 You are receiving this mail because: You are the assignee for the bug.= --15125600670.2b41C.24975 Date: Wed, 6 Dec 2017 11:34:27 +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 # 4 on bug 10414= 3 from Gert Wollny
Created attachment 136002 [details]
Version of the piglit that passes copy of gl_Position and tests it


You are receiving this mail because:
  • You are the assignee for the bug.
= --15125600670.2b41C.24975-- --===============0415071351== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0415071351==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 104143] r600/sb: clobbers gl_Position -> gl_FragCoord Date: Wed, 06 Dec 2017 11:30:57 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2146680432==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 856DF6E67E for ; Wed, 6 Dec 2017 11:30:57 +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 --===============2146680432== Content-Type: multipart/alternative; boundary="15125598570.Bf43.24772"; charset="UTF-8" --15125598570.Bf43.24772 Date: Wed, 6 Dec 2017 11:30: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=3D104143 Bug ID: 104143 Summary: r600/sb: clobbers gl_Position -> gl_FragCoord Product: Mesa Version: git Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: normal Priority: medium Component: Drivers/Gallium/r600 Assignee: dri-devel@lists.freedesktop.org Reporter: gw.fossdev@gmail.com QA Contact: dri-devel@lists.freedesktop.org Created attachment 135998 --> https://bugs.freedesktop.org/attachment.cgi?id=3D135998&action=3Dedit piglit drawing output with sb enabled With a variation of the piglit=20 spec/glsl-1.10/execution/variable-indexing/vs-output-array-vec2-index-wr r600/sb clobbers the gl_Position/gl_FragCoord. The variation consists in replacing two arrays of vec2 by one array of vec4= and swizzling the elements to achieve the same result (by effectively interleav= ing the two arrays).=20 A few observations:=20 * As can be seen from the colour coding screen shots, the array content is= =20=20 correctly passed from the vertex shader to the fragment shader.=20 * The error only occurs for the uniform index value 0.=20 * When passing an additional parameter that contains a copy of gl_Position, then this parameter seems to have the correct value (i.e. the vertex shad= er correctly evaluates gl_Position). * The byte code doesn't doesn't give any obvious indication why things go w= rong with the optimized shader.=20 My mesa is at fa8c1b92b7.=20 best,=20 Gert --=20 You are receiving this mail because: You are the assignee for the bug.= --15125598570.Bf43.24772 Date: Wed, 6 Dec 2017 11:30: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
Bug ID 104143
Summary r600/sb: clobbers gl_Position -> gl_FragCoord
Product Mesa
Version git
Hardware x86-64 (AMD64)
OS Linux (All)
Status NEW
Severity normal
Priority medium
Component Drivers/Gallium/r600
Assignee dri-devel@lists.freedesktop.org
Reporter gw.fossdev@gmail.com
QA Contact dri-devel@lists.freedesktop.org

Created at=
tachment 135998 [details]
piglit drawing output with sb enabled

With a variation of the piglit=20

    spec/glsl-1.10/execution/variable-indexing/vs-output-array-vec2-index-wr

r600/sb clobbers the gl_Position/gl_FragCoord.

The variation consists in replacing two arrays of vec2 by one array of vec4=
 and
swizzling the elements to achieve the same result (by effectively interleav=
ing
the two arrays).=20

A few observations:=20

* As can be seen from the colour coding screen shots, the array content is=
=20=20
correctly passed from the vertex shader to the fragment shader.=20

* The error only occurs for the uniform index value 0.=20

* When passing an additional parameter that contains a copy of gl_Position,
then   this parameter seems to have the correct value (i.e. the vertex shad=
er
correctly evaluates gl_Position).

* The byte code doesn't doesn't give any obvious indication why things go w=
rong
with the optimized shader.=20

My mesa is at fa8c1b92b7.=20

best,=20
Gert


You are receiving this mail because:
  • You are the assignee for the bug.
= --15125598570.Bf43.24772-- --===============2146680432== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============2146680432==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 104143] r600/sb: clobbers gl_Position -> gl_FragCoord Date: Wed, 06 Dec 2017 11:35:38 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0521556627==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 37B906E6F5 for ; Wed, 6 Dec 2017 11:35:38 +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 --===============0521556627== Content-Type: multipart/alternative; boundary="15125601380.4F31dD58C.25438"; charset="UTF-8" --15125601380.4F31dD58C.25438 Date: Wed, 6 Dec 2017 11:35:38 +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=3D104143 --- Comment #5 from Gert Wollny --- Created attachment 136003 --> https://bugs.freedesktop.org/attachment.cgi?id=3D136003&action=3Dedit Piglit screen output with R600_DEBUG=3Dnosb of shaders with extra pos param= eter --=20 You are receiving this mail because: You are the assignee for the bug.= --15125601380.4F31dD58C.25438 Date: Wed, 6 Dec 2017 11:35:38 +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 # 5 on bug 10414= 3 from Gert Wollny
Created attachment 136003 [details]
Piglit screen output with R600_DEBUG=3Dnosb of shaders with extra pos param=
eter


You are receiving this mail because:
  • You are the assignee for the bug.
= --15125601380.4F31dD58C.25438-- --===============0521556627== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0521556627==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 104143] r600/sb: clobbers gl_Position -> gl_FragCoord Date: Wed, 06 Dec 2017 11:32:07 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1531573928==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 9A1F66E172 for ; Wed, 6 Dec 2017 11:32:07 +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 --===============1531573928== Content-Type: multipart/alternative; boundary="15125599270.8cAfcb8.24982"; charset="UTF-8" --15125599270.8cAfcb8.24982 Date: Wed, 6 Dec 2017 11:32:07 +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=3D104143 --- Comment #1 from Gert Wollny --- Created attachment 135999 --> https://bugs.freedesktop.org/attachment.cgi?id=3D135999&action=3Dedit Version of the original piglit that passes --=20 You are receiving this mail because: You are the assignee for the bug.= --15125599270.8cAfcb8.24982 Date: Wed, 6 Dec 2017 11:32:07 +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 10414= 3 from Gert Wollny
Created attachment 135999 [details]=

Version of the original piglit that passes


You are receiving this mail because:
  • You are the assignee for the bug.
= --15125599270.8cAfcb8.24982-- --===============1531573928== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1531573928==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 104143] r600/sb: clobbers gl_Position -> gl_FragCoord Date: Wed, 06 Dec 2017 11:33:34 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0160993976==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 8F0996E0ED for ; Wed, 6 Dec 2017 11:33: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 --===============0160993976== Content-Type: multipart/alternative; boundary="15125600140.09fF5bd4.25176"; charset="UTF-8" --15125600140.09fF5bd4.25176 Date: Wed, 6 Dec 2017 11:33:34 +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=3D104143 --- Comment #3 from Gert Wollny --- Created attachment 136001 --> https://bugs.freedesktop.org/attachment.cgi?id=3D136001&action=3Dedit Version of the piglit that uses interleaved array and fails with sb --=20 You are receiving this mail because: You are the assignee for the bug.= --15125600140.09fF5bd4.25176 Date: Wed, 6 Dec 2017 11:33:34 +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 10414= 3 from Gert Wollny
Created attachment 136001 [details]
Version of the piglit that uses interleaved array and fails with sb


You are receiving this mail because:
  • You are the assignee for the bug.
= --15125600140.09fF5bd4.25176-- --===============0160993976== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0160993976==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 104143] r600/sb: clobbers gl_Position -> gl_FragCoord Date: Wed, 06 Dec 2017 11:37:35 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1987247224==" 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 7F4E489B30 for ; Wed, 6 Dec 2017 11:37:35 +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 --===============1987247224== Content-Type: multipart/alternative; boundary="15125602550.d71E.25163"; charset="UTF-8" --15125602550.d71E.25163 Date: Wed, 6 Dec 2017 11:37:35 +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=3D104143 --- Comment #6 from Gert Wollny --- Created attachment 136004 --> https://bugs.freedesktop.org/attachment.cgi?id=3D136004&action=3Dedit Piglit output with extra pos parameter and sb enabled In this image on can see that the (corrected) position passed as extra parameter differs from the gl_Position for index=3D0 (colour coded differen= ce), but only for index 0. --=20 You are receiving this mail because: You are the assignee for the bug.= --15125602550.d71E.25163 Date: Wed, 6 Dec 2017 11:37:35 +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 10414= 3 from Gert Wollny
Created attachment 136004 [details]
Piglit output with extra pos parameter and sb enabled

In this image on can see that the (corrected) position passed as extra
parameter differs from the gl_Position for index=3D0 (colour coded differen=
ce),
but only for index 0.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15125602550.d71E.25163-- --===============1987247224== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1987247224==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 104143] r600/sb: clobbers gl_Position -> gl_FragCoord Date: Wed, 06 Dec 2017 11:43:32 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0061103052==" 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 9F1446E0A7 for ; Wed, 6 Dec 2017 11:43:32 +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 --===============0061103052== Content-Type: multipart/alternative; boundary="15125606120.812318.26048"; charset="UTF-8" --15125606120.812318.26048 Date: Wed, 6 Dec 2017 11:43: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=3D104143 --- Comment #7 from Gert Wollny --- Created attachment 136005 --> https://bugs.freedesktop.org/attachment.cgi?id=3D136005&action=3Dedit Shader dump with pos test --=20 You are receiving this mail because: You are the assignee for the bug.= --15125606120.812318.26048 Date: Wed, 6 Dec 2017 11:43: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 # 7 on bug 10414= 3 from Gert Wollny
Created attachment 136=
005 [details]
Shader dump with pos test


You are receiving this mail because:
  • You are the assignee for the bug.
= --15125606120.812318.26048-- --===============0061103052== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0061103052==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 104143] r600/sb: clobbers gl_Position -> gl_FragCoord Date: Wed, 06 Dec 2017 14:32:07 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0393001901==" 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 B4B1B6E1B8 for ; Wed, 6 Dec 2017 14:32:06 +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 --===============0393001901== Content-Type: multipart/alternative; boundary="15125707260.db0d.12491"; charset="UTF-8" --15125707260.db0d.12491 Date: Wed, 6 Dec 2017 14:32:06 +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=3D104143 --- Comment #8 from Gert Wollny --- I found the problem:=20 if KC0[0].x =3D=3D index (=3D0):=20=20 1 x: ADD_INT T0.x, KC0[0].x, [0xfffffffe -nan].x 2 x: MOVA_INT __.x, T0.x Address register is now -2 and hence, in the next step R1 is unconditional= ly written, and this is actually the gl_Vertex value ... 3 z: MOV R[3+AR].z, 0 w: MOV R[3+AR].w, [0x3dcccccd 0.1].x that is here used to evaluate the gl_Posuition.=20 5 x: MUL_IEEE T0.x, KC0[1].w, R1.x y: MUL_IEEE T0.y, KC0[1].z, R1.x 6 t: MULADD_IEEE T0.y, KC0[2].z, R1.y, T0.y SCL_212 ... In the un-optimized shader R[3+AR].w is only written to if (KC0[0].x >=3D 2= ), and hence AR >=3D 0; I.e. the sb optimizer is to aggressive in optimizing away the conditional blocks. --=20 You are receiving this mail because: You are the assignee for the bug.= --15125707260.db0d.12491 Date: Wed, 6 Dec 2017 14:32:06 +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 10414= 3 from Gert Wollny
I found the problem:=20

if KC0[0].x =3D=3D index (=3D0):=20=20

1      x: ADD_INT            T0.x,  KC0[0].x, [0xfffffffe -nan].x
2      x: MOVA_INT           __.x,  T0.x

Address register is now -2 and hence,  in the next step R1 is unconditional=
ly
written, and this is actually the gl_Vertex value ...

3      z: MOV                R[3+AR].z,  0
       w: MOV                R[3+AR].w,  [0x3dcccccd 0.1].x

that is here used to evaluate the gl_Posuition.=20

5      x: MUL_IEEE           T0.x,  KC0[1].w, R1.x
       y: MUL_IEEE           T0.y,  KC0[1].z, R1.x
6      t: MULADD_IEEE        T0.y,  KC0[2].z, R1.y, T0.y   SCL_212
...

In the un-optimized shader R[3+AR].w is only written to if (KC0[0].x >=
=3D 2), and
hence AR >=3D 0;

I.e. the sb optimizer is to aggressive in optimizing away the conditional
blocks.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15125707260.db0d.12491-- --===============0393001901== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0393001901==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 104143] r600/sb: clobbers gl_Position -> gl_FragCoord Date: Wed, 06 Dec 2017 16:49:51 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1072689639==" 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 47A386E6AC for ; Wed, 6 Dec 2017 16:49:51 +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 --===============1072689639== Content-Type: multipart/alternative; boundary="15125789910.2bf094bDf.29794"; charset="UTF-8" --15125789910.2bf094bDf.29794 Date: Wed, 6 Dec 2017 16:49:51 +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=3D104143 --- Comment #9 from Gert Wollny --- Patch: https://patchwork.freedesktop.org/patch/192036/ --=20 You are receiving this mail because: You are the assignee for the bug.= --15125789910.2bf094bDf.29794 Date: Wed, 6 Dec 2017 16:49:51 +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.
= --15125789910.2bf094bDf.29794-- --===============1072689639== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1072689639==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 104143] r600/sb: clobbers gl_Position -> gl_FragCoord Date: Fri, 22 Dec 2017 14:49:45 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0907854609==" 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 6EB006E738 for ; Fri, 22 Dec 2017 14:49:45 +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 --===============0907854609== Content-Type: multipart/alternative; boundary="15139541851.BBc5C6a1.21927"; charset="UTF-8" --15139541851.BBc5C6a1.21927 Date: Fri, 22 Dec 2017 14:49:45 +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=3D104143 --- Comment #10 from Emil Velikov --- Gert, should we close this considering the patch (fix?) has landed? --=20 You are receiving this mail because: You are the assignee for the bug.= --15139541851.BBc5C6a1.21927 Date: Fri, 22 Dec 2017 14:49:45 +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 10414= 3 from Emil Velikov
Gert, should we close this considering the patch (fix?) has la=
nded?


You are receiving this mail because:
  • You are the assignee for the bug.
= --15139541851.BBc5C6a1.21927-- --===============0907854609== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0907854609==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 104143] r600/sb: clobbers gl_Position -> gl_FragCoord Date: Fri, 29 Dec 2017 18:57:32 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0190882635==" 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 7BFF489994 for ; Fri, 29 Dec 2017 18:57:32 +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 --===============0190882635== Content-Type: multipart/alternative; boundary="15145738520.DAD1DC9.30037"; charset="UTF-8" --15145738520.DAD1DC9.30037 Date: Fri, 29 Dec 2017 18:57: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=3D104143 Gert Wollny changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED --- Comment #11 from Gert Wollny --- Fixed with commit 6c268ea79af80a65a89a23854bdbe8bc1e99ab23 --=20 You are receiving this mail because: You are the assignee for the bug.= --15145738520.DAD1DC9.30037 Date: Fri, 29 Dec 2017 18:57: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 Gert Wollny changed bug 10414= 3
What Removed Added
Resolution --- FIXED
Status NEW RESOLVED

Comme= nt # 11 on bug 10414= 3 from Gert Wollny
Fixed with commit 6c268ea79af80a65a89a23854bdbe8bc1e99ab23
        


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