From 97acfa24f4f254a71ca04377749c134777466c82 Mon Sep 17 00:00:00 2001 From: liuwenfeng Date: Tue, 1 Jul 2025 17:47:26 +0800 Subject: [PATCH] fix float array type not supported Signed-off-by: liuwenfeng --- src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 f0a56a724a2..f122a001ec5 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 @@ -884,7 +884,7 @@ get_per_vertex_member_type(struct ntv_context *ctx, uint32_t member_idx) // Use cached type or create it once if (ctx->float_array_1_type == 0) { SpvId float_type = get_glsl_type(ctx, glsl_float_type()); - SpvId array_size = spirv_builder_const_uint(&ctx->builder, 32, 6); + SpvId array_size = spirv_builder_const_uint(&ctx->builder, 32, 5); ctx->float_array_1_type = spirv_builder_type_array(&ctx->builder, float_type, array_size); } return ctx->float_array_1_type; -- Gitee