mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d-shader/sm4: Get rid of shader_sm4_is_end().
This commit is contained in:
parent
1e448b0b71
commit
0c05f2409c
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
@ -1596,13 +1596,6 @@ fail:
|
||||
return;
|
||||
}
|
||||
|
||||
static bool shader_sm4_is_end(struct vkd3d_shader_parser *parser)
|
||||
{
|
||||
struct vkd3d_shader_sm4_parser *sm4 = vkd3d_shader_sm4_parser(parser);
|
||||
|
||||
return sm4->ptr == sm4->end;
|
||||
}
|
||||
|
||||
static const struct vkd3d_shader_parser_ops shader_sm4_parser_ops =
|
||||
{
|
||||
.parser_destroy = shader_sm4_destroy,
|
||||
@ -2184,7 +2177,7 @@ int vkd3d_shader_sm4_parser_create(const struct vkd3d_shader_compile_info *compi
|
||||
}
|
||||
|
||||
instructions = &sm4->p.instructions;
|
||||
while (!shader_sm4_is_end(&sm4->p))
|
||||
while (sm4->ptr != sm4->end)
|
||||
{
|
||||
if (!shader_instruction_array_reserve(instructions, instructions->count + 1))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user