Zebediah Figura : vkd3d-shader/hlsl: Use the original hlsl_ir_function_decl struct rather than allocating a new one for each definition.
7 Feb
2023
7 Feb
'23
9:20 p.m.
Module: vkd3d Branch: master Commit: 4c46075d864c2959a0c042c6bc7201fc40c414ba URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/4c46075d864c2959a0c042c6bc7201... Author: Zebediah Figura <zfigura(a)codeweavers.com> Date: Tue Jan 31 19:59:06 2023 -0600 vkd3d-shader/hlsl: Use the original hlsl_ir_function_decl struct rather than allocating a new one for each definition. We need to make sure every invocation points to the same hlsl_ir_function_decl and the same parameters. This fixes some invalid memory accesses. --- libs/vkd3d-shader/hlsl.c | 28 +------- libs/vkd3d-shader/hlsl.y | 178 ++++++++++++++++++++++++++++++++++++++--------- 2 files changed, 150 insertions(+), 56 deletions(-)
1135
Age (days ago)
1135
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard