summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/glthread_varray.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2020-03-06 14:54:50 -0500
committerMarek Olšák <[email protected]>2020-03-20 23:01:13 -0400
commit15b0719ae2d5cc80c063b1748443392f701bcdce (patch)
tree09738d66190f16c9eb8b053bb843779bd65ecaf9 /src/mesa/main/glthread_varray.c
parent8a4114b9294c8e8f5bb977be47cc7764c9cdf490 (diff)
mesa: put gl_thread_state inside gl_context to remove pointer indirection
Reviewed-by: Timothy Arceri <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4124>
Diffstat (limited to 'src/mesa/main/glthread_varray.c')
-rw-r--r--src/mesa/main/glthread_varray.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mesa/main/glthread_varray.c b/src/mesa/main/glthread_varray.c
index 7a261552202..d246d2d4253 100644
--- a/src/mesa/main/glthread_varray.c
+++ b/src/mesa/main/glthread_varray.c
@@ -42,7 +42,7 @@
static struct glthread_vao *
lookup_vao(struct gl_context *ctx, GLuint id)
{
- struct glthread_state *glthread = ctx->GLThread;
+ struct glthread_state *glthread = &ctx->GLThread;
struct glthread_vao *vao;
assert(id != 0);
@@ -64,7 +64,7 @@ lookup_vao(struct gl_context *ctx, GLuint id)
void
_mesa_glthread_BindVertexArray(struct gl_context *ctx, GLuint id)
{
- struct glthread_state *glthread = ctx->GLThread;
+ struct glthread_state *glthread = &ctx->GLThread;
if (id == 0) {
glthread->CurrentVAO = &glthread->DefaultVAO;
@@ -80,7 +80,7 @@ void
_mesa_glthread_DeleteVertexArrays(struct gl_context *ctx,
GLsizei n, const GLuint *ids)
{
- struct glthread_state *glthread = ctx->GLThread;
+ struct glthread_state *glthread = &ctx->GLThread;
if (!ids)
return;
@@ -114,7 +114,7 @@ void
_mesa_glthread_GenVertexArrays(struct gl_context *ctx,
GLsizei n, GLuint *arrays)
{
- struct glthread_state *glthread = ctx->GLThread;
+ struct glthread_state *glthread = &ctx->GLThread;
if (!arrays)
return;
@@ -137,7 +137,7 @@ _mesa_glthread_GenVertexArrays(struct gl_context *ctx,
void
_mesa_glthread_AttribPointer(struct gl_context *ctx)
{
- struct glthread_state *glthread = ctx->GLThread;
+ struct glthread_state *glthread = &ctx->GLThread;
if (!glthread->vertex_array_is_vbo)
glthread->CurrentVAO->HasUserPointer = true;