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_clear.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_clear.c')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_clear.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/softpipe/sp_clear.c b/src/gallium/drivers/softpipe/sp_clear.c index b59524a2214..dd6bd833e61 100644 --- a/src/gallium/drivers/softpipe/sp_clear.c +++ b/src/gallium/drivers/softpipe/sp_clear.c @@ -50,7 +50,7 @@ softpipe_clear(struct pipe_context *pipe, unsigned buffers, double depth, unsigned stencil) { struct softpipe_context *softpipe = softpipe_context(pipe); - unsigned cv; + uint64_t cv; uint i; if (softpipe->no_rast) @@ -73,7 +73,7 @@ softpipe_clear(struct pipe_context *pipe, unsigned buffers, static const union pipe_color_union zero; struct pipe_surface *ps = softpipe->framebuffer.zsbuf; - cv = util_pack_z_stencil(ps->format, depth, stencil); + cv = util_pack64_z_stencil(ps->format, depth, stencil); sp_tile_cache_clear(softpipe->zsbuf_cache, &zero, cv); } |