From: Samuel Pitoiset Date: Tue, 30 Jul 2019 13:14:35 +0000 (+0200) Subject: radv/gfx10: only compile the GS copy shader on-demand X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9d7ead6f9bc8d13126127b17302d927b1f74cdbe;p=platform%2Fupstream%2Fmesa.git radv/gfx10: only compile the GS copy shader on-demand Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index 583b600..e11196b 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -2626,7 +2626,8 @@ void radv_create_shaders(struct radv_pipeline *pipeline, if(modules[MESA_SHADER_GEOMETRY]) { struct radv_shader_binary *gs_copy_binary = NULL; - if (!pipeline->gs_copy_shader) { + if (!pipeline->gs_copy_shader && + !radv_pipeline_has_ngg(pipeline)) { pipeline->gs_copy_shader = radv_create_gs_copy_shader( device, nir[MESA_SHADER_GEOMETRY], &gs_copy_binary, keys[MESA_SHADER_GEOMETRY].has_multiview_view_index);