diff options
author | Brian Paul <brianp@vmware.com> | 2011-09-15 16:20:01 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2011-09-16 07:38:53 -0600 |
commit | 89999204eca233b879ed055aaf2c6a299c263b16 (patch) | |
tree | 0bbdcf93ebf16c6f7f89314535130bf6ba3ff9f5 /src | |
parent | 2b47d2bce1f77cc450da500655a0ab5596c0585e (diff) | |
download | external_mesa3d-89999204eca233b879ed055aaf2c6a299c263b16.zip external_mesa3d-89999204eca233b879ed055aaf2c6a299c263b16.tar.gz external_mesa3d-89999204eca233b879ed055aaf2c6a299c263b16.tar.bz2 |
softpipe: use util_format_is_depth_or_stencil()
Reviewed-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_tile_cache.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/gallium/drivers/softpipe/sp_tile_cache.c b/src/gallium/drivers/softpipe/sp_tile_cache.c index 60870b8..7372470 100644 --- a/src/gallium/drivers/softpipe/sp_tile_cache.c +++ b/src/gallium/drivers/softpipe/sp_tile_cache.c @@ -180,13 +180,7 @@ sp_tile_cache_set_surface(struct softpipe_tile_cache *tc, PIPE_TRANSFER_UNSYNCHRONIZED, 0, 0, ps->width, ps->height); - tc->depth_stencil = (ps->format == PIPE_FORMAT_Z24_UNORM_S8_USCALED || - ps->format == PIPE_FORMAT_Z24X8_UNORM || - ps->format == PIPE_FORMAT_S8_USCALED_Z24_UNORM || - ps->format == PIPE_FORMAT_X8Z24_UNORM || - ps->format == PIPE_FORMAT_Z16_UNORM || - ps->format == PIPE_FORMAT_Z32_UNORM || - ps->format == PIPE_FORMAT_S8_USCALED); + tc->depth_stencil = util_format_is_depth_or_stencil(ps->format); } } |