Mesa (master): tgsi: Report an error when a destination has an empty writemask.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Mon Feb 22 21:51:09 UTC 2010


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

Author: José Fonseca <jfonseca at vmware.com>
Date:   Mon Feb 22 21:47:07 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 91e1b27..371f690 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_sanity.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_sanity.c
@@ -321,6 +321,9 @@ iter_instruction(
          reg,
          "destination",
          FALSE );
+      if (!inst->Dst[i].Register.WriteMask) {
+         report_error(ctx, "Destination register has empty writemask");
+      }
    }
    for (i = 0; i < inst->Instruction.NumSrcRegs; i++) {
       scan_register *reg = create_scan_register_src(&inst->Src[i]);




More information about the mesa-commit mailing list