summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_blit.c
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2011-01-28 01:01:01 +0100
committerMarek Olšák <maraeo@gmail.com>2011-01-28 01:04:51 +0100
commit2050f2ab96f923112d3475a655b31c8f5145a800 (patch)
tree620884683ee9c64212168d4d986661e82d16d1bf /src/gallium/drivers/r300/r300_blit.c
parent82e60236a950100bda7e00308c9b57861274608c (diff)
downloadexternal_mesa3d-2050f2ab96f923112d3475a655b31c8f5145a800.zip
external_mesa3d-2050f2ab96f923112d3475a655b31c8f5145a800.tar.gz
external_mesa3d-2050f2ab96f923112d3475a655b31c8f5145a800.tar.bz2
r300g: fix and re-enable 8x8 zbuffer compression mode
Also cleanup the whole thing.
Diffstat (limited to 'src/gallium/drivers/r300/r300_blit.c')
-rw-r--r--src/gallium/drivers/r300/r300_blit.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/gallium/drivers/r300/r300_blit.c b/src/gallium/drivers/r300/r300_blit.c
index f24d558..d0eb21c 100644
--- a/src/gallium/drivers/r300/r300_blit.c
+++ b/src/gallium/drivers/r300/r300_blit.c
@@ -114,16 +114,7 @@ static boolean r300_fast_zclear_allowed(struct r300_context *r300)
struct pipe_framebuffer_state *fb =
(struct pipe_framebuffer_state*)r300->fb_state.state;
- /* Cannot decompress zmask with a 16-bit zbuffer.
- * Also compression causes a hung. */
- if (util_format_get_blocksizebits(fb->zsbuf->texture->format) == 16)
- return FALSE;
-
- /* Cannot use compression with a linear zbuffer. */
- if (!r300_texture(fb->zsbuf->texture)->desc.microtile)
- return FALSE;
-
- return TRUE;
+ return r300_texture(fb->zsbuf->texture)->desc.zmask_dwords[fb->zsbuf->u.tex.level];
}
static uint32_t r300_depth_clear_value(enum pipe_format format,