vc4: lower clip planes in st/mesa

This fixes:
    spec@glsl-1.20@execution@clipping@vs-clip-vertex-enables
with the latest nir_lower_clip changes.

The driver breaks when POS is stored before CLIP_DIST.
That's the only change caused by previous commits according to
VC4_DEBUG=nir.

Reviewed-by: Jose Maria Casanova Crespo <jmcasanova@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32363>
This commit is contained in:
Marek Olšák
2024-11-26 20:14:27 -05:00
committed by Marge Bot
parent c50c9e9bf9
commit c1442030ec

View File

@@ -196,6 +196,7 @@ vc4_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
case PIPE_CAP_TWO_SIDED_COLOR:
case PIPE_CAP_TEXRECT:
case PIPE_CAP_IMAGE_STORE_FORMATTED:
case PIPE_CAP_CLIP_PLANES:
return 0;
case PIPE_CAP_SUPPORTED_PRIM_MODES: