From d70e017c1777c0c236c2f0ab397bf6f696470bd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timur=20Krist=C3=B3f?= Date: Tue, 16 Mar 2021 21:25:16 +0100 Subject: [PATCH] anv: Use ASSERTED for results that are only used in asserts. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This gets rid of unused variable warnings for these results. Signed-off-by: Timur Kristóf Reviewed-by: Jason Ekstrand Part-of: --- src/intel/vulkan/anv_measure.c | 4 ++-- src/intel/vulkan/anv_queue.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/intel/vulkan/anv_measure.c b/src/intel/vulkan/anv_measure.c index 28e3b963eff..680976d9a45 100644 --- a/src/intel/vulkan/anv_measure.c +++ b/src/intel/vulkan/anv_measure.c @@ -113,7 +113,7 @@ anv_measure_init(struct anv_cmd_buffer *cmd_buffer) VK_SYSTEM_ALLOCATION_SCOPE_OBJECT); memset(measure, 0, batch_bytes); - VkResult result = + ASSERTED VkResult result = anv_device_alloc_bo(device, "measure data", config->batch_size * sizeof(uint64_t), ANV_BO_ALLOC_MAPPED, @@ -326,7 +326,7 @@ anv_measure_reset(struct anv_cmd_buffer *cmd_buffer) list_inithead(&measure->base.link); anv_device_release_bo(device, measure->bo); - VkResult result = + ASSERTED VkResult result = anv_device_alloc_bo(device, "measure data", config->batch_size * sizeof(uint64_t), ANV_BO_ALLOC_MAPPED, diff --git a/src/intel/vulkan/anv_queue.c b/src/intel/vulkan/anv_queue.c index e0688674274..7491a717e5d 100644 --- a/src/intel/vulkan/anv_queue.c +++ b/src/intel/vulkan/anv_queue.c @@ -938,7 +938,7 @@ anv_queue_submit_add_in_semaphores(struct anv_queue_submit *submit, const uint64_t *in_values, uint32_t num_in_semaphores) { - struct anv_physical_device *pdevice = device->physical; + ASSERTED struct anv_physical_device *pdevice = device->physical; VkResult result; for (uint32_t i = 0; i < num_in_semaphores; i++) { @@ -1035,7 +1035,7 @@ anv_queue_submit_add_out_semaphores(struct anv_queue_submit *submit, const uint64_t *out_values, uint32_t num_out_semaphores) { - struct anv_physical_device *pdevice = device->physical; + ASSERTED struct anv_physical_device *pdevice = device->physical; VkResult result; for (uint32_t i = 0; i < num_out_semaphores; i++) {