[Mesa-dev] [PATCH mesa] anv: drop unused local vars

Lionel Landwerlin lionel.g.landwerlin at intel.com
Thu Jul 26 09:12:03 UTC 2018


On 25/07/18 20:12, Eric Engestrom wrote:
> Signed-off-by: Eric Engestrom <eric.engestrom at intel.com>

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>

> ---
>   src/intel/vulkan/anv_descriptor_set.c | 6 ------
>   1 file changed, 6 deletions(-)
>
> diff --git a/src/intel/vulkan/anv_descriptor_set.c b/src/intel/vulkan/anv_descriptor_set.c
> index 8f7f1f3ba386de438887..66ed28292b01897fc1d1 100644
> --- a/src/intel/vulkan/anv_descriptor_set.c
> +++ b/src/intel/vulkan/anv_descriptor_set.c
> @@ -902,15 +902,9 @@ anv_descriptor_set_write_template(struct anv_descriptor_set *set,
>                                     const struct anv_descriptor_update_template *template,
>                                     const void *data)
>   {
> -   const struct anv_descriptor_set_layout *layout = set->layout;
> -
>      for (uint32_t i = 0; i < template->entry_count; i++) {
>         const struct anv_descriptor_template_entry *entry =
>            &template->entries[i];
> -      const struct anv_descriptor_set_binding_layout *bind_layout =
> -         &layout->binding[entry->binding];
> -      struct anv_descriptor *desc = &set->descriptors[bind_layout->descriptor_index];
> -      desc += entry->array_element;
>   
>         switch (entry->type) {
>         case VK_DESCRIPTOR_TYPE_SAMPLER:




More information about the mesa-dev mailing list