Mesa (main): util/vbuf: check 3-component 16bit int formats for translation
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Jul 6 16:56:57 UTC 2021
Module: Mesa
Branch: main
Commit: 4077768f29598f7e294640835a608c80b8a3c3be
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4077768f29598f7e294640835a608c80b8a3c3be
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Mon Jul 5 10:28:13 2021 -0400
util/vbuf: check 3-component 16bit int formats for translation
some drivers don't support these
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11716>
---
src/gallium/auxiliary/util/u_vbuf.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/gallium/auxiliary/util/u_vbuf.c b/src/gallium/auxiliary/util/u_vbuf.c
index f97317c5ffa..e6dc72c6bce 100644
--- a/src/gallium/auxiliary/util/u_vbuf.c
+++ b/src/gallium/auxiliary/util/u_vbuf.c
@@ -235,6 +235,8 @@ static const struct {
{ PIPE_FORMAT_R16_SNORM, PIPE_FORMAT_R32_FLOAT },
{ PIPE_FORMAT_R16G16_SNORM, PIPE_FORMAT_R32G32_FLOAT },
{ PIPE_FORMAT_R16G16B16_SNORM, PIPE_FORMAT_R32G32B32_FLOAT },
+ { PIPE_FORMAT_R16G16B16_SINT, PIPE_FORMAT_R32G32B32_SINT },
+ { PIPE_FORMAT_R16G16B16_UINT, PIPE_FORMAT_R32G32B32_UINT },
{ PIPE_FORMAT_R16G16B16A16_SNORM, PIPE_FORMAT_R32G32B32A32_FLOAT },
{ PIPE_FORMAT_R16_USCALED, PIPE_FORMAT_R32_FLOAT },
{ PIPE_FORMAT_R16G16_USCALED, PIPE_FORMAT_R32G32_FLOAT },
More information about the mesa-commit
mailing list