From: Alex Deucher Date: Tue, 17 Jan 2012 22:14:19 +0000 (-0500) Subject: radeon: fix fog coordinate emit X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e77c495d09105a1b6a13fd62d0d3585b019e1c66;p=mesa.git 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 Note: this is a candidate for the stable branches. --- diff --git a/src/mesa/drivers/dri/radeon/radeon_maos_arrays.c b/src/mesa/drivers/dri/radeon/radeon_maos_arrays.c index 94fe7e4b9f5..05aa2cbd33a 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; }