From 0f544a3c51a9dd0e229cc953a2ddb87c14c6d51b Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Thu, 15 Mar 2018 16:14:34 +0000 Subject: [PATCH] anv: silence unused function warning on gen11 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit [84/227] Compiling C object 'src/intel/vulkan/libanv_gen110@sta/genX_blorp_exec.c.o'. ../src/intel/vulkan/genX_blorp_exec.c:68:1: warning: ‘blorp_get_surface_base_address’ defined but not used [-Wunused-function] blorp_get_surface_base_address(struct blorp_batch *batch) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Lionel Landwerlin Reviewed-by: Rafael Antognolli --- src/intel/blorp/blorp_genX_exec.h | 2 +- src/intel/vulkan/genX_blorp_exec.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/intel/blorp/blorp_genX_exec.h b/src/intel/blorp/blorp_genX_exec.h index 1348659233c..b612709035a 100644 --- a/src/intel/blorp/blorp_genX_exec.h +++ b/src/intel/blorp/blorp_genX_exec.h @@ -78,7 +78,7 @@ static void blorp_surface_reloc(struct blorp_batch *batch, uint32_t ss_offset, struct blorp_address address, uint32_t delta); -#if GEN_GEN >= 7 +#if GEN_GEN >= 7 && GEN_GEN <= 10 static struct blorp_address blorp_get_surface_base_address(struct blorp_batch *batch); #endif diff --git a/src/intel/vulkan/genX_blorp_exec.c b/src/intel/vulkan/genX_blorp_exec.c index ac6e7366640..1ecec199846 100644 --- a/src/intel/vulkan/genX_blorp_exec.c +++ b/src/intel/vulkan/genX_blorp_exec.c @@ -64,6 +64,7 @@ blorp_surface_reloc(struct blorp_batch *batch, uint32_t ss_offset, anv_batch_set_error(&cmd_buffer->batch, result); } +#if GEN_GEN >= 7 && GEN_GEN <= 10 static struct blorp_address blorp_get_surface_base_address(struct blorp_batch *batch) { @@ -73,6 +74,7 @@ blorp_get_surface_base_address(struct blorp_batch *batch) .offset = 0, }; } +#endif static void * blorp_alloc_dynamic_state(struct blorp_batch *batch, -- 2.30.2