radv: Pack and encode geometry id and flags on the CPU
authorKonstantin Seurer <konstantin.seurer@gmail.com>
Mon, 10 Apr 2023 10:50:49 +0000 (12:50 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 11 Apr 2023 07:57:34 +0000 (07:57 +0000)
commitf791cd9e43597f413091c27c1b0b0e90eb62dccc
tree16a7fc095bed252527afbdd652dfbf8fa7b3f488
parent8391639b5f3cec8b4d48c0e78ed581b56a7f51cc
radv: Pack and encode geometry id and flags on the CPU

There is no need to do it on the GPU.

Change in average build time (Control):
84.80691 ms -> 84.69471 ms

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