Mesa (mesa_7_7_branch): tgsi: Report an error when a destination has an empty writemask.
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Mon Feb 22 19:38:21 UTC 2010
Module: Mesa
Branch: mesa_7_7_branch
Commit: 9bef69782d90c21dc014aa85fa353de80e6932ed
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9bef69782d90c21dc014aa85fa353de80e6932ed
Author: José Fonseca <jfonseca at vmware.com>
Date: Mon Feb 22 17:57:59 2010 +0000
tgsi: Report an error when a destination has an empty writemask.
---
src/gallium/auxiliary/tgsi/tgsi_sanity.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/gallium/auxiliary/tgsi/tgsi_sanity.c b/src/gallium/auxiliary/tgsi/tgsi_sanity.c
index 36e27ea..a145725 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_sanity.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_sanity.c
@@ -216,6 +216,9 @@ iter_instruction(
inst->FullDstRegisters[i].DstRegister.Index,
"destination",
FALSE );
+ if (!inst->FullDstRegisters[i].DstRegister.WriteMask) {
+ report_error(ctx, "Destination register has empty writemask");
+ }
}
for (i = 0; i < inst->Instruction.NumSrcRegs; i++) {
check_register_usage(
More information about the mesa-commit
mailing list