crocus: set max clip planes to 6 for gen4.

Fixes piglit gl-1.0-user-clip-all-planes

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14344>
This commit is contained in:
Dave Airlie 2021-12-30 11:10:46 +10:00
parent af3cbc5379
commit 9130e4564b

View file

@ -294,7 +294,11 @@ crocus_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
} }
case PIPE_CAP_GLSL_FEATURE_LEVEL_COMPATIBILITY: case PIPE_CAP_GLSL_FEATURE_LEVEL_COMPATIBILITY:
return 140; return 140;
case PIPE_CAP_CLIP_PLANES:
if (devinfo->verx10 < 45)
return 6;
else
return 1; // defaults to MAX (8)
case PIPE_CAP_CONSTANT_BUFFER_OFFSET_ALIGNMENT: case PIPE_CAP_CONSTANT_BUFFER_OFFSET_ALIGNMENT:
/* 3DSTATE_CONSTANT_XS requires the start of UBOs to be 32B aligned */ /* 3DSTATE_CONSTANT_XS requires the start of UBOs to be 32B aligned */
return 32; return 32;