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==--