Mesa (main): zink: add more glsl base types to get_glsl_basetype()
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Oct 27 17:23:39 UTC 2021
Module: Mesa
Branch: main
Commit: c18413b877cdf47904ef398071827767afa0b99a
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c18413b877cdf47904ef398071827767afa0b99a
Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date: Wed Oct 20 16:52:01 2021 -0400
zink: add more glsl base types to get_glsl_basetype()
Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13484>
---
src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c b/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c
index 48a7fae37e3..7c3b0da8d92 100644
--- a/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c
+++ b/src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c
@@ -347,6 +347,15 @@ get_glsl_basetype(struct ntv_context *ctx, enum glsl_base_type type)
case GLSL_TYPE_UINT64:
return spirv_builder_type_uint(&ctx->builder, 64);
+
+ case GLSL_TYPE_UINT16:
+ return spirv_builder_type_uint(&ctx->builder, 16);
+ case GLSL_TYPE_INT16:
+ return spirv_builder_type_int(&ctx->builder, 16);
+ case GLSL_TYPE_INT8:
+ return spirv_builder_type_int(&ctx->builder, 8);
+ case GLSL_TYPE_UINT8:
+ return spirv_builder_type_uint(&ctx->builder, 8);
/* TODO: handle more types */
default:
More information about the mesa-commit
mailing list