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 <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10908>
This commit is contained in:
Samuel Pitoiset 2021-05-20 23:03:33 +02:00 committed by Marge Bot
parent e98c61e9f3
commit ca783612e7
1 changed files with 1 additions and 12 deletions

View File

@ -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