From: Dave Airlie Date: Thu, 30 Mar 2017 06:44:20 +0000 (+0100) Subject: radv: add helper function to denote if tess is enabled on a pipeline. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0604284e3f5d95845a1203dd1a9abc3d9849fe39;p=mesa.git radv: add helper function to denote if tess is enabled on a pipeline. Reviewed-by: Bas Nieuwenhuizen Signed-off-by: Dave Airlie --- diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h index e8f14dcfe02..33f35245792 100644 --- a/src/amd/vulkan/radv_private.h +++ b/src/amd/vulkan/radv_private.h @@ -982,6 +982,11 @@ static inline bool radv_pipeline_has_gs(struct radv_pipeline *pipeline) return pipeline->shaders[MESA_SHADER_GEOMETRY] ? true : false; } +static inline bool radv_pipeline_has_tess(struct radv_pipeline *pipeline) +{ + return pipeline->shaders[MESA_SHADER_TESS_EVAL] ? true : false; +} + struct radv_graphics_pipeline_create_info { bool use_rectlist; bool db_depth_clear;