On Wed, 2008-09-03 at 15:26 -0600, Brian Paul wrote: > Xiang, Haihao wrote: > > Hi, > > GL_EXT_packed_depth_stencil spec doesn't support 8/24 reversed format > > and Mesa doesn't support it as well. Unfortunately Intel devices hold > > 24-bit Z depth value in lower 3 bytes and 8-bit stencil value in upper > > byte, so currently a depth_stencil texture doesn't work well on 915/965. > > The attached patch tries to fix this issue in mesa core. (Although > > this can be done in a device driver, I think it is more simple to do in > > mesa core). Could you take a look? > > I think you might be missing some places in which the 24/8 layout in Mesa. > > Another approach to this might be to grab the MESA_FORMAT_S8_Z24 texture > format and related code from the gallium-0.1 branch (The commit ID could > be found in the logs, about 2 months ago). Then, add a case for the > _mesa_texformat_s8_z24 format object in intelChooseTextureFormat(), etc. Thanks. I will cherry-pick the related code for MESA_FORMAT_S8_Z24 support.
Haihao ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Mesa3d-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mesa3d-dev
