From mboxrd@z Thu Jan 1 00:00:00 1970
From: bugzilla-daemon@freedesktop.org
Subject: [Bug 95130] Derivatives of gl_Color wrong when helper pixels used
Date: Mon, 25 Apr 2016 11:26:46 +0000
Message-ID:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============1862374924=="
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 C4DB76E589
for ; Mon, 25 Apr 2016 11:26:46 +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
--===============1862374924==
Content-Type: multipart/alternative; boundary="14615836060.4DD12FB74.12218";
charset="UTF-8"
--14615836060.4DD12FB74.12218
Date: Mon, 25 Apr 2016 11:26:46 +0000
MIME-Version: 1.0
Content-Type: text/plain
https://bugs.freedesktop.org/show_bug.cgi?id=95130
Bug ID: 95130
Summary: Derivatives of gl_Color wrong when helper pixels used
Product: Mesa
Version: git
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/radeonsi
Assignee: dri-devel@lists.freedesktop.org
Reporter: jlegg@feralinteractive.com
QA Contact: dri-devel@lists.freedesktop.org
Created attachment 123239
--> https://bugs.freedesktop.org/attachment.cgi?id=123239&action=edit
Test program
Along the edges of triangles and around where fragments are rejected due to
depth testing, the GLSL functions dFdx, dFdy, and fwidth return incorrect
values when the argument is dependant on gl_Color or gl_SecondaryColor.
I've attached a program reproducing the issue. It takes derivatives of a
constant, which should be 0. It is expected to produce a black window. However,
the edges of the triangle it draws are visible because of this bug.
The error does not occur when environment variable LIBGL_ALWAYS_SOFTWARE is set
to 1.
I'm using Mesa git 0831eb9 with an AMD R9 270 on x86_64 Fedora 22.
--
You are receiving this mail because:
You are the assignee for the bug.
--14615836060.4DD12FB74.12218
Date: Mon, 25 Apr 2016 11:26:46 +0000
MIME-Version: 1.0
Content-Type: text/html
| Bug ID |
95130
|
| Summary |
Derivatives of gl_Color wrong when helper pixels used
|
| Product |
Mesa
|
| Version |
git
|
| Hardware |
Other
|
| OS |
All
|
| Status |
NEW
|
| Severity |
normal
|
| Priority |
medium
|
| Component |
Drivers/Gallium/radeonsi
|
| Assignee |
dri-devel@lists.freedesktop.org
|
| Reporter |
jlegg@feralinteractive.com
|
| QA Contact |
dri-devel@lists.freedesktop.org
|
Created attachment 123239 [details]
Test program
Along the edges of triangles and around where fragments are rejected due to
depth testing, the GLSL functions dFdx, dFdy, and fwidth return incorrect
values when the argument is dependant on gl_Color or gl_SecondaryColor.
I've attached a program reproducing the issue. It takes derivatives of a
constant, which should be 0. It is expected to produce a black window. However,
the edges of the triangle it draws are visible because of this bug.
The error does not occur when environment variable LIBGL_ALWAYS_SOFTWARE is set
to 1.
I'm using Mesa git 0831eb9 with an AMD R9 270 on x86_64 Fedora 22.
You are receiving this mail because:
- You are the assignee for the bug.
--14615836060.4DD12FB74.12218--
--===============1862374924==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs
IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz
dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg==
--===============1862374924==--
From mboxrd@z Thu Jan 1 00:00:00 1970
From: bugzilla-daemon@freedesktop.org
Subject: [Bug 95130] Derivatives of gl_Color wrong when helper pixels used
Date: Mon, 25 Apr 2016 11:27:27 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============1324738813=="
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 B72466E58A
for ; Mon, 25 Apr 2016 11:27: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
--===============1324738813==
Content-Type: multipart/alternative; boundary="14615836470.616f78Bb.12223";
charset="UTF-8"
--14615836470.616f78Bb.12223
Date: Mon, 25 Apr 2016 11:27:27 +0000
MIME-Version: 1.0
Content-Type: text/plain
https://bugs.freedesktop.org/show_bug.cgi?id=95130
--- Comment #1 from James Legg ---
Created attachment 123240
--> https://bugs.freedesktop.org/attachment.cgi?id=123240&action=edit
Apitrace trace of test program
--
You are receiving this mail because:
You are the assignee for the bug.
--14615836470.616f78Bb.12223
Date: Mon, 25 Apr 2016 11:27:27 +0000
MIME-Version: 1.0
Content-Type: text/html
You are receiving this mail because:
- You are the assignee for the bug.
--14615836470.616f78Bb.12223--
--===============1324738813==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs
IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz
dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg==
--===============1324738813==--
From mboxrd@z Thu Jan 1 00:00:00 1970
From: bugzilla-daemon@freedesktop.org
Subject: [Bug 95130] Derivatives of gl_Color wrong when helper pixels used
Date: Mon, 25 Apr 2016 11:28:39 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============0343949109=="
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 D1B186E58B
for ; Mon, 25 Apr 2016 11:28: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
--===============0343949109==
Content-Type: multipart/alternative; boundary="14615837180.dfDF56.12621";
charset="UTF-8"
--14615837180.dfDF56.12621
Date: Mon, 25 Apr 2016 11:28:38 +0000
MIME-Version: 1.0
Content-Type: text/plain
https://bugs.freedesktop.org/show_bug.cgi?id=95130
--- Comment #2 from James Legg ---
Created attachment 123241
--> https://bugs.freedesktop.org/attachment.cgi?id=123241&action=edit
Appearance when test is failing
--
You are receiving this mail because:
You are the assignee for the bug.
--14615837180.dfDF56.12621
Date: Mon, 25 Apr 2016 11:28:38 +0000
MIME-Version: 1.0
Content-Type: text/html
You are receiving this mail because:
- You are the assignee for the bug.
--14615837180.dfDF56.12621--
--===============0343949109==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs
IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz
dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg==
--===============0343949109==--
From mboxrd@z Thu Jan 1 00:00:00 1970
From: bugzilla-daemon@freedesktop.org
Subject: [Bug 95130] Derivatives of gl_Color wrong when helper pixels used
Date: Mon, 25 Apr 2016 17:26:20 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============0197128568=="
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 5553A6E690
for ; Mon, 25 Apr 2016 17:26:20 +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
--===============0197128568==
Content-Type: multipart/alternative; boundary="14616051800.cAdb8.13510";
charset="UTF-8"
--14616051800.cAdb8.13510
Date: Mon, 25 Apr 2016 17:26:20 +0000
MIME-Version: 1.0
Content-Type: text/plain
https://bugs.freedesktop.org/show_bug.cgi?id=95130
--- Comment #3 from Nicolai Hähnle ---
Hi James, thank you for the detailed report. I can reproduce this and am going
to investigate.
--
You are receiving this mail because:
You are the assignee for the bug.
--14616051800.cAdb8.13510
Date: Mon, 25 Apr 2016 17:26:20 +0000
MIME-Version: 1.0
Content-Type: text/html
You are receiving this mail because:
- You are the assignee for the bug.
--14616051800.cAdb8.13510--
--===============0197128568==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs
IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz
dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg==
--===============0197128568==--
From mboxrd@z Thu Jan 1 00:00:00 1970
From: bugzilla-daemon@freedesktop.org
Subject: [Bug 95130] Derivatives of gl_Color wrong when helper pixels used
Date: Mon, 25 Apr 2016 17:34:59 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============0054529317=="
Return-path:
Received: from culpepper.freedesktop.org (culpepper.freedesktop.org
[131.252.210.165])
by gabe.freedesktop.org (Postfix) with ESMTP id B3AAA6E699
for ; Mon, 25 Apr 2016 17: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
--===============0054529317==
Content-Type: multipart/alternative; boundary="14616056981.fa05Cc1C.15354";
charset="UTF-8"
--14616056981.fa05Cc1C.15354
Date: Mon, 25 Apr 2016 17:34:58 +0000
MIME-Version: 1.0
Content-Type: text/plain
https://bugs.freedesktop.org/show_bug.cgi?id=95130
--- Comment #4 from Nicolai Hähnle ---
As a temporary workaround, the error should disappear when you run with the
environment variable setting R600_DEBUG=mono.
The cause is that with non-monolithic shaders, input interpolation happens in
the prolog. However, when we compile the prolog we do not see the derivative
computations and therefore fail to turn the helper pixels on.
--
You are receiving this mail because:
You are the assignee for the bug.
--14616056981.fa05Cc1C.15354
Date: Mon, 25 Apr 2016 17:34:58 +0000
MIME-Version: 1.0
Content-Type: text/html
Comment # 4
on bug 95130
from Nicolai Hähnle
As a temporary workaround, the error should disappear when you run with the
environment variable setting R600_DEBUG=mono.
The cause is that with non-monolithic shaders, input interpolation happens in
the prolog. However, when we compile the prolog we do not see the derivative
computations and therefore fail to turn the helper pixels on.
You are receiving this mail because:
- You are the assignee for the bug.
--14616056981.fa05Cc1C.15354--
--===============0054529317==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs
IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz
dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg==
--===============0054529317==--
From mboxrd@z Thu Jan 1 00:00:00 1970
From: bugzilla-daemon@freedesktop.org
Subject: [Bug 95130] Derivatives of gl_Color wrong when helper pixels used
Date: Tue, 07 Jun 2016 23:26:15 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============1152623331=="
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 8769C6E871
for ; Tue, 7 Jun 2016 23:26:15 +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
--===============1152623331==
Content-Type: multipart/alternative; boundary="14653419751.cBed062.12672";
charset="UTF-8"
--14653419751.cBed062.12672
Date: Tue, 7 Jun 2016 23:26:15 +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=3D95130
Nicolai H=C3=A4hnle changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #5 from Nicolai H=C3=A4hnle ---
This is now fixed in Mesa Git b42bc90b6add0d0f81d915d49712761d32329afa with
LLVM r272063.
--=20
You are receiving this mail because:
You are the assignee for the bug.=
--14653419751.cBed062.12672
Date: Tue, 7 Jun 2016 23:26:15 +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
Nicolai H=C3=A4hnle
changed
bug 95130<=
/a>
| What |
Removed |
Added |
| Status |
NEW
|
RESOLVED
|
| Resolution |
---
|
FIXED
|
You are receiving this mail because:
- You are the assignee for the bug.
=
--14653419751.cBed062.12672--
--===============1152623331==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs
IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz
dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg==
--===============1152623331==--