Mesa (master): r600g: add error print for no literals for r700s as well

Dave Airlie airlied at kemper.freedesktop.org
Mon Sep 6 00:39:15 UTC 2010


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

Author: Dave Airlie <airlied at redhat.com>
Date:   Mon Sep  6 10:38:29 2010 +1000

r600g: add error print for no literals for r700s as well

---

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

diff --git a/src/gallium/drivers/r600/r700_asm.c b/src/gallium/drivers/r600/r700_asm.c
index cf08c88..aaeaff5 100644
--- a/src/gallium/drivers/r600/r700_asm.c
+++ b/src/gallium/drivers/r600/r700_asm.c
@@ -66,6 +66,9 @@ int r700_bc_alu_build(struct r600_bc *bc, struct r600_bc_alu *alu, unsigned id)
 		 	                S_SQ_ALU_WORD1_OP2_UPDATE_PRED(alu->predicate);
 	}
 	if (alu->last) {
+		if (alu->nliteral && !alu->literal_added) {
+			R600_ERR("Bug in ALU processing for instruction 0x%08x, literal not added correctly\n", alu->inst);
+		}
 		for (i = 0; i < alu->nliteral; i++) {
 			bc->bytecode[id++] = alu->value[i];
 		}




More information about the mesa-commit mailing list