From: Eric Engestrom Date: Sat, 22 Jun 2019 17:11:04 +0000 (+0100) Subject: i965: replace MAYBE_UNUSED with GEN condition X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7a3fb146095b6215e365011c25688ca354159b03;p=mesa.git i965: replace MAYBE_UNUSED with GEN condition Signed-off-by: Eric Engestrom Reviewed-by: Matt Turner --- diff --git a/src/mesa/drivers/dri/i965/genX_state_upload.c b/src/mesa/drivers/dri/i965/genX_state_upload.c index 7b64fd9badc..dd0f66d0880 100644 --- a/src/mesa/drivers/dri/i965/genX_state_upload.c +++ b/src/mesa/drivers/dri/i965/genX_state_upload.c @@ -84,7 +84,8 @@ emit_lrm(struct brw_context *brw, uint32_t reg, struct brw_address addr) } #endif -MAYBE_UNUSED static void +#if GEN_GEN <= 7 +static void emit_lri(struct brw_context *brw, uint32_t reg, uint32_t imm) { brw_batch_emit(brw, GENX(MI_LOAD_REGISTER_IMM), lri) {