mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
vkd3d-shader/hlsl: Ignore packoffset() contents for SM1.
This commit is contained in:
committed by
Alexandre Julliard
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};
|
struct hlsl_reg_reservation reservation = {0};
|
||||||
char *endptr;
|
char *endptr;
|
||||||
|
|
||||||
|
if (ctx->profile->major_version < 4)
|
||||||
|
return reservation;
|
||||||
|
|
||||||
reservation.offset_index = strtoul(reg_string + 1, &endptr, 10);
|
reservation.offset_index = strtoul(reg_string + 1, &endptr, 10);
|
||||||
if (*endptr)
|
if (*endptr)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user