[Mesa-dev] [Bug 36173] New: struct renderbuffer's 'format' field never set when using FBO
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Apr 12 09:01:09 PDT 2011
https://bugs.freedesktop.org/show_bug.cgi?id=36173
Summary: struct renderbuffer's 'format' field never set when
using FBO
Product: Mesa
Version: git
Platform: Other
OS/Version: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Mesa core
AssignedTo: mesa-dev at lists.freedesktop.org
ReportedBy: pelloux at gmail.com
Created an attachment (id=45537)
--> (https://bugs.freedesktop.org/attachment.cgi?id=45537)
simple app the exibhits the problem
When using glReadPixels(0, 0, w, h, GL_RGBA, GL_UNSIGNED_BYTE, buffer) there's
a speed difference between reading back from framebuffer or from an FBO.
Using gdb I found that format field of renderbuffer structure is always equal
PIPE_FORMAT_NONE for the FBO which prevents using st_fast_readpixels.
I've built a simple patch which init format field in
"st_renderbuffer_alloc_storage" and there is an improvement (a.k.a
st_fast_readpixels is used everywhere).
What do you think of this (potential) issue ?
(I'm using git version of Mesa, and r600g)
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the mesa-dev
mailing list