| 1 |
/* |
| 2 |
* Copyright 2024 Valve Corporation |
| 3 |
* Copyright 2024 Alyssa Rosenzweig |
| 4 |
* Copyright 2022-2023 Collabora Ltd. and Red Hat Inc. |
| 5 |
* SPDX-License-Identifier: MIT |
| 6 |
*/ |
| 7 |
|
| 8 |
#pragma once |
| 9 |
|
| 10 |
#include "hk_private.h" |
| 11 |
|
| 12 |
#include "vk_device_memory.h" |
| 13 |
|
| 14 |
#include "util/list.h" |
| 15 |
|
| 16 |
struct hk_device; |
| 17 |
struct hk_image_plane; |
| 18 |
|
| 19 |
struct hk_device_memory { |
| 20 |
struct vk_device_memory vk; |
| 21 |
|
| 22 |
struct agx_bo *bo; |
| 23 |
|
| 24 |
void *map; |
| 25 |
}; |
| 26 |
|
| 27 |
VK_DEFINE_NONDISP_HANDLE_CASTS(hk_device_memory, vk.base, VkDeviceMemory, |
| 28 |
VK_OBJECT_TYPE_DEVICE_MEMORY) |
| 29 |
|
| 30 |
extern const VkExternalMemoryProperties hk_opaque_fd_mem_props; |
| 31 |
extern const VkExternalMemoryProperties hk_dma_buf_mem_props; |