Mesa (main): anv/android: Drop unused device variables

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Aug 12 00:22:58 UTC 2021


Module: Mesa
Branch: main
Commit: f3aabe068c45883af598daf3018be4d7754a7af7
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f3aabe068c45883af598daf3018be4d7754a7af7

Author: Jason Ekstrand <jason at jlekstrand.net>
Date:   Tue Aug 10 20:46:31 2021 -0500

anv/android: Drop unused device variables

Reviewed-by: Tapani Pälli <tapani.palli at intel.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg at google.com>
Reviewed-by: Eric Engestrom <eric at engestrom.ch>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12308>

---

 src/intel/vulkan/anv_android.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/intel/vulkan/anv_android.c b/src/intel/vulkan/anv_android.c
index 2f337e69e62..05925b015cc 100644
--- a/src/intel/vulkan/anv_android.c
+++ b/src/intel/vulkan/anv_android.c
@@ -392,8 +392,6 @@ anv_create_ahw_memory(VkDevice device_h,
                       const VkMemoryAllocateInfo *pAllocateInfo)
 {
 #if ANDROID_API_LEVEL >= 26
-   ANV_FROM_HANDLE(anv_device, dev, device_h);
-
    const VkMemoryDedicatedAllocateInfo *dedicated_info =
       vk_find_struct_const(pAllocateInfo->pNext,
                            MEMORY_DEDICATED_ALLOCATE_INFO);
@@ -754,7 +752,6 @@ anv_AcquireImageANDROID(
       VkSemaphore         semaphore_h,
       VkFence             fence_h)
 {
-   ANV_FROM_HANDLE(anv_device, device, device_h);
    VkResult result = VK_SUCCESS;
 
    /* From https://source.android.com/devices/graphics/implement-vulkan :



More information about the mesa-commit mailing list