microsoft/compiler: Remove arrays when testing for structs in I/O

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20614>
This commit is contained in:
Jesse Natalie 2023-01-04 16:00:44 -08:00 committed by Marge Bot
parent c86bd4bfbc
commit c1a3d6b9a9

View file

@ -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;