diff options
author | José Fonseca <[email protected]> | 2010-02-22 21:47:07 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2010-02-22 21:47:07 +0000 |
commit | 28e80aa0b85aac3ed3d34ee13b6412be4d9d5773 (patch) | |
tree | db551bd52206393c8492e8876f2607ea03045667 /src/gallium/auxiliary/tgsi/tgsi_sanity.c | |
parent | d1a022537195dc9afca7b487af70b188fbcfcd99 (diff) |
tgsi: Report an error when a destination has an empty writemask.
Diffstat (limited to 'src/gallium/auxiliary/tgsi/tgsi_sanity.c')
-rw-r--r-- | 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 91e1b27da12..371f690b295 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]); |