tgsi: Report an error when a destination has an empty writemask.
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 22 Feb 2010 21:47:07 +0000 (21:47 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 22 Feb 2010 21:47:07 +0000 (21:47 +0000)
src/gallium/auxiliary/tgsi/tgsi_sanity.c

index 91e1b27da12a5d040b24a3df3e46f1ff00ddf62f..371f690b2959bc58c0b8957b1b57162265ff483f 100644 (file)
@@ -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]);