radv: Use control shader presence for detecting tess.

Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
Bas Nieuwenhuizen 2017-10-20 01:42:34 +02:00 committed by Dave Airlie
parent 5bc5e07d81
commit 6e21b7a294

View file

@ -1122,7 +1122,7 @@ static inline bool radv_pipeline_has_gs(struct radv_pipeline *pipeline)
static inline bool radv_pipeline_has_tess(struct radv_pipeline *pipeline)
{
return pipeline->shaders[MESA_SHADER_TESS_EVAL] ? true : false;
return pipeline->shaders[MESA_SHADER_TESS_CTRL] ? true : false;
}
struct ac_userdata_info *radv_lookup_user_sgpr(struct radv_pipeline *pipeline,