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)