summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2014-06-14 22:52:35 -0700
committerMatt Turner <[email protected]>2014-06-17 10:18:34 -0700
commitf3aecefa9930ce7dbdabdeefee0bd183172b586f (patch)
treed81af4db02e10366cd6ca80f7ece6d02a1a3cf68 /src/mesa/drivers/dri
parent836f4299e870a7cff04c2f646a37533d0e68ccd7 (diff)
i965: Silence warning about unused brw in release builds.
Reviewed-by: Tapani Pälli <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/i965/brw_eu_emit.c3
1 files changed, 1 insertions, 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);