Module: Mesa Branch: master Commit: 479311603698a297fb8a515525b9252152d387a9 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=479311603698a297fb8a515525b9252152d387a9
Author: Jason Ekstrand <[email protected]> Date: Tue Jan 21 15:58:32 2020 -0600 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 <[email protected]> Reviewed-by: Jordan Justen <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3519> --- src/intel/vulkan/anv_device.c | 3 --- 1 file changed, 3 deletions(-) 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 _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
