Mesa (master): mesa/main: do not init remap-table per api

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Apr 27 21:05:27 UTC 2020


Module: Mesa
Branch: master
Commit: ac9d30431e2c670ae134e2619be9817a99101e1d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ac9d30431e2c670ae134e2619be9817a99101e1d

Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date:   Fri Apr 24 15:24:05 2020 +0200

mesa/main: do not init remap-table per api

This hasn't really been nessecary since 8386088e3dc ("dispatch: stop
using _mesa_create_exec_table_es1() for GLES1."), when we stopped
diverging the logic here based on the context-API. So let's simplify the
code a bit.

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

---

 src/mesa/main/context.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index 958ac8cb8f0..cf46e1d124b 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -408,10 +408,7 @@ one_time_init( struct gl_context *ctx )
        * unecessary creation/destruction of glsl types.
        */
       glsl_type_singleton_init_or_ref();
-   }
 
-   /* per-API one-time init */
-   if (!(api_init_mask & (1 << ctx->API))) {
       _mesa_init_remap_table();
    }
 



More information about the mesa-commit mailing list