From 680561291893dad6abfe91fea9d81101b2175901 Mon Sep 17 00:00:00 2001 From: Giovanni Mascellani Date: Mon, 28 Jul 2025 22:27:41 +0200 Subject: [PATCH] vkd3d-shader: Use the structure names when creating the parameter allocators. So that it doesn't depend on the instruction array implementation. --- libs/vkd3d-shader/vkd3d_shader_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/vkd3d-shader/vkd3d_shader_main.c b/libs/vkd3d-shader/vkd3d_shader_main.c index 4640b3734..f99296bc5 100644 --- a/libs/vkd3d-shader/vkd3d_shader_main.c +++ b/libs/vkd3d-shader/vkd3d_shader_main.c @@ -2257,8 +2257,8 @@ bool shader_instruction_array_init(struct vkd3d_shader_instruction_array *instru /* Size the parameter initial allocations so they are large enough for most shaders. The * code path for chained allocations will be tested if a few shaders need to use it. */ shader_param_allocator_init(&instructions->dst_params, reserve - reserve / 8u, - sizeof(*instructions->elements->dst)); - shader_param_allocator_init(&instructions->src_params, reserve * 2u, sizeof(*instructions->elements->src)); + sizeof(struct vkd3d_shader_dst_param)); + shader_param_allocator_init(&instructions->src_params, reserve * 2u, sizeof(struct vkd3d_shader_src_param)); return shader_instruction_array_reserve(instructions, reserve); }