i965: Return BRW_DEPTHBUFFER_D32_FLOAT as the null-depthbuffer format.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 7 Dec 2011 10:21:37 +0000 (02:21 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 7 Dec 2011 22:51:12 +0000 (14:51 -0800)
commitd464a21e2d796e396e7e4c0cfe971b41003e2d2a
tree19c646831aaf8d6c34ebe499b507436f135ee13f
parent5b27e44652119fd01fe93759e2c82348f4b6d707
i965: Return BRW_DEPTHBUFFER_D32_FLOAT as the null-depthbuffer format.

Fixes many crashes on Ivybridge due to upload_sf_state calling
brw_depthbuffer_format without an actual depth buffer.  This was a
recent regression on master.

+3992 piglits on Ivybridge.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_misc_state.c