mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-05 00:20:11 +01:00
radeonsi: fix gl_PatchVerticesIn for tessellation evaluation shader
This fixes: GL45-CTS.tessellation_shader.tessellation_control_to_tessellation_evaluation .gl_PatchVerticesIn Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
a4fa215058
commit
03708deed2
1 changed files with 6 additions and 1 deletions
|
|
@ -1730,7 +1730,12 @@ static void declare_system_value(
|
|||
}
|
||||
|
||||
case TGSI_SEMANTIC_VERTICESIN:
|
||||
value = unpack_param(ctx, SI_PARAM_TCS_OUT_LAYOUT, 26, 6);
|
||||
if (ctx->type == PIPE_SHADER_TESS_CTRL)
|
||||
value = unpack_param(ctx, SI_PARAM_TCS_OUT_LAYOUT, 26, 6);
|
||||
else if (ctx->type == PIPE_SHADER_TESS_EVAL)
|
||||
value = unpack_param(ctx, SI_PARAM_TCS_OFFCHIP_LAYOUT, 9, 7);
|
||||
else
|
||||
assert(!"invalid shader stage for TGSI_SEMANTIC_VERTICESIN");
|
||||
break;
|
||||
|
||||
case TGSI_SEMANTIC_TESSINNER:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue