radv: add helper function to denote if tess is enabled on a pipeline.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
Dave Airlie 2017-03-30 07:44:20 +01:00
parent 97e0ff30c0
commit 0604284e3f

View file

@ -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;