[Mesa-dev] [PATCH 08/12] i965: Fix an unused variable warning in the release build.

Eric Anholt eric at anholt.net
Thu Apr 11 11:06:35 PDT 2013


It's used in an assert, but we have this as a member of the class anyway.
---
 src/mesa/drivers/dri/i965/brw_fs.cpp |    1 -
 1 file changed, 1 deletion(-)

diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 88aa695..c945617 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -2841,7 +2841,6 @@ fs_visitor::get_instruction_generating_reg(fs_inst *start,
 void
 fs_visitor::setup_payload_gen6()
 {
-   struct intel_context *intel = &brw->intel;
    bool uses_depth =
       (fp->Base.InputsRead & (1 << VARYING_SLOT_POS)) != 0;
    unsigned barycentric_interp_modes = c->prog_data.barycentric_interp_modes;
-- 
1.7.10.4



More information about the mesa-dev mailing list