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

           Summary: i945 cubemap texture layout code is buggy
           Product: Mesa
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Drivers/DRI/i915
        AssignedTo: dri-devel@lists.sourceforge.net
        ReportedBy: sgunder...@bigfoot.com


Created an attachment (id=25752)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=25752)
Patch that fixes the issue

The i945 cubemap layout code is buggy for the lower mip levels; it puts the 4x4
and 2x2 mipmaps on top of each other due to a missing break, and the 2x2 mipmap
levels are in the wrong order (+X -X +Y -Y +Z -Z instead of +X +Y +Z -X -Y -Z).
The attached patch fixes both issues. It also fixes an inconsistency in the
comment -- both the code, the figure and the rest of the comment assumes 8x8
alignment, not 4x4 as the comment says.

I've attached a small conformance test that makes a 64x64 cubemap and draws all
faces and mip levels (with reference colors on the left, textured rendering on
the right). reference-cubemap.png is how it's rendered on all ATI and nVidia
cards I've been able to find. i945-cubemap-pre-fix.png is how it looks in Mesa
7.4.1, i945-cubemap-post-fix.png is how it looks after the attached patch.

As you can see, it's still not right on my i945, but that's a separate bug
(filing shortly).


-- 
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
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to