http://bugs.freedesktop.org/show_bug.cgi?id=24533
Summary: Wrong pitch used for render-to-texture
Product: Mesa
Version: unspecified
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/DRI/r300
AssignedTo: [email protected]
ReportedBy: [email protected]
Created an attachment (id=30415)
--> (http://bugs.freedesktop.org/attachment.cgi?id=30415)
Patch as described
Currently the pitch used for the render-buffer created to wrap a texture is:
texImage->Width * rrb->cpp;
But the pitch we need to use is the pitch from the miptree. And in fact, we
want to use the pitch of the texture level we are rendering to.
The attached patch does this; I've only tested with rendering to level 0, and I
think there might be another bug for rendering to levels other than 0 - it
would seem that we need to set rrb->base.Width/Height to be the width/height of
the level as well.
Patch is against 7.6 branch, but HEAD looks identical.
--
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