i965: Fix assertion failures in unused brw_reg setup by deleting it.
authorEric Anholt <eric@anholt.net>
Tue, 24 May 2011 19:36:50 +0000 (12:36 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 25 May 2011 18:16:36 +0000 (11:16 -0700)
I was using undefined values to create an unused value.  Go me.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=37366
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs.cpp

index 6d545afab64198d5dcd1c982f7c63da3e55994f6..a4adb17954396982dc9f8bc8f3ddda092ae855b5 100644 (file)
@@ -2743,7 +2743,6 @@ fs_visitor::generate_discard(fs_inst *inst)
       brw_pop_insn_state(p);
    } else {
       struct brw_reg g0 = retype(brw_vec1_grf(0, 0), BRW_REGISTER_TYPE_UW);
-      struct brw_reg mask = brw_uw1_reg(mask.file, mask.nr, 0);
 
       brw_push_insn_state(p);
       brw_set_mask_control(p, BRW_MASK_DISABLE);