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:
parent
e98c61e9f3
commit
ca783612e7
|
@ -177,18 +177,7 @@ radv_pipeline_has_ngg_passthrough(const struct radv_pipeline *pipeline)
|
||||||
bool
|
bool
|
||||||
radv_pipeline_has_gs_copy_shader(const struct radv_pipeline *pipeline)
|
radv_pipeline_has_gs_copy_shader(const struct radv_pipeline *pipeline)
|
||||||
{
|
{
|
||||||
if (!radv_pipeline_has_gs(pipeline))
|
return !!pipeline->gs_copy_shader;
|
||||||
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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue