From: Eric Anholt Date: Tue, 24 May 2011 19:36:50 +0000 (-0700) Subject: i965: Fix assertion failures in unused brw_reg setup by deleting it. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fa42de5ad7ebbc0b81ce6ba0553742f0413690a7;p=mesa.git i965: Fix assertion failures in unused brw_reg setup by deleting it. 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 --- diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 6d545afab64..a4adb179543 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -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);