From: José Fonseca Date: Mon, 22 Feb 2010 21:47:07 +0000 (+0000) Subject: tgsi: Report an error when a destination has an empty writemask. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=28e80aa0b85aac3ed3d34ee13b6412be4d9d5773;p=mesa.git tgsi: Report an error when a destination has an empty writemask. --- 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]);