diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c index 4b806b12d2b..fc1953e05f2 100644 --- a/src/amd/vulkan/radv_shader.c +++ b/src/amd/vulkan/radv_shader.c @@ -840,7 +840,7 @@ radv_lower_io(struct radv_device *device, nir_shader *nir) bool radv_lower_io_to_mem(struct radv_device *device, struct nir_shader *nir, - struct radv_shader_info *info, const struct radv_pipeline_key *pl_key) + const struct radv_shader_info *info, const struct radv_pipeline_key *pl_key) { if (nir->info.stage == MESA_SHADER_VERTEX) { if (info->vs.as_ls) { @@ -943,7 +943,7 @@ radv_consider_culling(struct radv_device *device, struct nir_shader *nir, } void radv_lower_ngg(struct radv_device *device, struct nir_shader *nir, - struct radv_shader_info *info, + const struct radv_shader_info *info, const struct radv_pipeline_key *pl_key) { /* TODO: support the LLVM backend with the NIR lowering */ diff --git a/src/amd/vulkan/radv_shader.h b/src/amd/vulkan/radv_shader.h index 158aea71e83..ae810e63adb 100644 --- a/src/amd/vulkan/radv_shader.h +++ b/src/amd/vulkan/radv_shader.h @@ -526,10 +526,10 @@ 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 radv_lower_io_to_mem(struct radv_device *device, struct nir_shader *nir, - struct radv_shader_info *info, const struct radv_pipeline_key *pl_key); + const struct radv_shader_info *info, const struct radv_pipeline_key *pl_key); void radv_lower_ngg(struct radv_device *device, struct nir_shader *nir, - struct radv_shader_info *info, + const struct radv_shader_info *info, const struct radv_pipeline_key *pl_key); bool radv_consider_culling(struct radv_device *device, struct nir_shader *nir,