Module: Mesa Branch: main Commit: b0cdd5a1d2733a9a8d124e379147a7f29be6d625 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b0cdd5a1d2733a9a8d124e379147a7f29be6d625
Author: Tapani Pälli <[email protected]> Date: Tue Apr 4 10:15:29 2023 +0300 anv: check for MESA_SHADER_TESS_CTRL with get_tcs_prog_data Fixes: 86d931724db ("anv: Implement Wa_14015297576") Signed-off-by: Tapani Pälli <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22282> --- src/intel/vulkan/gfx8_cmd_buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/vulkan/gfx8_cmd_buffer.c b/src/intel/vulkan/gfx8_cmd_buffer.c index 29dc23ea025..f9c13954da9 100644 --- a/src/intel/vulkan/gfx8_cmd_buffer.c +++ b/src/intel/vulkan/gfx8_cmd_buffer.c @@ -215,7 +215,7 @@ static UNUSED bool geom_or_tess_prim_id_used(struct anv_graphics_pipeline *pipeline) { const struct brw_tcs_prog_data *tcs_prog_data = - anv_pipeline_has_stage(pipeline, MESA_SHADER_TESS_EVAL) ? + anv_pipeline_has_stage(pipeline, MESA_SHADER_TESS_CTRL) ? get_tcs_prog_data(pipeline) : NULL; const struct brw_tes_prog_data *tes_prog_data = anv_pipeline_has_stage(pipeline, MESA_SHADER_TESS_EVAL) ?
