Mesa (main): mesa: add a pipe_context pointer to gl context

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Dec 15 14:02:49 UTC 2021


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

Author: Dave Airlie <airlied at redhat.com>
Date:   Thu Dec  9 12:46:51 2021 +1000

mesa: add a pipe_context pointer to gl context

This will be used to move more code over

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

---

 src/mesa/main/mtypes.h              | 1 +
 src/mesa/state_tracker/st_context.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index 3625a1c1029..24cbd5f7197 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -5574,6 +5574,7 @@ struct gl_context
    /*@{*/
    struct vbo_context vbo_context;
    struct st_context *st;
+   struct pipe_context *pipe;
    /*@}*/
 
    /**
diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c
index 7a3caf8eff2..06f6e1868dc 100644
--- a/src/mesa/state_tracker/st_context.c
+++ b/src/mesa/state_tracker/st_context.c
@@ -981,6 +981,7 @@ st_create_context(gl_api api, struct pipe_context *pipe,
       return NULL;
    }
 
+   ctx->pipe = pipe;
    st_debug_init();
 
    if (pipe->screen->get_disk_shader_cache)



More information about the mesa-commit mailing list