Mesa (master): r600g: use S_028B20_BUFFER_0_EN macro for streamout buffer enable

Alex Deucher agd5f at kemper.freedesktop.org
Fri Jan 20 23:10:37 UTC 2012


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

Author: Alex Deucher <alexander.deucher at amd.com>
Date:   Fri Jan 20 18:04:44 2012 -0500

r600g: use S_028B20_BUFFER_0_EN macro for streamout buffer enable

Signed-off-by: Alex Deucher <alexander.deucher at amd.com>

---

 src/gallium/drivers/r600/r600_hw_context.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/r600/r600_hw_context.c b/src/gallium/drivers/r600/r600_hw_context.c
index df26922..404f147 100644
--- a/src/gallium/drivers/r600/r600_hw_context.c
+++ b/src/gallium/drivers/r600/r600_hw_context.c
@@ -2022,7 +2022,7 @@ static void r600_set_streamout_enable(struct r600_context *ctx, unsigned buffer_
 
 		ctx->pm4[ctx->pm4_cdwords++] = PKT3(PKT3_SET_CONTEXT_REG, 1, 0);
 		ctx->pm4[ctx->pm4_cdwords++] = (R_028B20_VGT_STRMOUT_BUFFER_EN - R600_CONTEXT_REG_OFFSET) >> 2;
-		ctx->pm4[ctx->pm4_cdwords++] = buffer_enable_bit;
+		ctx->pm4[ctx->pm4_cdwords++] = S_028B20_BUFFER_0_EN(buffer_enable_bit);
 	} else {
 		ctx->pm4[ctx->pm4_cdwords++] = PKT3(PKT3_SET_CONTEXT_REG, 1, 0);
 		ctx->pm4[ctx->pm4_cdwords++] = (R_028AB0_VGT_STRMOUT_EN - R600_CONTEXT_REG_OFFSET) >> 2;




More information about the mesa-commit mailing list