From 2fbd495ce7cf0d9694c966f542b36fe4bdac7674 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Sch=C3=BCrmann?= Date: Tue, 7 Mar 2023 13:17:12 +0100 Subject: [PATCH] radv: expose radv_postprocess_nir() Part-of: --- src/amd/vulkan/radv_pipeline.c | 5 ++--- src/amd/vulkan/radv_shader.h | 6 ++++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index 42c7057..6c4db49 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -3101,11 +3101,10 @@ ycbcr_conversion_lookup(const void *data, uint32_t set, uint32_t binding, uint32 return ycbcr_samplers + array_index; } -static void +void radv_postprocess_nir(struct radv_pipeline *pipeline, const struct radv_pipeline_layout *pipeline_layout, - const struct radv_pipeline_key *pipeline_key, - unsigned last_vgt_api_stage, + const struct radv_pipeline_key *pipeline_key, unsigned last_vgt_api_stage, struct radv_pipeline_stage *stage) { struct radv_device *device = pipeline->device; diff --git a/src/amd/vulkan/radv_shader.h b/src/amd/vulkan/radv_shader.h index 7833d3a..b7cfc36 100644 --- a/src/amd/vulkan/radv_shader.h +++ b/src/amd/vulkan/radv_shader.h @@ -528,6 +528,7 @@ struct radv_shader_part { }; struct radv_pipeline_layout; +struct radv_pipeline_stage; void radv_optimize_nir(struct nir_shader *shader, bool optimize_conservatively); void radv_optimize_nir_algebraic(nir_shader *shader, bool opt_offsets); @@ -539,6 +540,11 @@ void radv_nir_apply_pipeline_layout(nir_shader *shader, struct radv_device *devi const struct radv_shader_info *info, const struct radv_shader_args *args); +void radv_postprocess_nir(struct radv_pipeline *pipeline, + const struct radv_pipeline_layout *pipeline_layout, + const struct radv_pipeline_key *pipeline_key, unsigned last_vgt_api_stage, + struct radv_pipeline_stage *stage); + struct radv_pipeline_stage; nir_shader *radv_shader_spirv_to_nir(struct radv_device *device, -- 2.7.4