summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/genX_cmd_buffer.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2019-02-14 14:37:51 -0600
committerJason Ekstrand <[email protected]>2019-02-14 16:04:45 -0600
commit9b202239ba280b27d2a33a33eba666de12c29a6a (patch)
tree7f58fee037062b5c41b0f5e8d132ce237cf0495e /src/intel/vulkan/genX_cmd_buffer.c
parentcd60c995a6d26b5f1952f21482177f36e7ad5630 (diff)
anv: Silence some compiler warnings in release builds
Reviewed-by: Caio Marcelo de Oliveira Filho <[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 d980ec428d0..c5d25afd10e 100644
--- a/src/intel/vulkan/genX_cmd_buffer.c
+++ b/src/intel/vulkan/genX_cmd_buffer.c
@@ -947,7 +947,7 @@ transition_color_buffer(struct anv_cmd_buffer *cmd_buffer,
assert(level_count != VK_REMAINING_MIP_LEVELS &&
layer_count != VK_REMAINING_ARRAY_LAYERS);
/* Ensure the subresource range is valid. */
- uint64_t last_level_num = base_level + level_count;
+ UNUSED uint64_t last_level_num = base_level + level_count;
const uint32_t max_depth = anv_minify(image->extent.depth, base_level);
UNUSED const uint32_t image_layers = MAX2(image->array_size, max_depth);
assert((uint64_t)base_layer + layer_count <= image_layers);