All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 95130] Derivatives of gl_Color wrong when helper pixels used
@ 2016-04-25 11:26 bugzilla-daemon
  2016-04-25 11:27 ` bugzilla-daemon
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: bugzilla-daemon @ 2016-04-25 11:26 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1312 bytes --]

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.

[-- Attachment #1.2: Type: text/html, Size: 2734 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug 95130] Derivatives of gl_Color wrong when helper pixels used
  2016-04-25 11:26 [Bug 95130] Derivatives of gl_Color wrong when helper pixels used bugzilla-daemon
@ 2016-04-25 11:27 ` bugzilla-daemon
  2016-04-25 11:28 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2016-04-25 11:27 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 320 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=95130

--- Comment #1 from James Legg <jlegg@feralinteractive.com> ---
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.

[-- Attachment #1.2: Type: text/html, Size: 1251 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug 95130] Derivatives of gl_Color wrong when helper pixels used
  2016-04-25 11:26 [Bug 95130] Derivatives of gl_Color wrong when helper pixels used bugzilla-daemon
  2016-04-25 11:27 ` bugzilla-daemon
@ 2016-04-25 11:28 ` bugzilla-daemon
  2016-04-25 17:26 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2016-04-25 11:28 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 321 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=95130

--- Comment #2 from James Legg <jlegg@feralinteractive.com> ---
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.

[-- Attachment #1.2: Type: text/html, Size: 1254 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug 95130] Derivatives of gl_Color wrong when helper pixels used
  2016-04-25 11:26 [Bug 95130] Derivatives of gl_Color wrong when helper pixels used bugzilla-daemon
  2016-04-25 11:27 ` bugzilla-daemon
  2016-04-25 11:28 ` bugzilla-daemon
@ 2016-04-25 17:26 ` bugzilla-daemon
  2016-04-25 17:34 ` bugzilla-daemon
  2016-06-07 23:26 ` bugzilla-daemon
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2016-04-25 17:26 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 282 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=95130

--- Comment #3 from Nicolai Hähnle <nhaehnle@gmail.com> ---
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.

[-- Attachment #1.2: Type: text/html, Size: 1056 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug 95130] Derivatives of gl_Color wrong when helper pixels used
  2016-04-25 11:26 [Bug 95130] Derivatives of gl_Color wrong when helper pixels used bugzilla-daemon
                   ` (2 preceding siblings ...)
  2016-04-25 17:26 ` bugzilla-daemon
@ 2016-04-25 17:34 ` bugzilla-daemon
  2016-06-07 23:26 ` bugzilla-daemon
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2016-04-25 17:34 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 527 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=95130

--- Comment #4 from Nicolai Hähnle <nhaehnle@gmail.com> ---
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.

[-- Attachment #1.2: Type: text/html, Size: 1301 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug 95130] Derivatives of gl_Color wrong when helper pixels used
  2016-04-25 11:26 [Bug 95130] Derivatives of gl_Color wrong when helper pixels used bugzilla-daemon
                   ` (3 preceding siblings ...)
  2016-04-25 17:34 ` bugzilla-daemon
@ 2016-06-07 23:26 ` bugzilla-daemon
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2016-06-07 23:26 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 586 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=95130

Nicolai Hähnle <nhaehnle@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Nicolai Hähnle <nhaehnle@gmail.com> ---
This is now fixed in Mesa Git b42bc90b6add0d0f81d915d49712761d32329afa with
LLVM r272063.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2098 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-06-07 23:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-25 11:26 [Bug 95130] Derivatives of gl_Color wrong when helper pixels used bugzilla-daemon
2016-04-25 11:27 ` bugzilla-daemon
2016-04-25 11:28 ` bugzilla-daemon
2016-04-25 17:26 ` bugzilla-daemon
2016-04-25 17:34 ` bugzilla-daemon
2016-06-07 23:26 ` bugzilla-daemon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.