iris: Guard GEN9-only function in Iris state to avoid warning
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Fri, 23 Aug 2019 15:12:37 +0000 (08:12 -0700)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Fri, 23 Aug 2019 20:25:27 +0000 (13:25 -0700)
Acked-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/gallium/drivers/iris/iris_state.c

index 592718dd6042aa8dad2133f13aa3b9a2314403a9..19e795355c0e9f02e4e0a0294778c264b46a3d1d 100644 (file)
@@ -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,