d3d12: add more formats to supported conversions
authorTiago Koji Castro Shibata <tiago.shibata@gmail.com>
Fri, 8 Jul 2022 20:37:41 +0000 (13:37 -0700)
committerMarge Bot <emma+marge@anholt.net>
Fri, 8 Jul 2022 22:35:17 +0000 (22:35 +0000)
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4761
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17435>

src/gallium/drivers/d3d12/d3d12_format.c

index 6efbc6c..1334b7c 100644 (file)
@@ -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;
    }