glsl: fix gl_CullDistance lowering from float[8] to vec4[2]

Fixes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7152
Fixes: ad355652c2 ("glsl: Extend lowering pass for gl_ClipDistance to support other arrays")

Signed-off-by: Oleksii Bozhenko oleksii.bozhenko@globallogic.com

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21810>
This commit is contained in:
Oleksii Bozhenko
2023-03-09 14:06:15 +02:00
committed by Marge Bot
parent ec31535ce0
commit bf910c94e0
2 changed files with 2 additions and 3 deletions

View File

@@ -686,10 +686,8 @@ xfb_decl_find_candidate(struct xfb_decl *xfb_decl,
name = xfb_decl->var_name;
break;
case clip_distance:
name = "gl_ClipDistanceMESA";
break;
case cull_distance:
name = "gl_CullDistanceMESA";
name = "gl_ClipDistanceMESA";
break;
case tess_level_outer:
name = "gl_TessLevelOuterMESA";