Module: vkd3d Branch: master Commit: bf4a125087c378ad9e1727bf28723c126545f3a6 URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/bf4a125087c378ad9e1727bf28723c...
Author: Francisco Casas fcasas@codeweavers.com Date: Tue Feb 28 19:03:04 2023 -0300
vkd3d-shader/hlsl: Ignore packoffset() contents for SM1.
---
libs/vkd3d-shader/hlsl.y | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/libs/vkd3d-shader/hlsl.y b/libs/vkd3d-shader/hlsl.y index f3196b5b..79ec970a 100644 --- a/libs/vkd3d-shader/hlsl.y +++ b/libs/vkd3d-shader/hlsl.y @@ -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) {