i965: replace MAYBE_UNUSED with GEN condition
authorEric Engestrom <eric.engestrom@intel.com>
Sat, 22 Jun 2019 17:11:04 +0000 (18:11 +0100)
committerEric Engestrom <eric.engestrom@intel.com>
Wed, 31 Jul 2019 08:41:05 +0000 (09:41 +0100)
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/genX_state_upload.c

index 7b64fd9badc0449c43efc2c6ee374608f9505a8f..dd0f66d088043dcf1db02023c297ce5eb13d9501 100644 (file)
@@ -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) {