radv/radix_sort: Vendor the radix sort dispatch code
authorKonstantin Seurer <konstantin.seurer@gmail.com>
Wed, 16 Aug 2023 09:09:25 +0000 (11:09 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 14 Sep 2023 15:12:44 +0000 (15:12 +0000)
commit44c47054bca2e1dbfb9a0bb16433fab48264f5a9
tree5eaeea222208a19915a9154742fe1ce68e9b3a63
parent1cacc64ea7223bc91bc11796dc5f2762ca958f61
radv/radix_sort: Vendor the radix sort dispatch code

This needs to be done so we can optimize it for occpuancy when building
multiple acceleration structures in parallel. Changes to the original
code:

- Change // to /* */
- clang-format
- Replace vkCmd calls with calls to the driver entrypoints
- Add a light weight info struct
- Use radv_fill_buffer directly

Reviewed-by: Friedrich Vock <friedrich.vock@gmx.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24720>
src/amd/vulkan/radv_acceleration_structure.c
src/amd/vulkan/radv_private.h