radv: Use radv_fill_buffer for accel struct builds
authorKonstantin Seurer <konstantin.seurer@gmail.com>
Sun, 15 May 2022 10:46:11 +0000 (12:46 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 17 May 2022 13:10:07 +0000 (13:10 +0000)
commit405b2bb79c702c13b248e217bf330c9f9e25ca48
tree4763e74cb7f9700639e747078e2a61cf25f16590
parent183c15dbb2f9dfec48f5ce7486551e223ca89401
radv: Use radv_fill_buffer for accel struct builds

It turns out, that the fuchsia sort may actually
perform clears with size < 16 which hits an assert
in radv_fill_buffer_shader. This fixes random
crashes in Control.

Fixes: be57b08 ("radv: Build accaleration structures using LBVH")
Signed-off-by: Konstantin Seurer <konstantin.seurer@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16517>
src/amd/vulkan/radv_acceleration_structure.c