Module: Mesa Branch: lp-binning Commit: 280c8acc436690eefe5f6837a7a88f6b75a50393 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=280c8acc436690eefe5f6837a7a88f6b75a50393
Author: Keith Whitwell <[email protected]> Date: Thu Oct 22 17:21:37 2009 +0100 llvmpipe: fix the worst of the depth regressions since switch to 4x4 --- src/gallium/drivers/llvmpipe/lp_rast.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/gallium/drivers/llvmpipe/lp_rast.c b/src/gallium/drivers/llvmpipe/lp_rast.c index 6e94e22..32cd5e0 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)); _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
