vkd3d-shader/hlsl: Use array element type for array's regset.

Currently this affects SM1 compilation only, with a minimal example like this:

float4 var[3];
float4 main() : sv_target
{
    return var[1];
}
This commit is contained in:
Nikolay Sivov 2023-03-08 02:47:59 +01:00 committed by Alexandre Julliard
parent 2880be647e
commit 193692bbcb
Notes: Alexandre Julliard 2023-03-09 22:26:07 +01:00
Approved-by: Zebediah Figura (@zfigura)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/119

View File

@ -203,6 +203,8 @@ enum hlsl_regset hlsl_type_get_regset(const struct hlsl_type *type)
vkd3d_unreachable();
}
}
else if (type->type == HLSL_CLASS_ARRAY)
return hlsl_type_get_regset(type->e.array.type);
vkd3d_unreachable();
}