summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/genX_cmd_buffer.c
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2017-08-25 20:40:01 -0700
committerMatt Turner <[email protected]>2017-08-29 15:20:57 -0700
commitcdbaa8a12feff2286b61cecf0b2e5b3feb8d902d (patch)
treee6051f9e3217c862365202ceabc7241b55e4040e /src/intel/vulkan/genX_cmd_buffer.c
parent5d4afef459629d62b5cce4af30ef021fa20620bb (diff)
anv: Mark functions used conditionally as UNUSED
The functions we're marking as UNUSED in genX_pipeline.c are used only when compiling for particular generations. Reviewed-by: Emil Velikov <[email protected]> Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/intel/vulkan/genX_cmd_buffer.c')
-rw-r--r--src/intel/vulkan/genX_cmd_buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c
index c5735b27e02..db40b45c29a 100644
--- a/src/intel/vulkan/genX_cmd_buffer.c
+++ b/src/intel/vulkan/genX_cmd_buffer.c
@@ -629,7 +629,7 @@ transition_color_buffer(struct anv_cmd_buffer *cmd_buffer,
/* Ensure the subresource range is valid. */
uint64_t last_level_num = base_level + level_count;
const uint32_t max_depth = anv_minify(image->extent.depth, base_level);
- const uint32_t image_layers = MAX2(image->array_size, max_depth);
+ UNUSED const uint32_t image_layers = MAX2(image->array_size, max_depth);
assert((uint64_t)base_layer + layer_count <= image_layers);
assert(last_level_num <= image->levels);
/* The spec disallows these final layouts. */