From 280c8acc436690eefe5f6837a7a88f6b75a50393 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Thu, 22 Oct 2009 17:21:37 +0100 Subject: llvmpipe: fix the worst of the depth regressions since switch to 4x4 --- src/gallium/drivers/llvmpipe/lp_rast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium') diff --git a/src/gallium/drivers/llvmpipe/lp_rast.c b/src/gallium/drivers/llvmpipe/lp_rast.c index 6e94e22e5b..32cd5e09f5 100644 --- a/src/gallium/drivers/llvmpipe/lp_rast.c +++ b/src/gallium/drivers/llvmpipe/lp_rast.c @@ -265,7 +265,7 @@ void lp_rast_shade_quads( struct lp_rasterizer *rast, /* depth buffer */ assert((x % 2) == 0); assert((y % 2) == 0); - depth = tile->depth + iy*TILE_SIZE + 2*ix; + depth = tile->depth + (iy/4)*(16*16) + (ix/4)*16; /* XXX: This will most likely fail on 32bit x86 without -mstackrealign */ assert(lp_check_alignment(masks, 16)); -- cgit v1.2.3