All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 104143] r600/sb: clobbers gl_Position -> gl_FragCoord
@ 2017-12-06 11:30 bugzilla-daemon
  2017-12-06 11:32 ` bugzilla-daemon
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: bugzilla-daemon @ 2017-12-06 11:30 UTC (permalink / raw)
  To: dri-devel


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

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

            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=135998&action=edit
piglit drawing output with sb enabled

With a variation of the piglit 

    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 interleaving
the two arrays). 

A few observations: 

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

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

* 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 shader
correctly evaluates gl_Position).

* The byte code doesn't doesn't give any obvious indication why things go wrong
with the optimized shader. 

My mesa is at fa8c1b92b7. 

best, 
Gert

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

[-- Attachment #1.2: Type: text/html, Size: 3229 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] 12+ messages in thread

end of thread, other threads:[~2017-12-29 18:57 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-06 11:30 [Bug 104143] r600/sb: clobbers gl_Position -> gl_FragCoord bugzilla-daemon
2017-12-06 11:32 ` bugzilla-daemon
2017-12-06 11:32 ` bugzilla-daemon
2017-12-06 11:33 ` bugzilla-daemon
2017-12-06 11:34 ` bugzilla-daemon
2017-12-06 11:35 ` bugzilla-daemon
2017-12-06 11:37 ` bugzilla-daemon
2017-12-06 11:43 ` bugzilla-daemon
2017-12-06 14:32 ` bugzilla-daemon
2017-12-06 16:49 ` bugzilla-daemon
2017-12-22 14:49 ` bugzilla-daemon
2017-12-29 18:57 ` 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.