diff options
author | Lionel Landwerlin <[email protected]> | 2018-03-15 16:14:34 +0000 |
---|---|---|
committer | Lionel Landwerlin <[email protected]> | 2018-03-15 18:55:42 +0000 |
commit | 0f544a3c51a9dd0e229cc953a2ddb87c14c6d51b (patch) | |
tree | a89dc748f5628751e0fe4c6c7209cd193dbe537e | |
parent | 2a7027f79a8ce09d315606c228d2eb393938d2fd (diff) |
anv: silence unused function warning on gen11
[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 <[email protected]>
Reviewed-by: Rafael Antognolli <[email protected]>
-rw-r--r-- | src/intel/blorp/blorp_genX_exec.h | 2 | ||||
-rw-r--r-- | src/intel/vulkan/genX_blorp_exec.c | 2 |
2 files changed, 3 insertions, 1 deletions
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, |