Mesa (main): radv: Add radv_pipeline_has_mesh helper.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Dec 31 13:38:47 UTC 2021
Module: Mesa
Branch: main
Commit: 32bc466dcbcf0cc584a0afaa7702413b30c28de0
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=32bc466dcbcf0cc584a0afaa7702413b30c28de0
Author: Timur Kristóf <timur.kristof at gmail.com>
Date: Thu Oct 28 16:50:06 2021 +0200
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 at gmail.com>
Acked-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13580>
---
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 4226640ae70..b1998ea5ffd 100644
--- a/src/amd/vulkan/radv_private.h
+++ b/src/amd/vulkan/radv_private.h
@@ -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);
More information about the mesa-commit
mailing list