Module: vkd3d
Branch: master
Commit: 4c46075d864c2959a0c042c6bc7201fc40c414ba
URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/4c46075d864c2959a0c042c6bc720…
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(-)