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:

committed by
Dave Airlie

parent
2ae591bdf1
commit
e763b6e788
@@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user