mesa: Add PrimitiveRestartFixedIndex to gl_constants
authorNeil Roberts <nroberts@igalia.com>
Thu, 18 Jun 2020 13:48:12 +0000 (15:48 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 22 Jun 2020 12:41:56 +0000 (12:41 +0000)
commit1fc346d2bec83adff7e4ff05b28e8855c54eb603
treeb96e811c50151cd6585a6b921f6cb5103f6a45d9
parentbb5fc90135f682fedfce4cb7712fa418e6b4b95d
mesa: Add PrimitiveRestartFixedIndex to gl_constants

This is a fine-grained subset of the NV_primitive_restart extension that
only uses the fixed indices provided by GLES 3.0. There’s no public
extension to advertise this behaviour so the bool is added to
gl_constants instead of gl_extensions.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed by: Erik Faye-Lund <erik.faye-lund@collabora.com>

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5559>
src/mesa/drivers/dri/i965/intel_extensions.c
src/mesa/main/mtypes.h
src/mesa/main/version.c
src/mesa/state_tracker/st_extensions.c