diff --git a/src/amd/vulkan/radv_pipeline_cache.c b/src/amd/vulkan/radv_pipeline_cache.c index 939e4f2158e..c0212aeaa52 100644 --- a/src/amd/vulkan/radv_pipeline_cache.c +++ b/src/amd/vulkan/radv_pipeline_cache.c @@ -448,7 +448,7 @@ radv_ray_tracing_pipeline_cache_search(struct radv_device *device, struct vk_pip pipeline->stages[i].shader = radv_shader_ref(pipeline_obj->shaders[idx++]); if (is_library) { - pipeline->stages[i].nir = radv_pipeline_cache_search_nir(device, cache, pipeline->stages[i].sha1); + pipeline->stages[i].nir = radv_pipeline_cache_lookup_nir_handle(device, cache, pipeline->stages[i].sha1); complete &= pipeline->stages[i].nir != NULL; } } @@ -517,7 +517,7 @@ radv_ray_tracing_pipeline_cache_insert(struct radv_device *device, struct vk_pip } struct vk_pipeline_cache_object * -radv_pipeline_cache_search_nir(struct radv_device *device, struct vk_pipeline_cache *cache, const uint8_t *sha1) +radv_pipeline_cache_lookup_nir_handle(struct radv_device *device, struct vk_pipeline_cache *cache, const uint8_t *sha1) { if (radv_is_cache_disabled(device)) return NULL; diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h index 20226e90c94..40da3174d23 100644 --- a/src/amd/vulkan/radv_private.h +++ b/src/amd/vulkan/radv_private.h @@ -417,8 +417,9 @@ void radv_ray_tracing_pipeline_cache_insert(struct radv_device *device, struct v struct radv_ray_tracing_pipeline *pipeline, unsigned num_stages, const unsigned char *sha1); -struct vk_pipeline_cache_object * -radv_pipeline_cache_search_nir(struct radv_device *device, struct vk_pipeline_cache *cache, const unsigned char *sha1); +struct vk_pipeline_cache_object *radv_pipeline_cache_lookup_nir_handle(struct radv_device *device, + struct vk_pipeline_cache *cache, + const unsigned char *sha1); struct vk_pipeline_cache_object *radv_pipeline_cache_nir_to_handle(struct radv_device *device, struct vk_pipeline_cache *cache,