Mesa (master): r600g: Simplify some r600_bc_add_alu_type() calls to r600_bc_add_alu().

Henri Verbeet hverbeet at kemper.freedesktop.org
Tue Jan 18 11:57:30 PST 2011


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

Author: Henri Verbeet <hverbeet at gmail.com>
Date:   Tue Jan 18 20:43:56 2011 +0100

r600g: Simplify some r600_bc_add_alu_type() calls to r600_bc_add_alu().

---

 src/gallium/drivers/r600/r600_shader.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c
index 5d952a0..06ad817 100644
--- a/src/gallium/drivers/r600/r600_shader.c
+++ b/src/gallium/drivers/r600/r600_shader.c
@@ -2487,7 +2487,7 @@ static int tgsi_eg_arl(struct r600_shader_ctx *ctx)
 	alu.dst.chan = 0;
 	alu.dst.sel = ctx->temp_reg;
 	alu.dst.write = 1;
-	r = r600_bc_add_alu_type(ctx->bc, &alu, CTX_INST(V_SQ_CF_ALU_WORD1_SQ_CF_INST_ALU));
+	r = r600_bc_add_alu(ctx->bc, &alu);
 	if (r)
 		return r;
 	memset(&alu, 0, sizeof(struct r600_bc_alu));
@@ -2498,7 +2498,7 @@ static int tgsi_eg_arl(struct r600_shader_ctx *ctx)
 	alu.src[0].sel = ctx->temp_reg;
 	alu.src[0].chan = 0;
 	alu.last = 1;
-	r = r600_bc_add_alu_type(ctx->bc, &alu, CTX_INST(V_SQ_CF_ALU_WORD1_SQ_CF_INST_ALU));
+	r = r600_bc_add_alu(ctx->bc, &alu);
 	if (r)
 		return r;
 	return 0;
@@ -2531,7 +2531,7 @@ static int tgsi_r600_arl(struct r600_shader_ctx *ctx)
 
 	alu.last = 1;
 
-	r = r600_bc_add_alu_type(ctx->bc, &alu, CTX_INST(V_SQ_CF_ALU_WORD1_SQ_CF_INST_ALU));
+	r = r600_bc_add_alu(ctx->bc, &alu);
 	if (r)
 		return r;
 	ctx->bc->cf_last->r6xx_uses_waterfall = 1;



More information about the mesa-commit mailing list