From: Bas Nieuwenhuizen Date: Thu, 19 Oct 2017 23:42:34 +0000 (+0200) Subject: radv: Use control shader presence for detecting tess. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6e21b7a2947dc0dd7e8265395a43af516a0622cf;p=mesa.git radv: Use control shader presence for detecting tess. Reviewed-by: Dave Airlie --- diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h index acfe9d37ba4..10b7983760d 100644 --- a/src/amd/vulkan/radv_private.h +++ b/src/amd/vulkan/radv_private.h @@ -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,