1 /* 2 * Copyright © 2021 Collabora Ltd. 3 * SPDX-License-Identifier: MIT 4 */ 5 6 #ifndef PANVK_IMAGE_H 7 #define PANVK_IMAGE_H 8 9 #include "vk_image.h" 10 11 #include "pan_texture.h" 12 13 struct panvk_image { 14 struct vk_image vk; 15 16 /* TODO: See if we can rework the synchronization logic so we don't need to 17 * pass BOs around. 18 */ 19 struct pan_kmod_bo *bo; 20 21 struct pan_image pimage; 22 }; 23 24 VK_DEFINE_NONDISP_HANDLE_CASTS(panvk_image, vk.base, VkImage, 25 VK_OBJECT_TYPE_IMAGE) 26 27 #endif 28