From 4098e47ab622558e77d534d26d52607929d78acf Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Fri, 21 Jul 2023 10:40:28 +0200 Subject: [PATCH] radv: use the number of GS linked inputs to compute the ESGS itemsize It's similar. Signed-off-by: Samuel Pitoiset Part-of: --- src/amd/vulkan/radv_shader_info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_shader_info.c b/src/amd/vulkan/radv_shader_info.c index aebdef5e694..0c34c752c93 100644 --- a/src/amd/vulkan/radv_shader_info.c +++ b/src/amd/vulkan/radv_shader_info.c @@ -1070,7 +1070,7 @@ radv_get_legacy_gs_info(const struct radv_device *device, struct radv_pipeline_s /* We can't allow using the whole LDS, because GS waves compete with * other shader stages for LDS space. */ const unsigned max_lds_size = 8 * 1024; - const unsigned esgs_itemsize = es_info->esgs_itemsize / 4; + const unsigned esgs_itemsize = radv_compute_esgs_itemsize(device, gs_stage->info.gs.num_linked_inputs) / 4; unsigned esgs_lds_size; /* All these are per subgroup: */