From f3aecefa9930ce7dbdabdeefee0bd183172b586f Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Sat, 14 Jun 2014 22:52:35 -0700 Subject: [PATCH] i965: Silence warning about unused brw in release builds. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Tapani Pälli Reviewed-by: Ian Romanick --- src/mesa/drivers/dri/i965/brw_eu_emit.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_eu_emit.c b/src/mesa/drivers/dri/i965/brw_eu_emit.c index 5859e2bd3a7..c566aec39c4 100644 --- a/src/mesa/drivers/dri/i965/brw_eu_emit.c +++ b/src/mesa/drivers/dri/i965/brw_eu_emit.c @@ -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); -- 2.30.2