From c08ba6a76c9e40adc5da0540d365904cc7e22b4f Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Tue, 13 Sep 2022 18:06:47 +0200 Subject: [PATCH] radv: import the GS copy shader from a library if present MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Samuel Pitoiset Reviewed-by: Timur Kristóf Part-of: --- src/amd/vulkan/radv_pipeline.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index 856b297..3ee8c5f 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -1630,6 +1630,12 @@ radv_graphics_pipeline_import_lib(struct radv_graphics_pipeline *pipeline, pipeline->base.shaders[s] = radv_shader_ref(lib->base.base.shaders[s]); } + /* Import the GS copy shader if present. */ + if (lib->base.base.gs_copy_shader) { + assert(!pipeline->base.gs_copy_shader); + pipeline->base.gs_copy_shader = radv_shader_ref(lib->base.base.gs_copy_shader); + } + /* Import the PS epilog if present. */ if (lib->base.ps_epilog) { assert(!pipeline->ps_epilog); -- 2.7.4