Bug 25916 - floating point texture components reversed
Summary: floating point texture components reversed
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/R600 (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-06 08:29 UTC by Pierre Ossman
Modified: 2010-01-06 09:46 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.