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