[Mesa-dev] [PATCH 2/3] r600g: force bank_swizzle if already set

Vincent Lejeune vljn at ovi.com
Fri Oct 19 14:19:33 PDT 2012


---
 src/gallium/drivers/r600/r700_asm.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gallium/drivers/r600/r700_asm.c b/src/gallium/drivers/r600/r700_asm.c
index 818933a..47b4f91 100644
--- a/src/gallium/drivers/r600/r700_asm.c
+++ b/src/gallium/drivers/r600/r700_asm.c
@@ -92,6 +92,8 @@ void r700_bytecode_alu_read(struct r600_bytecode_alu *alu, uint32_t word0, uint3
 
 	/* WORD1 */
 	alu->bank_swizzle = G_SQ_ALU_WORD1_BANK_SWIZZLE(word1);
+	if (alu->bank_swizzle)
+		alu->bank_swizzle_force = alu->bank_swizzle;
 	alu->dst.sel = G_SQ_ALU_WORD1_DST_GPR(word1);
 	alu->dst.rel = G_SQ_ALU_WORD1_DST_REL(word1);
 	alu->dst.chan = G_SQ_ALU_WORD1_DST_CHAN(word1);
-- 
1.7.11.7



More information about the mesa-dev mailing list