Mesa (master): mesa/st: call _mesa_initialize() early
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Apr 27 21:05:28 UTC 2020
Module: Mesa
Branch: master
Commit: a1e453f504addc6c1c8b270803c85db394356770
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a1e453f504addc6c1c8b270803c85db394356770
Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date: Fri Apr 24 15:41:49 2020 +0200
mesa/st: call _mesa_initialize() early
This allows drivers to reliably do things like using the GLSL
type-system during initialization.
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4765>
---
src/mesa/state_tracker/st_manager.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/mesa/state_tracker/st_manager.c b/src/mesa/state_tracker/st_manager.c
index 67cc46a0c54..ae600737cc6 100644
--- a/src/mesa/state_tracker/st_manager.c
+++ b/src/mesa/state_tracker/st_manager.c
@@ -894,6 +894,8 @@ st_api_create_context(struct st_api *stapi, struct st_manager *smapi,
return NULL;
}
+ _mesa_initialize();
+
/* Create a hash table for the framebuffer interface objects
* if it has not been created for this st manager.
*/
More information about the mesa-commit
mailing list