Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions host/vulkan/vk_format_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,8 @@ std::optional<VkFormat> ToVkFormat(GfxstreamFormat format) {
return VK_FORMAT_G10X6_B10X6R10X6_2PLANE_422_UNORM_3PACK16;
case GfxstreamFormat::R10G10B10A2_UNORM:
return VK_FORMAT_A2B10G10R10_UNORM_PACK32;
case GfxstreamFormat::R4G4B4A4_UNORM:
return VK_FORMAT_R4G4B4A4_UNORM_PACK16;
case GfxstreamFormat::R16_UNORM:
return VK_FORMAT_R16_UNORM;
case GfxstreamFormat::R16G16B16_FLOAT:
Expand Down Expand Up @@ -375,6 +377,8 @@ std::optional<GfxstreamFormat> ToGfxstreamFormat(VkFormat format) {
switch (format) {
case VK_FORMAT_B4G4R4A4_UNORM_PACK16:
return GfxstreamFormat::B4G4R4A4_UNORM;
case VK_FORMAT_R4G4B4A4_UNORM_PACK16:
return GfxstreamFormat::R4G4B4A4_UNORM;
case VK_FORMAT_B5G5R5A1_UNORM_PACK16:
return GfxstreamFormat::B5G5R5A1_UNORM;
case VK_FORMAT_B8G8R8A8_UNORM:
Expand Down
Loading