From 28e80aa0b85aac3ed3d34ee13b6412be4d9d5773 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Mon, 22 Feb 2010 21:47:07 +0000 Subject: tgsi: Report an error when a destination has an empty writemask. --- src/gallium/auxiliary/tgsi/tgsi_sanity.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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]); -- cgit v1.2.3