From e64fd5e4754adfb32ffaaddb847c096d36d077b9 Mon Sep 17 00:00:00 2001 From: Tiago Koji Castro Shibata Date: Fri, 8 Jul 2022 13:37:41 -0700 Subject: [PATCH] d3d12: add more formats to supported conversions Reviewed-by: Jesse Natalie Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4761 Part-of: --- src/gallium/drivers/d3d12/d3d12_format.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/gallium/drivers/d3d12/d3d12_format.c b/src/gallium/drivers/d3d12/d3d12_format.c index 6efbc6c..1334b7c 100644 --- a/src/gallium/drivers/d3d12/d3d12_format.c +++ b/src/gallium/drivers/d3d12/d3d12_format.c @@ -392,6 +392,15 @@ d3d12_emulated_vtx_format(enum pipe_format fmt) case PIPE_FORMAT_R16G16B16_UINT: return PIPE_FORMAT_R16G16B16A16_UINT; + case PIPE_FORMAT_R8G8B8A8_SSCALED: + return PIPE_FORMAT_R8G8B8A8_SINT; + case PIPE_FORMAT_R8G8B8A8_USCALED: + return PIPE_FORMAT_R8G8B8A8_UINT; + case PIPE_FORMAT_R16G16B16A16_SSCALED: + return PIPE_FORMAT_R16G16B16A16_SINT; + case PIPE_FORMAT_R16G16B16A16_USCALED: + return PIPE_FORMAT_R16G16B16A16_UINT; + default: return fmt; } -- 2.7.4