Module: Mesa Branch: main Commit: bb86fc03596a1aca0862a10eb251c1c71ed81d10 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=bb86fc03596a1aca0862a10eb251c1c71ed81d10
Author: Samuel Pitoiset <samuel.pitoi...@gmail.com> Date: Fri Jan 12 11:55:53 2024 +0100 radv: constify stages in radv_rt_fill_group_info() Signed-off-by: Samuel Pitoiset <samuel.pitoi...@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27030> --- src/amd/vulkan/radv_pipeline_rt.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/amd/vulkan/radv_pipeline_rt.c b/src/amd/vulkan/radv_pipeline_rt.c index c7f3047f561..5675977cffa 100644 --- a/src/amd/vulkan/radv_pipeline_rt.c +++ b/src/amd/vulkan/radv_pipeline_rt.c @@ -35,7 +35,7 @@ struct rt_handle_hash_entry { }; static uint32_t -handle_from_stages(struct radv_device *device, struct radv_ray_tracing_stage *stages, unsigned stage_count, +handle_from_stages(struct radv_device *device, const struct radv_ray_tracing_stage *stages, unsigned stage_count, bool replay_namespace) { struct mesa_sha1 ctx; @@ -110,8 +110,8 @@ radv_generate_rt_pipeline_key(const struct radv_device *device, const struct rad static VkResult radv_create_group_handles(struct radv_device *device, const struct radv_ray_tracing_pipeline *pipeline, - const VkRayTracingPipelineCreateInfoKHR *pCreateInfo, struct radv_ray_tracing_stage *stages, - struct radv_ray_tracing_group *groups) + const VkRayTracingPipelineCreateInfoKHR *pCreateInfo, + const struct radv_ray_tracing_stage *stages, struct radv_ray_tracing_group *groups) { bool capture_replay = pipeline->base.base.create_flags & VK_PIPELINE_CREATE_2_RAY_TRACING_SHADER_GROUP_HANDLE_CAPTURE_REPLAY_BIT_KHR; @@ -168,7 +168,8 @@ radv_create_group_handles(struct radv_device *device, const struct radv_ray_trac static VkResult radv_rt_fill_group_info(struct radv_device *device, const struct radv_ray_tracing_pipeline *pipeline, - const VkRayTracingPipelineCreateInfoKHR *pCreateInfo, struct radv_ray_tracing_stage *stages, + const VkRayTracingPipelineCreateInfoKHR *pCreateInfo, + const struct radv_ray_tracing_stage *stages, struct radv_serialized_shader_arena_block *capture_replay_blocks, struct radv_ray_tracing_group *groups) {