From: Eric Engestrom Date: Sat, 22 Jun 2019 17:11:44 +0000 (+0100) Subject: i965: drop unused MAYBE_UNUSED function X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=644cca65d386ad71296962a539fc36bc146bca38;p=mesa.git i965: drop unused MAYBE_UNUSED function Added in 1b85c605a60a80975460 but never used. Cc: Jordan Justen 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 dd0f66d0880..502613a9139 100644 --- a/src/mesa/drivers/dri/i965/genX_state_upload.c +++ b/src/mesa/drivers/dri/i965/genX_state_upload.c @@ -84,7 +84,7 @@ emit_lrm(struct brw_context *brw, uint32_t reg, struct brw_address addr) } #endif -#if GEN_GEN <= 7 +#if GEN_GEN == 7 static void emit_lri(struct brw_context *brw, uint32_t reg, uint32_t imm) { @@ -93,16 +93,6 @@ emit_lri(struct brw_context *brw, uint32_t reg, uint32_t imm) lri.DataDWord = imm; } } - -#if GEN_IS_HASWELL || GEN_GEN >= 8 -MAYBE_UNUSED static void -emit_lrr(struct brw_context *brw, uint32_t dst, uint32_t src) -{ - brw_batch_emit(brw, GENX(MI_LOAD_REGISTER_REG), lrr) { - lrr.SourceRegisterAddress = src; - lrr.DestinationRegisterAddress = dst; - } -} #endif /**