Skip to contentSkip to conversation

New: floating point texture coordinates inverted

Bug 25916 [email protected] 1 participant 4 messages Jan 6, 2010

lore
Share & tools
lore
#0 lore raw

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

Summary: floating point texture coordinates inverted
Product: Mesa
Version: git
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/DRI/R600
AssignedTo: [email protected]
ReportedBy: [email protected]

All floating point textures seem to get their coordinates inverted. I don't know if this is a generic mesa bug or something specific to r600 as swrast doesn't support float textures yet. Works fine with fglrx though.

I've confirmed the issue by using the exact same program and just switching between a GL_RGBA16F_ARB and a GL_RGBA texture. The first gets both the s and t coordinate inverted and the second works fine.

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

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
--
#1 lore raw

[Bug 25916] floating point texture coordinates inverted

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

--- Comment #1 from Alex Deucher <[email protected]> 2010-01-06 08:48:07 PST --- The swizzles may be wrong for some texture formats. See r600GetTexFormat() in r600_texstate.c.

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

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
--
#2 lore raw

[Bug 25916] floating point texture components reversed

In reply to [email protected]

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

Pierre Ossman <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

            Summary|floating point texture      |floating point texture
                   |coordinates inverted        |components reversed

--- Comment #2 from Pierre Ossman <[email protected]> 2010-01-06 09:22:31 PST --- As Alex guessed, it was a swizzling problem, not a coordinate one (the texture I was using made the it more or less impossible to tell the difference). Patch has been sent to Alex, and is also available here for a while:

http://pastebin.com/m72ead66

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

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
--
#3 lore raw

[Bug 25916] floating point texture components reversed

In reply to [email protected]

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

Alex Deucher <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #3 from Alex Deucher <[email protected]> 2010-01-06 09:46:15 PST ---
pushed: c9befda13a000f7ad2221e957615c909bff279f8

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

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
--