summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2012-01-17 17:14:19 -0500
committerAlex Deucher <alexander.deucher@amd.com>2012-01-17 18:03:28 -0500
commite77c495d09105a1b6a13fd62d0d3585b019e1c66 (patch)
tree2355618f3361ea440e1b25cbe8cea8df4a7547a2
parentafdd6f8c34705eae5048da03329750836bcecf44 (diff)
downloadexternal_mesa3d-e77c495d09105a1b6a13fd62d0d3585b019e1c66.zip
external_mesa3d-e77c495d09105a1b6a13fd62d0d3585b019e1c66.tar.gz
external_mesa3d-e77c495d09105a1b6a13fd62d0d3585b019e1c66.tar.bz2
radeon: 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 <alexander.deucher@amd.com> Note: this is a candidate for the stable branches.
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_maos_arrays.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_maos_arrays.c b/src/mesa/drivers/dri/radeon/radeon_maos_arrays.c
index 94fe7e4..05aa2cb 100644
--- a/src/mesa/drivers/dri/radeon/radeon_maos_arrays.c
+++ b/src/mesa/drivers/dri/radeon/radeon_maos_arrays.c
@@ -66,7 +66,7 @@ static void emit_vecfog(struct gl_context *ctx, struct radeon_aos *aos,
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;
}