radv: Pre-compile BVH build shaders if there is a cache

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21268>
This commit is contained in:
Konstantin Seurer 2023-02-17 17:14:32 +01:00 committed by Marge Bot
parent 40f246e3e9
commit 3966fbdc51

View file

@ -503,7 +503,7 @@ radv_device_init_meta(struct radv_device *device)
* Work around it by forcing ACO for now.
*/
bool use_llvm = device->physical_device->use_llvm;
if (use_llvm) {
if (loaded_cache || use_llvm) {
device->physical_device->use_llvm = false;
result = radv_device_init_accel_struct_build_state(device);
device->physical_device->use_llvm = use_llvm;