summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2009-10-22 17:21:37 +0100
committerKeith Whitwell <[email protected]>2009-10-22 17:21:37 +0100
commit280c8acc436690eefe5f6837a7a88f6b75a50393 (patch)
tree749f535158ef235ae6d59b3c89c3ea8afe9faf5e /src/gallium
parent694f05ac18c54253910678709f2dd35c36f1e912 (diff)
llvmpipe: fix the worst of the depth regressions since switch to 4x4
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_rast.c2
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 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));