projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b47d2b
)
softpipe: use util_format_is_depth_or_stencil()
author
Brian Paul
<brianp@vmware.com>
Thu, 15 Sep 2011 22:20:01 +0000
(16:20 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 16 Sep 2011 13:38:53 +0000
(07:38 -0600)
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/softpipe/sp_tile_cache.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/softpipe/sp_tile_cache.c
b/src/gallium/drivers/softpipe/sp_tile_cache.c
index 60870b8bee5a606e93d1e11a03b87b4b87261552..73724706744e07c25706349884bdee83c1dcbbc6 100644
(file)
--- 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);
}
}