xref: /aosp_15_r20/external/mesa3d/src/nouveau/vulkan/nvk_format.h (revision 6104692788411f58d303aa86923a9ff6ecaded22)
1 /*
2  * Copyright © 2022 Collabora Ltd. and Red Hat Inc.
3  * SPDX-License-Identifier: MIT
4  */
5 #ifndef NVK_FORMAT_H
6 #define NVK_FORMAT_H 1
7 
8 #include "nvk_private.h"
9 
10 struct nvk_physical_device;
11 
12 struct nvk_va_format {
13    uint8_t bit_widths;
14    uint8_t swap_rb:1;
15    uint8_t type:7;
16 };
17 
18 const struct nvk_va_format *
19 nvk_get_va_format(const struct nvk_physical_device *pdev, VkFormat format);
20 
21 #endif
22