From 2167a61611cda66dc365bdd966ac68739c499653 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Thu, 18 Aug 2022 10:01:54 +0200 Subject: [PATCH] radv: remove unused parameter in radv_lower_io_to_mem() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Samuel Pitoiset Reviewed-By: Mike Blumenkrantz Reviewed-by: Timur Kristóf Part-of: --- src/amd/vulkan/radv_pipeline.c | 2 +- src/amd/vulkan/radv_shader.c | 3 +-- src/amd/vulkan/radv_shader.h | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index bdc3fbd56e5..51764655c1f 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -4394,7 +4394,7 @@ radv_postprocess_nir(struct radv_pipeline *pipeline, nir_move_load_input | nir_move_const_undef | nir_move_copies); /* Lower I/O intrinsics to memory instructions. */ - bool io_to_mem = radv_lower_io_to_mem(device, stage, pipeline_key); + bool io_to_mem = radv_lower_io_to_mem(device, stage); bool lowered_ngg = pipeline_has_ngg && stage->stage == last_vgt_api_stage; if (lowered_ngg) radv_lower_ngg(device, stage, pipeline_key); diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c index b08c587785f..2751470af1a 100644 --- a/src/amd/vulkan/radv_shader.c +++ b/src/amd/vulkan/radv_shader.c @@ -1154,8 +1154,7 @@ radv_lower_io(struct radv_device *device, nir_shader *nir, bool is_mesh_shading) } bool -radv_lower_io_to_mem(struct radv_device *device, struct radv_pipeline_stage *stage, - const struct radv_pipeline_key *pl_key) +radv_lower_io_to_mem(struct radv_device *device, struct radv_pipeline_stage *stage) { const struct radv_shader_info *info = &stage->info; nir_shader *nir = stage->nir; diff --git a/src/amd/vulkan/radv_shader.h b/src/amd/vulkan/radv_shader.h index b224005ec5a..40b8bb917c0 100644 --- a/src/amd/vulkan/radv_shader.h +++ b/src/amd/vulkan/radv_shader.h @@ -734,8 +734,7 @@ get_tcs_num_patches(unsigned tcs_num_input_vertices, unsigned tcs_num_output_ver void radv_lower_io(struct radv_device *device, nir_shader *nir, bool is_mesh_shading); -bool radv_lower_io_to_mem(struct radv_device *device, struct radv_pipeline_stage *stage, - const struct radv_pipeline_key *pl_key); +bool radv_lower_io_to_mem(struct radv_device *device, struct radv_pipeline_stage *stage); void radv_lower_ngg(struct radv_device *device, struct radv_pipeline_stage *ngg_stage, const struct radv_pipeline_key *pl_key);