From: Mike Blumenkrantz Date: Wed, 9 Aug 2023 11:50:22 +0000 (-0400) Subject: zink: generated tcs is on the tes, not the vs X-Git-Tag: upstream/23.3.3~3604 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=717ad8c5c8d6869f838a7a409a0a246bb22f23fe;p=platform%2Fupstream%2Fmesa.git zink: generated tcs is on the tes, not the vs not sure how I screwed this up Fixes: 4c47d830516 ("zink: use EXT_shader_object to implement generic separate shader precompile") Part-of: --- diff --git a/src/gallium/drivers/zink/zink_program.c b/src/gallium/drivers/zink/zink_program.c index d9abd1aa..fca5a4d 100644 --- a/src/gallium/drivers/zink/zink_program.c +++ b/src/gallium/drivers/zink/zink_program.c @@ -1196,7 +1196,7 @@ create_gfx_program_separable(struct zink_context *ctx, struct zink_shader **stag prog->last_vertex_stage = ctx->last_vertex_stage; if (stages[MESA_SHADER_TESS_EVAL] && !stages[MESA_SHADER_TESS_CTRL]) { - prog->shaders[MESA_SHADER_TESS_CTRL] = stages[MESA_SHADER_VERTEX]->non_fs.generated_tcs; + prog->shaders[MESA_SHADER_TESS_CTRL] = stages[MESA_SHADER_TESS_EVAL]->non_fs.generated_tcs; prog->stages_present |= BITFIELD_BIT(MESA_SHADER_TESS_CTRL); }