i965: Fix assertion in brw_alu3.
authorVinson Lee <vlee@freedesktop.org>
Wed, 7 Nov 2012 07:37:20 +0000 (23:37 -0800)
committerVinson Lee <vlee@freedesktop.org>
Thu, 8 Nov 2012 06:54:26 +0000 (22:54 -0800)
Fixes side effect in assertion defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_eu_emit.c

index 3d95b92623536a76f841d8d03f5b96cf03611c52..eada9d99e9618d56353edca655d79b41833b3281 100644 (file)
@@ -779,7 +779,7 @@ static struct brw_instruction *brw_alu3(struct brw_compile *p,
          dest.file == BRW_MESSAGE_REGISTER_FILE);
    assert(dest.nr < 128);
    assert(dest.address_mode == BRW_ADDRESS_DIRECT);
-   assert(dest.type = BRW_REGISTER_TYPE_F);
+   assert(dest.type == BRW_REGISTER_TYPE_F);
    insn->bits1.da3src.dest_reg_file = (dest.file == BRW_MESSAGE_REGISTER_FILE);
    insn->bits1.da3src.dest_reg_nr = dest.nr;
    insn->bits1.da3src.dest_subreg_nr = dest.subnr / 16;