mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d-shader/sm1: Pass a vkd3d_shader_sm1_parser structure to shader_sm1_is_end().
This commit is contained in:
parent
df6a34e1bd
commit
1b7b694190
Notes:
Alexandre Julliard
2023-04-12 22:34:51 +02:00
Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/155
@ -851,9 +851,8 @@ fail:
|
||||
*ptr = sm1->end;
|
||||
}
|
||||
|
||||
static bool shader_sm1_is_end(struct vkd3d_shader_parser *parser)
|
||||
static bool shader_sm1_is_end(struct vkd3d_shader_sm1_parser *sm1)
|
||||
{
|
||||
struct vkd3d_shader_sm1_parser *sm1 = vkd3d_shader_sm1_parser(parser);
|
||||
const uint32_t **ptr = &sm1->ptr;
|
||||
|
||||
shader_sm1_read_comment(sm1);
|
||||
@ -964,7 +963,7 @@ int vkd3d_shader_sm1_parser_create(const struct vkd3d_shader_compile_info *compi
|
||||
}
|
||||
|
||||
instructions = &sm1->p.instructions;
|
||||
while (!shader_sm1_is_end(&sm1->p))
|
||||
while (!shader_sm1_is_end(sm1))
|
||||
{
|
||||
if (!shader_instruction_array_reserve(instructions, instructions->count + 1))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user