[Mesa-dev] [PATCH] i965: Fix crash from calling brw_depthbuffer_format with no Z buffer.

Eric Anholt eric at anholt.net
Tue Dec 6 16:39:01 PST 2011


On Tue,  6 Dec 2011 16:12:56 -0800, Kenneth Graunke <kenneth at whitecape.org> wrote:
> Fixes a regression on Ivybridge (didn't track it down).  +3992 piglits.
> 
> Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>

My regression.

I'd be tempted to just put the !drb check in brw_depthbuffer_format and
return D32_FLOAT there.  It's what we do for NULL depthbuffer surfaces
anyway, so sounds like a reasonable value for drb == NULL.
-------------- 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/20111206/f26934a2/attachment.pgp>


More information about the mesa-dev mailing list