anv: Use ASSERTED for results that are only used in asserts.

This gets rid of unused variable warnings for these results.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9634>
This commit is contained in:
Timur Kristóf
2021-03-16 21:25:16 +01:00
committed by Marge Bot
parent d7a94cae18
commit d70e017c17
2 changed files with 4 additions and 4 deletions

View File

@@ -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++) {