Skip to content

egl: move `_eglDriver` to the stack and drop initialization mutex

Eric Engestrom requested to merge eric/mesa:egl-driver-stack into master

There's exactly one _eglDriver per process, so there's no need to allocate it from the heap, a stack variable is enough.

As for dropping the init mutex, _eglInitDriver() simply assigns a static list of function to a static list of members, so any race would be have no effect.

Merge request reports