diff options
author | Morgan Armand <[email protected]> | 2011-12-07 21:30:48 +0100 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2012-01-03 16:19:08 +0000 |
commit | e763b6e78825f11aa3e9e2368ba8fc47313a7848 (patch) | |
tree | f3bebf70b127e91378c52ebc3c070a3e8f09cb8e /src/gallium/drivers/softpipe/sp_screen.c | |
parent | 2ae591bdf13f02f23471ea302b55eaccbb810dd7 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_screen.c')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_screen.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/gallium/drivers/softpipe/sp_screen.c b/src/gallium/drivers/softpipe/sp_screen.c index 49e8626b0d4..e58a4867cad 100644 --- a/src/gallium/drivers/softpipe/sp_screen.c +++ b/src/gallium/drivers/softpipe/sp_screen.c @@ -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; } /* |