projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1a0225
)
tgsi: Report an error when a destination has an empty writemask.
author
José Fonseca
<jfonseca@vmware.com>
Mon, 22 Feb 2010 21:47:07 +0000
(21:47 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Mon, 22 Feb 2010 21:47:07 +0000
(21:47 +0000)
src/gallium/auxiliary/tgsi/tgsi_sanity.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/tgsi/tgsi_sanity.c
b/src/gallium/auxiliary/tgsi/tgsi_sanity.c
index 91e1b27da12a5d040b24a3df3e46f1ff00ddf62f..371f690b2959bc58c0b8957b1b57162265ff483f 100644
(file)
--- 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]);