mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d-shader/hlsl: Handle uppercase regset names in packoffset().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
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
@ -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,
|
||||
|
@ -156,7 +156,7 @@ float4 main() : sv_target
|
||||
cbuffer buffer
|
||||
{
|
||||
float4 a : packoffset(c1);
|
||||
float4 b : packoffset(c2);
|
||||
float4 b : packoffset(C2);
|
||||
}
|
||||
|
||||
float4 main() : sv_target
|
||||
|
Loading…
x
Reference in New Issue
Block a user