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

           Summary: radeon texture size checks with bit 11
           Product: DRI
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: DRM/Radeon
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Hi,

I have a problem with my r520 accepting mipmapped textures huger than 2048 with
the current in kernel texture size check code.

The problem boils down to the order when the bit11 of the texture size is or'ed
to the original width. In the end each mipmap level has the same width or
height because of that 11 bit is ored to the scaled down lod with and thus
blows up the size again to the full size or more due to the power of two
rounding afterwards.

The attached patch changes this order so that the texture sizes are computed
correct. Also the on error the yet missing inputs to the size computation are
printed which helped me to find out where it really breaks.

Please apply or fix in a more appropriate way.
Thanks

Mathias


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

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
--
_______________________________________________
Dri-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to