iris: Guard GEN9-only function in Iris state to avoid warning

Acked-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
Caio Marcelo de Oliveira Filho 2019-08-23 08:12:37 -07:00
parent 412ed1338f
commit 63f0259aeb
1 changed files with 2 additions and 0 deletions

View 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,