gallium/mesa: enhance PIPE_CAP_CLIP_PLANES to support override number
authorDave Airlie <airlied@redhat.com>
Thu, 30 Dec 2021 01:09:07 +0000 (11:09 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 30 Dec 2021 06:07:42 +0000 (16:07 +1000)
commitaf3cbc53794710bdd417057bf49334d9056a77fc
tree4b19dfb23fcc5b50b14f44eacc2d90138963c03e
parentf1c1fcfdce45280ab13e70e246d0c662dfe6830d
gallium/mesa: enhance PIPE_CAP_CLIP_PLANES to support override number

There exists hardware intel gen4 specifically that has only 6 clip planes
but supports GLSL 1.30. This enhances the CAP so that the current values
of 0,1 remain the same, but giving it a larger number will override the
max.

This allows the gen4 intel to set this to 6 and leave everyone else alone.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14344>
docs/gallium/screen.rst
src/mesa/state_tracker/st_extensions.c