From bb71d1092b4bfd026d36855a801e9ed60c263dff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timur=20Krist=C3=B3f?= Date: Tue, 18 Jan 2022 16:39:53 +0100 Subject: [PATCH] radv: Add radv_pipeline_has_task helper. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Timur Kristóf Reviewed-by: Rhys Perry Part-of: --- 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);