[Mesa-dev] [PATCH 01/18] i965: Fix assertion failures in unused brw_reg setup by deleting it.

Eric Anholt eric at anholt.net
Tue May 24 16:00:07 PDT 2011


I was using undefined values to create an unused value.  Go me.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=37366
---
 src/mesa/drivers/dri/i965/brw_fs.cpp |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 6d545af..a4adb17 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);
-- 
1.7.5.1



More information about the mesa-dev mailing list