Currently this affects SM1 compilation only, with a minimal example like this:
float4 var[3]; float4 main() : sv_target { return var[1]; }
From: Nikolay Sivov nsivov@codeweavers.com
Currently this affects SM1 compilation only, with a minimal example like this:
float4 var[3]; float4 main() : sv_target { return var[1]; } --- libs/vkd3d-shader/hlsl.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/libs/vkd3d-shader/hlsl.c b/libs/vkd3d-shader/hlsl.c index 24822e97..f88ca9b8 100644 --- a/libs/vkd3d-shader/hlsl.c +++ b/libs/vkd3d-shader/hlsl.c @@ -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(); }
This merge request was approved by Zebediah Figura.
This merge request was approved by Henri Verbeet.