http://bugs.freedesktop.org/show_bug.cgi?id=21694
Summary: Software rendering has off-by-one for LOD clamping in
cubemaps
Product: Mesa
Version: unspecified
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: Mesa core
AssignedTo: [email protected]
ReportedBy: [email protected]
Created an attachment (id=25765)
--> (http://bugs.freedesktop.org/attachment.cgi?id=25765)
Test case source code
In the process of writing test code for bugs 21691, 21692, and 21693, I
discovered what I believe is an unrelated bug in the Mesa software renderer:
When clamping a cubemap's mip level using GL_TEXTURE_MIN_LOD and
GL_TEXTURE_MAX_LOD, LOD n corresponds to mip level n-1, not to level n as it
should. (The hardware renderers get this right).
I've described the attached test case already in the other bugs, but so each
bug is self-contained: The attached test case makes a 64x64 cubemap and renders
all six faces in all mip levels, with a reference color on the left.
reference-cubemap.png shows how it's rendered on ATI and nVidia cards (which is
correct); mesa-cubemap.png shows how it's rendered by Mesa 7.4.1 with
LIBGL_ALWAYS_SOFTWARE=1.
A possible theory is that there might be an off-by-one involved since cubemaps
have texture coordinate range -1..1 instead of 0..1, but that's just a
speculation -- I haven't checked the actual code.
--
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev