mesa/main: do not store unrecognized extensions in context
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Fri, 24 Apr 2020 12:41:25 +0000 (14:41 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 27 Apr 2020 20:40:01 +0000 (20:40 +0000)
commit05c69752cfda9e66130c64c01f0c8fac613c83ad
tree1c55fb81a3945661c502c0467bb6aa5e50efec01
parent9bc5b2d169d3a3c9d52fc30987eaba52e3b7dc00
mesa/main: do not store unrecognized extensions in context

We process extension overrides only when we initialize the first
context, which means that unrecognized extensions only appear in the
first context created.

Let's instead store them in a global array, so we can apply them to all
contexts. This has the added benefit of making the initialization of the
first context less special, which allows us to clean up code a bit more.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4765>
src/mesa/main/extensions.c
src/mesa/main/mtypes.h