mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/hlsl: Ignore packoffset() contents for SM1.
This commit is contained in:
parent
60237cb773
commit
bf4a125087
Notes:
Alexandre Julliard
2023-04-04 22:35:22 +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/106
@ -1107,6 +1107,9 @@ static struct hlsl_reg_reservation parse_packoffset(struct hlsl_ctx *ctx, const
|
||||
struct hlsl_reg_reservation reservation = {0};
|
||||
char *endptr;
|
||||
|
||||
if (ctx->profile->major_version < 4)
|
||||
return reservation;
|
||||
|
||||
reservation.offset_index = strtoul(reg_string + 1, &endptr, 10);
|
||||
if (*endptr)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user