From bdfb1885b891b59b7159be5554a8061cdf6e3800 Mon Sep 17 00:00:00 2001 From: "Thomas H.P. Andersen" Date: Sun, 26 Dec 2021 01:07:47 +0100 Subject: [PATCH] anv: drop a set but unused variable Fixes a warning with clang Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/vulkan/anv_descriptor_set.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/intel/vulkan/anv_descriptor_set.c b/src/intel/vulkan/anv_descriptor_set.c index ceeaf097c97..2b5a1d5d4ff 100644 --- a/src/intel/vulkan/anv_descriptor_set.c +++ b/src/intel/vulkan/anv_descriptor_set.c @@ -1199,7 +1199,6 @@ anv_descriptor_set_create(struct anv_device *device, sizeof(struct anv_descriptor) * set->descriptor_count); /* Go through and fill out immutable samplers if we have any */ - struct anv_descriptor *desc = set->descriptors; for (uint32_t b = 0; b < layout->binding_count; b++) { if (layout->binding[b].immutable_samplers) { for (uint32_t i = 0; i < layout->binding[b].array_size; i++) { @@ -1218,7 +1217,6 @@ anv_descriptor_set_create(struct anv_device *device, b, i); } } - desc += layout->binding[b].array_size; } /* Allocate surface state for the buffer views. */