From 6e21b7a2947dc0dd7e8265395a43af516a0622cf Mon Sep 17 00:00:00 2001 From: Bas Nieuwenhuizen Date: Fri, 20 Oct 2017 01:42:34 +0200 Subject: radv: Use control shader presence for detecting tess. Reviewed-by: Dave Airlie --- src/amd/vulkan/radv_private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- cgit v1.2.3