dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [Bug 26769] New: r600: wrong fragment shader input when using gl_fragCoord.
@ 2010-02-26 11:02 bugzilla-daemon
  2012-11-02 16:31 ` [Bug 26769] " bugzilla-daemon
  2014-07-07 15:59 ` bugzilla-daemon
  0 siblings, 2 replies; 3+ messages in thread
From: bugzilla-daemon @ 2010-02-26 11:02 UTC (permalink / raw)
  To: dri-devel

http://bugs.freedesktop.org/show_bug.cgi?id=26769

           Summary: r600: wrong fragment shader input when using
                    gl_fragCoord.
           Product: Mesa
           Version: git
          Platform: x86-64 (AMD64)
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Drivers/DRI/R600
        AssignedTo: dri-devel@lists.sourceforge.net
        ReportedBy: wielkiegie@gmail.com


Created an attachment (id=33583)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=33583)
Fragment shader to reproduce bug

Consider simple shader in attachment. It works as expected, samples texture
depending on input variable from vertex shader and puts texel as color.
Uncommenting first comment shouldn't change anything (gl_FragDepth just
defaults to gl_FragCoord.z), but it's not the case. In fact when I do so,
fp_texCoord is always vec2(0.0). Well, I'm not sure about that, but it gives
same results (e.g. all triangles are red, as is 0.0, 0.0 coordinate).

Note that using gl_FragCoord in *any* way (that is not optimized away) causes
this failure. For example uncommenting second comment gives same results.

I can include vertex shader (that is also simple, just multiplies matrix with
gl_Position and copies texCoord into fp_texCoord) and sample program, if that
matter.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
--

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

end of thread, other threads:[~2014-07-07 15:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-26 11:02 [Bug 26769] New: r600: wrong fragment shader input when using gl_fragCoord bugzilla-daemon
2012-11-02 16:31 ` [Bug 26769] " bugzilla-daemon
2014-07-07 15:59 ` bugzilla-daemon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).