From 0d8621771504fdda1996769897896f51b4231c4b Mon Sep 17 00:00:00 2001 From: DH Date: Mon, 17 Jul 2023 23:07:10 +0300 Subject: [PATCH] [amdgpu] Support surface format R8 unorm/snorm --- hw/amdgpu/device/src/device.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hw/amdgpu/device/src/device.cpp b/hw/amdgpu/device/src/device.cpp index ec83055ec..3f452e746 100644 --- a/hw/amdgpu/device/src/device.cpp +++ b/hw/amdgpu/device/src/device.cpp @@ -1543,6 +1543,10 @@ static VkFormat surfaceFormatToVkFormat(SurfaceFormat surface, switch (surface) { case kSurfaceFormat8: { switch (channel) { + case kTextureChannelTypeUNorm: + return VK_FORMAT_R8_UNORM; + case kTextureChannelTypeSNorm: + return VK_FORMAT_R8_SNORM; case kTextureChannelTypeUInt: return VK_FORMAT_R8_UINT; case kTextureChannelTypeSInt: