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