vkd3d-shader/hlsl: Handle uppercase regset names in packoffset().

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
Nikolay Sivov
2023-04-16 19:43:14 +02:00
committed by Alexandre Julliard
parent 0cea4d352e
commit 827a359b45
Notes: Alexandre Julliard 2023-04-19 22:11:12 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
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/162
2 changed files with 2 additions and 2 deletions

View File

@@ -1035,7 +1035,7 @@ static struct hlsl_reg_reservation parse_packoffset(struct hlsl_ctx *ctx, const
return reservation;
}
reservation.offset_type = reg_string[0];
reservation.offset_type = ascii_tolower(reg_string[0]);
if (reservation.offset_type != 'c')
{
hlsl_error(ctx, loc, VKD3D_SHADER_ERROR_HLSL_INVALID_RESERVATION,