mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 08:50:13 +01:00
radv: Rename cache_search_nir to cache_lookup_nir_handle.
A future commit will introduce cache_lookup_nir (which does not create an intermediate vk_pipeline_cache_object), so rename it for consistency. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26696>
This commit is contained in:
parent
70b0c5909b
commit
8bf5c33c9c
2 changed files with 5 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue