radv: Use control shader presence for detecting tess.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 19 Oct 2017 23:42:34 +0000 (01:42 +0200)
committerDave Airlie <airlied@redhat.com>
Fri, 20 Oct 2017 05:11:10 +0000 (06:11 +0100)
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_private.h

index acfe9d37ba4c7798c015916ce4d01236248e65f6..10b7983760d8f93726c44870e90f9bb59371efa5 100644 (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,