mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
vk/image: Add tables for gen SurfaceType
Tables for mapping VkImageType and VkImageViewType to gen SurfaceType. Tables are unused.
This commit is contained in:
parent
1132080d5d
commit
cb30acaced
1 changed files with 13 additions and 0 deletions
|
|
@ -41,6 +41,19 @@ static const uint8_t anv_valign[] = {
|
|||
[16] = VALIGN16,
|
||||
};
|
||||
|
||||
static const uint8_t anv_surf_type_from_image_type[] = {
|
||||
[VK_IMAGE_TYPE_1D] = SURFTYPE_1D,
|
||||
[VK_IMAGE_TYPE_2D] = SURFTYPE_2D,
|
||||
[VK_IMAGE_TYPE_3D] = SURFTYPE_3D,
|
||||
};
|
||||
|
||||
static const uint8_t anv_surf_type_from_image_view_type[] = {
|
||||
[VK_IMAGE_VIEW_TYPE_1D] = SURFTYPE_1D,
|
||||
[VK_IMAGE_VIEW_TYPE_2D] = SURFTYPE_2D,
|
||||
[VK_IMAGE_VIEW_TYPE_3D] = SURFTYPE_3D,
|
||||
[VK_IMAGE_VIEW_TYPE_CUBE] = SURFTYPE_CUBE,
|
||||
};
|
||||
|
||||
static const struct anv_tile_info {
|
||||
uint32_t width;
|
||||
uint32_t height;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue