From ca783612e721bc66af545075d76dc578ddbf7666 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Thu, 20 May 2021 23:03:33 +0200 Subject: [PATCH] radv: simplify radv_pipeline_has_gs_copy_shader() The GS copy shader should only be built if GS and without NGG. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Part-of: --- src/amd/vulkan/radv_pipeline.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index c5eb53ce529aa..152e6c67f1163 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -177,18 +177,7 @@ radv_pipeline_has_ngg_passthrough(const struct radv_pipeline *pipeline) bool radv_pipeline_has_gs_copy_shader(const struct radv_pipeline *pipeline) { - if (!radv_pipeline_has_gs(pipeline)) - return false; - - /* The GS copy shader is required if the pipeline has GS on GFX6-GFX9. - * On GFX10, it might be required in rare cases if it's not possible to - * enable NGG. - */ - if (radv_pipeline_has_ngg(pipeline)) - return false; - - assert(pipeline->gs_copy_shader); - return true; + return !!pipeline->gs_copy_shader; } static void