Mesa (master): tgsi: Fix assert.

Vinson Lee vlee at kemper.freedesktop.org
Mon Jan 4 19:26:01 UTC 2010


Module: Mesa
Branch: master
Commit: ad80009c8845f446d64a0a43f39b5a797db2245b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ad80009c8845f446d64a0a43f39b5a797db2245b

Author: Vinson Lee <vlee at vmware.com>
Date:   Mon Jan  4 11:25:38 2010 -0800

tgsi: Fix assert.

---

 src/gallium/auxiliary/tgsi/tgsi_exec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/auxiliary/tgsi/tgsi_exec.c b/src/gallium/auxiliary/tgsi/tgsi_exec.c
index ba89f2f..517ae67 100644
--- a/src/gallium/auxiliary/tgsi/tgsi_exec.c
+++ b/src/gallium/auxiliary/tgsi/tgsi_exec.c
@@ -1955,7 +1955,7 @@ exec_declaration(struct tgsi_exec_machine *mach,
          if (decl->Semantic.Name == TGSI_SEMANTIC_POSITION) {
             assert(decl->Semantic.Index == 0);
             assert(first == last);
-            assert(mask = TGSI_WRITEMASK_XYZW);
+            assert(mask == TGSI_WRITEMASK_XYZW);
 
             mach->Inputs[first] = mach->QuadPos;
          } else if (decl->Semantic.Name == TGSI_SEMANTIC_FACE) {




More information about the mesa-commit mailing list