Mesa (mesa_7_6_branch): i915: Fix assert.

Vinson Lee vlee at kemper.freedesktop.org
Sat Dec 26 15:56:03 PST 2009


Module: Mesa
Branch: mesa_7_6_branch
Commit: 309c156bae59124be17137d0f559d2c054231f7c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=309c156bae59124be17137d0f559d2c054231f7c

Author: Vinson Lee <vlee at vmware.com>
Date:   Sat Dec 26 15:55:38 2009 -0800

i915: Fix assert.

---

 src/mesa/drivers/dri/i915/i915_program.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/i915/i915_program.c b/src/mesa/drivers/dri/i915/i915_program.c
index e87700f..ce2c975 100644
--- a/src/mesa/drivers/dri/i915/i915_program.c
+++ b/src/mesa/drivers/dri/i915/i915_program.c
@@ -239,7 +239,7 @@ GLuint i915_emit_texld( struct i915_fragment_program *p,
    }
    else {
       assert(GET_UREG_TYPE(dest) != REG_TYPE_CONST);
-      assert(dest = UREG(GET_UREG_TYPE(dest), GET_UREG_NR(dest)));
+      assert(dest == UREG(GET_UREG_TYPE(dest), GET_UREG_NR(dest)));
       /* Can't use unsaved temps for coords, as the phase boundary would result
        * in the contents becoming undefined.
        */



More information about the mesa-commit mailing list