Debian Codegraph @

src/asahi/vulkan/hk_image_view.h

raw
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 "agx_pack.h"
11 #include "hk_private.h"
12 #include "vk_image.h"
13
14 struct hk_device;
15
16 #define HK_MAX_PLANES 3
17 #define HK_MAX_IMAGE_DESCS (10 * HK_MAX_PLANES)
18
19 struct hk_image_view {
20 struct vk_image_view vk;
21
22 uint8_t plane_count;
23 struct {
24 uint8_t image_plane;
25
26 struct agx_texture_packed ia, sampled, ro_storage, background,
27 layered_background, emrt_texture;
28
29 struct agx_pbe_packed storage, eot, layered_eot, emrt_pbe;
30 } planes[3];
31 };
32
33 VK_DEFINE_NONDISP_HANDLE_CASTS(hk_image_view, vk.base, VkImageView,
34 VK_OBJECT_TYPE_IMAGE_VIEW)