From: Daniel Schürmann Date: Fri, 10 Mar 2023 19:10:25 +0000 (+0100) Subject: radv/rt: adjust shared_size when lowering hit_attribs X-Git-Tag: upstream/23.3.3~7386 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=870e4d285ef38a9d0c3fe381e8c386afedf2f17c;p=platform%2Fupstream%2Fmesa.git radv/rt: adjust shared_size when lowering hit_attribs Part-of: --- diff --git a/src/amd/vulkan/radv_rt_shader.c b/src/amd/vulkan/radv_rt_shader.c index 23abd74..36fb4c0 100644 --- a/src/amd/vulkan/radv_rt_shader.c +++ b/src/amd/vulkan/radv_rt_shader.c @@ -771,6 +771,10 @@ lower_hit_attribs(nir_shader *shader, nir_variable **hit_attribs, uint32_t workg nir_instr_remove(instr); } } + + if (!hit_attribs) + shader->info.shared_size = + MAX2(shader->info.shared_size, workgroup_size * RADV_MAX_HIT_ATTRIB_SIZE); } static void