From: Kenneth Graunke Date: Fri, 26 Apr 2019 00:33:36 +0000 (-0700) Subject: iris: Silence unused function warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=529ace788762e91165f11942ea39305116b64c7a;p=mesa.git iris: Silence unused function warning --- diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index 6802cb22d11..04766716bc0 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -653,7 +653,7 @@ iris_emit_default_l3_config(struct iris_batch *batch, iris_emit_l3_config(batch, cfg, has_slm, wants_dc_cache); } -#if GEN_GEN >= 9 +#if GEN_GEN == 9 || GEN_GEN == 10 static void iris_enable_obj_preemption(struct iris_batch *batch, bool enable) {