Skip to content
Snippets Groups Projects
Commit 61790c60 authored by Chia-I Wu's avatar Chia-I Wu Committed by Dylan Baker
Browse files

turnip: add tu_android.h

(cherry picked from commit e99703b5)

Part-of: <mesa/mesa!17877>
parent 6094318c
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,7 @@
* DEALINGS IN THE SOFTWARE.
*/
#include "tu_android.h"
#include "tu_private.h"
#include <hardware/gralloc.h>
......
/*
* Copyright © 2016 Red Hat.
* Copyright © 2016 Bas Nieuwenhuizen
* SPDX-License-Identifier: MIT
*
* based in part on anv driver which is:
* Copyright © 2015 Intel Corporation
*/
#ifndef TU_ANDROID_H
#define TU_ANDROID_H
#include "tu_common.h"
VkResult
tu_gralloc_info(struct tu_device *device,
const VkNativeBufferANDROID *gralloc_info,
int *dma_buf,
uint64_t *modifier);
VkResult
tu_import_memory_from_gralloc_handle(VkDevice device_h,
int dma_buf,
const VkAllocationCallbacks *alloc,
VkImage image_h);
#endif /* TU_ANDROID_H */
......@@ -29,6 +29,7 @@
#define TU_PRIVATE_H
#include "tu_common.h"
#include "tu_android.h"
#include "tu_autotune.h"
#include "tu_clear_blit.h"
#include "tu_cmd_buffer.h"
......@@ -97,16 +98,4 @@ tu_framebuffer_tiling_config(struct tu_framebuffer *fb,
const struct tu_device *device,
const struct tu_render_pass *pass);
VkResult
tu_gralloc_info(struct tu_device *device,
const VkNativeBufferANDROID *gralloc_info,
int *dma_buf,
uint64_t *modifier);
VkResult
tu_import_memory_from_gralloc_handle(VkDevice device_h,
int dma_buf,
const VkAllocationCallbacks *alloc,
VkImage image_h);
#endif /* TU_PRIVATE_H */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment