9 Apr
2024
9 Apr
'24
7:31 a.m.
Nikolay Sivov (@nsivov) commented about libs/vkd3d-shader/hlsl.y:
| any_identifier
pass: - KW_PASS name_opt annotations_opt '{' '}' + KW_PASS name_opt annotations_opt '{' state_block_start state_block '}' { - if (!add_pass(ctx, $2, $3, &@1)) + if (!add_pass(ctx, $2, $3, $6, &@1)) YYABORT; }
There is no corresponding fx.c change to write this newly parsed data. I'd suggest a check in write_pass() for var->state_block_count issuing an hlsl_fixme() failure. -- https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/739#note_67321