mesa/st: call _mesa_initialize() early
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Fri, 24 Apr 2020 13:41:49 +0000 (15:41 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 27 Apr 2020 20:40:01 +0000 (20:40 +0000)
This allows drivers to reliably do things like using the GLSL
type-system during initialization.

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

src/mesa/state_tracker/st_manager.c

index 67cc46a0c54ba993afe3923e1de82a8f29423024..ae600737cc687f282e343e4c7bf6c8537720daee 100644 (file)
@@ -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.
     */