mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 05:20:09 +01:00
radv/rt: remove unnecessary param to radv_ray_tracing_pipeline_cache_insert()
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28829>
This commit is contained in:
parent
6bbf8a08a4
commit
862d53f00a
3 changed files with 4 additions and 6 deletions
|
|
@ -449,8 +449,7 @@ radv_ray_tracing_pipeline_cache_search(struct radv_device *device, struct vk_pip
|
|||
|
||||
void
|
||||
radv_ray_tracing_pipeline_cache_insert(struct radv_device *device, struct vk_pipeline_cache *cache,
|
||||
struct radv_ray_tracing_pipeline *pipeline, unsigned num_stages,
|
||||
const unsigned char *sha1)
|
||||
struct radv_ray_tracing_pipeline *pipeline, unsigned num_stages)
|
||||
{
|
||||
if (device->cache_disabled)
|
||||
return;
|
||||
|
|
@ -474,7 +473,7 @@ radv_ray_tracing_pipeline_cache_insert(struct radv_device *device, struct vk_pip
|
|||
num_stages * sizeof(struct radv_ray_tracing_stage_cache_data);
|
||||
|
||||
struct radv_pipeline_cache_object *pipeline_obj =
|
||||
radv_pipeline_cache_object_create(&device->vk, num_shaders, sha1, data_size);
|
||||
radv_pipeline_cache_object_create(&device->vk, num_shaders, pipeline->sha1, data_size);
|
||||
struct radv_ray_tracing_pipeline_cache_data *data = pipeline_obj->data;
|
||||
|
||||
data->has_traversal_shader = !!pipeline->base.base.shaders[MESA_SHADER_INTERSECTION];
|
||||
|
|
|
|||
|
|
@ -55,8 +55,7 @@ bool radv_ray_tracing_pipeline_cache_search(struct radv_device *device, struct v
|
|||
bool *found_in_application_cache);
|
||||
|
||||
void radv_ray_tracing_pipeline_cache_insert(struct radv_device *device, struct vk_pipeline_cache *cache,
|
||||
struct radv_ray_tracing_pipeline *pipeline, unsigned num_stages,
|
||||
const unsigned char *sha1);
|
||||
struct radv_ray_tracing_pipeline *pipeline, unsigned num_stages);
|
||||
|
||||
nir_shader *radv_pipeline_cache_lookup_nir(struct radv_device *device, struct vk_pipeline_cache *cache,
|
||||
gl_shader_stage stage, const blake3_hash key);
|
||||
|
|
|
|||
|
|
@ -873,7 +873,7 @@ radv_rt_pipeline_compile(struct radv_device *device, const VkRayTracingPipelineC
|
|||
return result;
|
||||
|
||||
if (!skip_shaders_cache)
|
||||
radv_ray_tracing_pipeline_cache_insert(device, cache, pipeline, pCreateInfo->stageCount, pipeline->sha1);
|
||||
radv_ray_tracing_pipeline_cache_insert(device, cache, pipeline, pCreateInfo->stageCount);
|
||||
|
||||
done:
|
||||
pipeline_feedback.duration = os_time_get_nano() - pipeline_start;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue