From 9bef69782d90c21dc014aa85fa353de80e6932ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Fonseca?= Date: Mon, 22 Feb 2010 17:57:59 +0000 Subject: [PATCH] tgsi: Report an error when a destination has an empty writemask. --- src/gallium/auxiliary/tgsi/tgsi_sanity.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/auxiliary/tgsi/tgsi_sanity.c b/src/gallium/auxiliary/tgsi/tgsi_sanity.c index 36e27ea52f4..a14572597c5 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_sanity.c +++ b/src/gallium/auxiliary/tgsi/tgsi_sanity.c @@ -216,6 +216,9 @@ iter_instruction( inst->FullDstRegisters[i].DstRegister.Index, "destination", FALSE ); + if (!inst->FullDstRegisters[i].DstRegister.WriteMask) { + report_error(ctx, "Destination register has empty writemask"); + } } for (i = 0; i < inst->Instruction.NumSrcRegs; i++) { check_register_usage(