[Mesa-dev] [PATCH] i965: verify depth render buffer depth when in fast clear WIP

Eric Anholt eric at anholt.net
Wed May 8 10:06:03 PDT 2013


Tapani Pälli <tapani.palli at intel.com> writes:

> Patch makes sure in conservative way that the depth_clear_value
> is correct and represents max depth of current depth buffer.
>
> This fixes the case where user has 16bit color buffer but 24bit
> depth buffer and 'fb->_DepthMax' has a wrong value. I'm currently
> investigating how to get _DepthMax corrected on mesa side, but
> meanwhile this patch will enable correct rendering results for
> 16bit benchmarks instead of displaying only white color on the
> screen. This bug does not happen with user created framebuffers,
> only with window system ones.

_DepthMax should actually get fixed, instead.  _DepthMax should have
nothing to do with color bits per pixel.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130508/dd9aa96a/attachment.pgp>


More information about the mesa-dev mailing list