mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-12-15 08:03:30 -08: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
@@ -10303,7 +10303,7 @@ static enum vkd3d_result sm6_parser_init(struct sm6_parser *sm6, struct vsir_pro
|
||||
|
||||
/* Estimate instruction count to avoid reallocation in most shaders. */
|
||||
count = max(token_count, 400) - 400;
|
||||
if (!vsir_program_init(program, compile_info, &version, (count + (count >> 2)) / 2u + 10))
|
||||
if (!vsir_program_init(program, compile_info, &version, (count + (count >> 2)) / 2u + 10, VSIR_CF_BLOCKS))
|
||||
return VKD3D_ERROR_OUT_OF_MEMORY;
|
||||
vkd3d_shader_parser_init(&sm6->p, program, message_context, compile_info->source_name);
|
||||
sm6->ptr = &sm6->start[1];
|
||||
|
||||
Reference in New Issue
Block a user