mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/ir: Record the control flow type in the program.
This commit is contained in:
committed by
Henri Verbeet
parent
dcee148b1a
commit
866f138875
Notes:
Henri Verbeet
2024-09-12 18:56:42 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1061
@@ -2598,7 +2598,7 @@ static bool shader_sm4_init(struct vkd3d_shader_sm4_parser *sm4, struct vsir_pro
|
||||
version.minor = VKD3D_SM4_VERSION_MINOR(version_token);
|
||||
|
||||
/* Estimate instruction count to avoid reallocation in most shaders. */
|
||||
if (!vsir_program_init(program, compile_info, &version, token_count / 7u + 20))
|
||||
if (!vsir_program_init(program, compile_info, &version, token_count / 7u + 20, VSIR_CF_STRUCTURED))
|
||||
return false;
|
||||
vkd3d_shader_parser_init(&sm4->p, program, message_context, compile_info->source_name);
|
||||
sm4->ptr = sm4->start;
|
||||
|
Reference in New Issue
Block a user