Mesa (master): r200: fix fog coordinate emit

Alex Deucher agd5f at kemper.freedesktop.org
Tue Jan 17 23:11:16 UTC 2012


Module: Mesa
Branch: master
Commit: afdd6f8c34705eae5048da03329750836bcecf44
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=afdd6f8c34705eae5048da03329750836bcecf44

Author: Alex Deucher <alexander.deucher at amd.com>
Date:   Tue Jan 17 17:06:18 2012 -0500

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 <alexander.deucher at amd.com>

Note: this is a candidate for the stable branches.

---

 src/mesa/drivers/dri/r200/r200_maos_arrays.c |    2 +-
 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 b622902..dee7303 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;
 	}
 




More information about the mesa-commit mailing list