mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-04 06:06:17 +00:00
a/vk: Remove unused vk_get_access_flags function
This commit is contained in:
parent
90f3adcdd1
commit
e79b23275b
|
@ -949,23 +949,6 @@ vk_create_view_swizzle(struct vk_bundle *vk,
|
||||||
return VK_SUCCESS;
|
return VK_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
VkAccessFlags
|
|
||||||
vk_get_access_flags(VkImageLayout layout)
|
|
||||||
{
|
|
||||||
switch (layout) {
|
|
||||||
case VK_IMAGE_LAYOUT_UNDEFINED: return 0;
|
|
||||||
case VK_IMAGE_LAYOUT_GENERAL: return VK_ACCESS_TRANSFER_WRITE_BIT | VK_ACCESS_TRANSFER_READ_BIT;
|
|
||||||
case VK_IMAGE_LAYOUT_PREINITIALIZED: return VK_ACCESS_HOST_WRITE_BIT;
|
|
||||||
case VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL: return VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT;
|
|
||||||
case VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL: return VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT;
|
|
||||||
case VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL: return VK_ACCESS_TRANSFER_READ_BIT;
|
|
||||||
case VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL: return VK_ACCESS_TRANSFER_WRITE_BIT;
|
|
||||||
case VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL: return VK_ACCESS_SHADER_READ_BIT;
|
|
||||||
default: U_LOG_E("Unhandled access mask case for layout %d.", layout);
|
|
||||||
}
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
|
|
|
@ -840,9 +840,6 @@ vk_create_view_swizzle(struct vk_bundle *vk,
|
||||||
VkComponentMapping components,
|
VkComponentMapping components,
|
||||||
VkImageView *out_view);
|
VkImageView *out_view);
|
||||||
|
|
||||||
VkAccessFlags
|
|
||||||
vk_get_access_flags(VkImageLayout layout);
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue