mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/hlsl: Store the "instrs" field of struct hlsl_attribute as a hlsl_block.
This commit is contained in:
committed by
Alexandre Julliard
parent
372ddd1f29
commit
0652bb1950
Notes:
Alexandre Julliard
2023-08-08 21:47:28 +09:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/290
@@ -5001,7 +5001,7 @@ attribute:
|
||||
YYABORT;
|
||||
}
|
||||
$$->name = $2;
|
||||
list_init(&$$->instrs);
|
||||
hlsl_block_init(&$$->instrs);
|
||||
$$->loc = @$;
|
||||
$$->args_count = 0;
|
||||
}
|
||||
@@ -5016,8 +5016,8 @@ attribute:
|
||||
YYABORT;
|
||||
}
|
||||
$$->name = $2;
|
||||
list_init(&$$->instrs);
|
||||
list_move_tail(&$$->instrs, &$4.instrs->instrs);
|
||||
hlsl_block_init(&$$->instrs);
|
||||
hlsl_block_add_block(&$$->instrs, $4.instrs);
|
||||
vkd3d_free($4.instrs);
|
||||
$$->loc = @$;
|
||||
$$->args_count = $4.args_count;
|
||||
|
||||
Reference in New Issue
Block a user