[Mesa-dev] [PATCH 0/3]: fix swrast glReadPixels from FBOs

Brian Paul brianp at vmware.com
Sat Nov 5 12:16:09 PDT 2011


This series of patches fixes glReadPixels regressions when reading 
from FBOs.

See the patch comments for details.

In particular, patch 3/3 needs to be tested on a Sandybridge system to 
make sure that reading depth/stencil buffers works.  I suspect this 
_might_ be broken since there's some subtle behind-the-scenes 
management of separate depth/stencil buffers there.

However, if there is breakage I suspect I can just tweak the new 
map_attachment() and unmap_attachment() functions to just look like 
this and it'll be fixed:

if (att->Renderbuffer)
    ctx->Driver.MapRenderbuffer(...);
else
    ctx->Driver.MapTexImage(...);

-Brian


More information about the mesa-dev mailing list