From: Keith Whitwell Date: Thu, 22 Oct 2009 16:21:37 +0000 (+0100) Subject: llvmpipe: fix the worst of the depth regressions since switch to 4x4 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=280c8acc436690eefe5f6837a7a88f6b75a50393;p=mesa.git llvmpipe: fix the worst of the depth regressions since switch to 4x4 --- diff --git a/src/gallium/drivers/llvmpipe/lp_rast.c b/src/gallium/drivers/llvmpipe/lp_rast.c index 6e94e22e5b2..32cd5e09f54 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));