Module: Mesa
Branch: gallium-0.1
Commit: c27caf8a51e9f3f4897b16c10417d161ade8f30f
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=c27caf8a51e9f3f4897b16c10417d161ade8f30f

Author: José Fonseca <[email protected]>
Date:   Fri Aug 14 13:43:07 2009 +0100

tgsi: Output faulty opcode name when possible.

---

 src/gallium/auxiliary/tgsi/tgsi_sanity.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/auxiliary/tgsi/tgsi_sanity.c 
b/src/gallium/auxiliary/tgsi/tgsi_sanity.c
index 8f942ad..af185df 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_sanity.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_sanity.c
@@ -199,10 +199,10 @@ iter_instruction(
    }
 
    if (info->num_dst != inst->Instruction.NumDstRegs) {
-      report_error( ctx, "Invalid number of destination operands, should be 
%u", info->num_dst );
+      report_error( ctx, "%s: Invalid number of destination operands, should 
be %u", info->mnemonic, info->num_dst );
    }
    if (info->num_src != inst->Instruction.NumSrcRegs) {
-      report_error( ctx, "Invalid number of source operands, should be %u", 
info->num_src );
+      report_error( ctx, "%s: Invalid number of source operands, should be 
%u", info->mnemonic, info->num_src );
    }
 
    /* Check destination and source registers' validity.

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to