From 2050f2ab96f923112d3475a655b31c8f5145a800 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Fri, 28 Jan 2011 01:01:01 +0100 Subject: r300g: fix and re-enable 8x8 zbuffer compression mode Also cleanup the whole thing. --- src/gallium/drivers/r300/r300_blit.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/gallium/drivers/r300/r300_blit.c') diff --git a/src/gallium/drivers/r300/r300_blit.c b/src/gallium/drivers/r300/r300_blit.c index f24d5582e1..d0eb21c892 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, -- cgit v1.2.3