Mesa (master): anv: Delete a redundant calculation
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sat Jan 25 02:34:02 UTC 2020
Module: Mesa
Branch: master
Commit: 479311603698a297fb8a515525b9252152d387a9
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=479311603698a297fb8a515525b9252152d387a9
Author: Jason Ekstrand <jason at jlekstrand.net>
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 <lionel.g.landwerlin at intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen at intel.com>
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
More information about the mesa-commit
mailing list