mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 21:50:12 +01:00
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 <lionel.g.landwerlin@intel.com> Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
This commit is contained in:
parent
2a7027f79a
commit
0f544a3c51
2 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue