i965: Silence warning about unused brw in release builds.
authorMatt Turner <mattst88@gmail.com>
Sun, 15 Jun 2014 05:52:35 +0000 (22:52 -0700)
committerMatt Turner <mattst88@gmail.com>
Tue, 17 Jun 2014 17:18:34 +0000 (10:18 -0700)
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/brw_eu_emit.c

index 5859e2b..c566aec 100644 (file)
@@ -2683,8 +2683,7 @@ void brw_shader_time_add(struct brw_compile *p,
                          struct brw_reg payload,
                          uint32_t surf_index)
 {
-   struct brw_context *brw = p->brw;
-   assert(brw->gen >= 7);
+   assert(p->brw->gen >= 7);
 
    brw_push_insn_state(p);
    brw_set_default_access_mode(p, BRW_ALIGN_1);