From: Dave Airlie <airl...@redhat.com> Signed-off-by: Dave Airlie <airl...@redhat.com> --- src/amd/vulkan/radv_private.h | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h index 0b8f50a..7e8c5fc 100644 --- a/src/amd/vulkan/radv_private.h +++ b/src/amd/vulkan/radv_private.h @@ -925,6 +925,11 @@ struct radv_pipeline { }; }; +static inline bool radv_pipeline_has_gs(struct radv_pipeline *pipeline) +{ + return pipeline->shaders[MESA_SHADER_GEOMETRY] ? true : false; +} + struct radv_graphics_pipeline_create_info { bool use_rectlist; bool db_depth_clear; -- 2.9.3 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev