1 /* 2 * Copyright © 2016 Red Hat. 3 * Copyright © 2016 Bas Nieuwenhuizen 4 * SPDX-License-Identifier: MIT 5 * 6 * based in part on anv driver which is: 7 * Copyright © 2015 Intel Corporation 8 */ 9 10 #ifndef TU_ANDROID_H 11 #define TU_ANDROID_H 12 13 #include "tu_common.h" 14 15 VkResult 16 tu_gralloc_info(struct tu_device *device, 17 const VkNativeBufferANDROID *gralloc_info, 18 int *dma_buf, 19 uint64_t *modifier); 20 21 VkResult 22 tu_import_memory_from_gralloc_handle(VkDevice device_h, 23 int dma_buf, 24 const VkAllocationCallbacks *alloc, 25 VkImage image_h); 26 27 #endif /* TU_ANDROID_H */ 28