Bug 25916

Summary: floating point texture components reversed
Product: Mesa Reporter: Pierre Ossman <pierre-bugzilla>
Component: Drivers/DRI/R600Assignee: Default DRI bug account <dri-devel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Pierre Ossman 2010-01-06 08:29:23 UTC
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.
Comment 1 Alex Deucher 2010-01-06 08:48:07 UTC
The swizzles may be wrong for some texture formats.  See r600GetTexFormat() in r600_texstate.c.
Comment 2 Pierre Ossman 2010-01-06 09:22:31 UTC
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
Comment 3 Alex Deucher 2010-01-06 09:46:15 UTC
pushed: c9befda13a000f7ad2221e957615c909bff279f8

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.