mesa/main: one_time_init() -> _mesa_initialize()
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Fri, 24 Apr 2020 13:34:01 +0000 (15:34 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 27 Apr 2020 20:40:01 +0000 (20:40 +0000)
commit57f4c66028786d0efc4074811db79b784c11f9b8
treecdb7b3c222bbd129ad857be4cc8977ed62f4fb1f
parent6ff94735c93b8fcc2a3e5c6eb668b069ac4e0a1a
mesa/main: one_time_init() -> _mesa_initialize()

This exposes the logic inside one_time_init() as _mesa_initialize(), so
drivers who needs to use functionality initialized in one_time_init
earlier if they need.

This means we can reliably use the GLSL type-system when compiling
driver built-in shaders.

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