From c1a3d6b9a94806ce29be2f9cd1d392af8e7f5218 Mon Sep 17 00:00:00 2001 From: Jesse Natalie Date: Wed, 4 Jan 2023 16:00:44 -0800 Subject: [PATCH] microsoft/compiler: Remove arrays when testing for structs in I/O Part-of: --- src/microsoft/compiler/dxil_signature.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/microsoft/compiler/dxil_signature.c b/src/microsoft/compiler/dxil_signature.c index 84ee5acc693..0b8539e5d3d 100644 --- a/src/microsoft/compiler/dxil_signature.c +++ b/src/microsoft/compiler/dxil_signature.c @@ -130,7 +130,7 @@ get_additional_semantic_info(nir_shader *s, nir_variable *var, struct semantic_i bool is_depth = is_depth_output(info->kind); - if (!glsl_type_is_struct(type)) { + if (!glsl_type_is_struct(glsl_without_array(type))) { info->sig_comp_type = dxil_get_comp_type(type); } else if (var->data.interpolation == INTERP_MODE_FLAT) { info->sig_comp_type = DXIL_COMP_TYPE_U32;