summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlex Deucher <[email protected]>2012-01-17 17:06:18 -0500
committerAlex Deucher <[email protected]>2012-01-17 18:03:28 -0500
commitafdd6f8c34705eae5048da03329750836bcecf44 (patch)
tree9bf6c54e4e9e6a995a7275ebd9141fbb8815bdb7 /src
parentba59a1a0d817566576e20e66d74f1917d958119e (diff)
r200: fix fog coordinate emit
Noticed by dungeon on phoronix: http://phoronix.com/forums/showthread.php?65408-Radeon-R100-R200-Mesa-Driver-Sees-Attention&p=247018#post247018 Signed-off-by: Alex Deucher <[email protected]> Note: this is a candidate for the stable branches.
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/r200/r200_maos_arrays.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_maos_arrays.c b/src/mesa/drivers/dri/r200/r200_maos_arrays.c
index b62290231b9..dee73035106 100644
--- a/src/mesa/drivers/dri/r200/r200_maos_arrays.c
+++ b/src/mesa/drivers/dri/r200/r200_maos_arrays.c
@@ -83,7 +83,7 @@ static void r200_emit_vecfog(struct gl_context *ctx, struct radeon_aos *aos,
count = 1;
aos->stride = 0;
} else {
- radeonAllocDmaRegion(rmesa, &aos->bo, &aos->offset, size * 4, 32);
+ radeonAllocDmaRegion(rmesa, &aos->bo, &aos->offset, size * count * 4, 32);
aos->stride = size;
}