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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user