Module: Mesa Branch: main Commit: bb71d1092b4bfd026d36855a801e9ed60c263dff URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=bb71d1092b4bfd026d36855a801e9ed60c263dff
Author: Timur Kristóf <[email protected]> Date: Tue Jan 18 16:39:53 2022 +0100 radv: Add radv_pipeline_has_task helper. Signed-off-by: Timur Kristóf <[email protected]> Reviewed-by: Rhys Perry <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14929> --- src/amd/vulkan/radv_private.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h index 05240d07a2c..c1431e55704 100644 --- a/src/amd/vulkan/radv_private.h +++ b/src/amd/vulkan/radv_private.h @@ -2018,6 +2018,12 @@ radv_pipeline_has_mesh(const struct radv_pipeline *pipeline) return !!pipeline->shaders[MESA_SHADER_MESH]; } +static inline bool +radv_pipeline_has_task(const struct radv_pipeline *pipeline) +{ + return !!pipeline->shaders[MESA_SHADER_TASK]; +} + bool radv_pipeline_has_ngg_passthrough(const struct radv_pipeline *pipeline); bool radv_pipeline_has_gs_copy_shader(const struct radv_pipeline *pipeline);
