From: Matt Turner Date: Sun, 15 Jun 2014 05:52:35 +0000 (-0700) Subject: i965: Silence warning about unused brw in release builds. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f3aecefa9930ce7dbdabdeefee0bd183172b586f;p=mesa.git i965: Silence warning about unused brw in release builds. Reviewed-by: Tapani Pälli Reviewed-by: Ian Romanick --- 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);