Nikolay Sivov : vkd3d-shader/fx: Do not write shared buffers block when not compiling as a child effect.
Module: vkd3d Branch: master Commit: 5265fbb789703b79ef83a32ed625b9b9fa118331 URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/5265fbb789703b79ef83a32ed625b9... Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Thu May 30 13:59:36 2024 +0200 vkd3d-shader/fx: Do not write shared buffers block when not compiling as a child effect. Signed-off-by: Nikolay Sivov <nsivov(a)codeweavers.com> --- libs/vkd3d-shader/fx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libs/vkd3d-shader/fx.c b/libs/vkd3d-shader/fx.c index 57b4ac24..d8653dbf 100644 --- a/libs/vkd3d-shader/fx.c +++ b/libs/vkd3d-shader/fx.c @@ -1464,6 +1464,9 @@ static void write_buffers(struct fx_write_context *fx, bool shared) { struct hlsl_buffer *buffer; + if (shared && !fx->child_effect) + return; + LIST_FOR_EACH_ENTRY(buffer, &fx->ctx->buffers, struct hlsl_buffer, entry) { if (!buffer->size && !fx->include_empty_buffers)
participants (1)
-
Alexandre Julliard