From: Caio Marcelo de Oliveira Filho Date: Fri, 23 Aug 2019 15:12:37 +0000 (-0700) Subject: iris: Guard GEN9-only function in Iris state to avoid warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=63f0259aeb65ed462db11b3d5bf2b598c7da0324;p=mesa.git iris: Guard GEN9-only function in Iris state to avoid warning Acked-by: Eric Engestrom Reviewed-by: Jason Ekstrand --- diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index 592718dd604..19e795355c0 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -4003,6 +4003,7 @@ surf_state_offset_for_aux(struct iris_resource *res, util_bitcount(aux_modes & ((1 << aux_usage) - 1)); } +#if GEN_GEN == 9 static void surf_state_update_clear_value(struct iris_batch *batch, struct iris_resource *res, @@ -4043,6 +4044,7 @@ surf_state_update_clear_value(struct iris_batch *batch, PIPE_CONTROL_FLUSH_ENABLE | PIPE_CONTROL_STATE_CACHE_INVALIDATE); } +#endif static void update_clear_value(struct iris_context *ice,