panfrost: Disable PIPE_CAP_PRIMITIVE_RESTART on v9
authorAlyssa Rosenzweig <alyssa@collabora.com>
Thu, 7 Apr 2022 14:32:01 +0000 (10:32 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 7 Apr 2022 15:11:04 +0000 (15:11 +0000)
commit30c14f54cf2bbf86f3d8f16a3d46edad6d0fce7c
tree3aefdbefbdfe3c8d3c7f79aa4798f29a6eaccb4a
parentdd735bcb698d053c33c311d9cc382068efa4e54a
panfrost: Disable PIPE_CAP_PRIMITIVE_RESTART on v9

Valhall removed the ability to set an explicit primitive restart index as
required by desktop OpenGL, in favour of fixed primitive restart indices only as
required by OpenGL ES.

Set the CAPs accordingly so that mesa/st lowers unusual primitive restart
indices at draw call time.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15795>
src/gallium/drivers/panfrost/pan_screen.c