From: Jason Ekstrand Date: Tue, 21 Jan 2020 21:58:32 +0000 (-0600) Subject: anv: Delete a redundant calculation X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=479311603698a297fb8a515525b9252152d387a9;p=mesa.git anv: Delete a redundant calculation We compute the same thing with the same variable name at the top of the function. Reviewed-by: Lionel Landwerlin Reviewed-by: Jordan Justen Part-of: --- diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 1bfc14ccd83..8ef415e3eea 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -3435,9 +3435,6 @@ VkResult anv_AllocateMemory( if (result != VK_SUCCESS) goto fail; - VkDeviceSize aligned_alloc_size = - align_u64(pAllocateInfo->allocationSize, 4096); - /* For security purposes, we reject importing the bo if it's smaller * than the requested allocation size. This prevents a malicious client * from passing a buffer to a trusted client, lying about the size, and