summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/varray.c
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2017-04-06 11:00:15 +1000
committerTimothy Arceri <[email protected]>2017-04-07 08:02:54 +1000
commit31cb6fd0a3069ac7c03c1ce28b2f24d8bb9a4154 (patch)
tree5dec845e2b118767a4ebb740d0558e30235bf37a /src/mesa/main/varray.c
parentc9c39812b91c8104bc0bea16053312547846249c (diff)
mesa: stop abstracting buffer object hashtable locking
This doesn't do anything useful so just remove it. Reviewed-by: Matt Turner <[email protected]> Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/mesa/main/varray.c')
-rw-r--r--src/mesa/main/varray.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c
index af5abc8e83c..13126957796 100644
--- a/src/mesa/main/varray.c
+++ b/src/mesa/main/varray.c
@@ -1884,7 +1884,7 @@ vertex_array_vertex_buffers(struct gl_context *ctx,
* their parameters are valid and no other error occurs."
*/
- _mesa_begin_bufferobj_lookups(ctx);
+ _mesa_HashLockMutex(ctx->Shared->BufferObjects);
for (i = 0; i < count; i++) {
struct gl_buffer_object *vbo;
@@ -1935,7 +1935,7 @@ vertex_array_vertex_buffers(struct gl_context *ctx,
vbo, offsets[i], strides[i]);
}
- _mesa_end_bufferobj_lookups(ctx);
+ _mesa_HashUnlockMutex(ctx->Shared->BufferObjects);
}