mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 17:50:11 +01:00
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:
parent
7aa42e023a
commit
32bc466dcb
1 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue