softpipe: remove the 32bits limitation on depth(-stencil) formats

This patch remove the 32bits limitation. As a side effect, it bring the support for the GL_ARB_depth_buffer_float extension.
No regression have been found on piglit, and all tests for GL_ARB_depth_buffer_float pass successfully.

Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
Morgan Armand
2011-12-07 21:30:48 +01:00
committed by Dave Airlie
parent 2ae591bdf1
commit e763b6e788
6 changed files with 91 additions and 21 deletions

View File

@@ -250,19 +250,6 @@ softpipe_is_format_supported( struct pipe_screen *screen,
if (bind & PIPE_BIND_DEPTH_STENCIL) {
if (format_desc->colorspace != UTIL_FORMAT_COLORSPACE_ZS)
return FALSE;
/*
* TODO: Unfortunately we cannot render into anything more than 32 bits
* because we encode depth and stencil clear values into a 32bit word.
*/
if (format_desc->block.bits > 32)
return FALSE;
/*
* TODO: eliminate this restriction
*/
if (format == PIPE_FORMAT_Z32_FLOAT)
return FALSE;
}
/*