radv: Add radv_pipeline_has_mesh helper.

This will be used to determine whether a pipeline uses
mesh shading or not.

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13580>
This commit is contained in:
Timur Kristóf 2021-10-28 16:50:06 +02:00 committed by Marge Bot
parent 7aa42e023a
commit 32bc466dcb

View file

@ -1920,6 +1920,12 @@ radv_pipeline_has_tess(const struct radv_pipeline *pipeline)
return pipeline->shaders[MESA_SHADER_TESS_CTRL] ? true : false;
}
static inline bool
radv_pipeline_has_mesh(const struct radv_pipeline *pipeline)
{
return !!pipeline->shaders[MESA_SHADER_MESH];
}
bool radv_pipeline_has_ngg_passthrough(const struct radv_pipeline *pipeline);
bool radv_pipeline_has_gs_copy_shader(const struct radv_pipeline *pipeline);