radv/rt: adjust shared_size when lowering hit_attribs

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22096>
This commit is contained in:
Daniel Schürmann 2023-03-10 20:10:25 +01:00 committed by Marge Bot
parent 393f3426b6
commit 870e4d285e

View file

@ -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