Mesa (master): mesa: use locked version of HashWalk for xfb objects
Timothy Arceri
tarceri at kemper.freedesktop.org
Mon Apr 24 23:59:05 UTC 2017
Module: Mesa
Branch: master
Commit: 347fe24f82f01511b265aaa398f9607b2dee0e45
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=347fe24f82f01511b265aaa398f9607b2dee0e45
Author: Timothy Arceri <tarceri at itsqueeze.com>
Date: Mon Apr 24 15:59:24 2017 +1000
mesa: use locked version of HashWalk for xfb objects
>From Chapter 5 'Shared Objects and Multiple Contexts' of
the OpenGL 4.5 spec:
"Objects which contain references to other objects include
framebuffer, program pipeline, query, transform feedback,
and vertex array objects. Such objects are called container
objects and are not shared"
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>
---
src/mesa/main/transformfeedback.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mesa/main/transformfeedback.c b/src/mesa/main/transformfeedback.c
index 3c72674d6c..c3aa61c2f6 100644
--- a/src/mesa/main/transformfeedback.c
+++ b/src/mesa/main/transformfeedback.c
@@ -72,8 +72,8 @@ _mesa_transform_feedback_is_using_program(struct gl_context *ctx,
callback_data.found = false;
callback_data.prog = shProg->last_vert_prog;
- _mesa_HashWalk(ctx->TransformFeedback.Objects,
- active_xfb_object_references_program, &callback_data);
+ _mesa_HashWalkLocked(ctx->TransformFeedback.Objects,
+ active_xfb_object_references_program, &callback_data);
/* Also check DefaultObject, as it's not in the Objects hash table. */
active_xfb_object_references_program(0, ctx->TransformFeedback.DefaultObject,
More information about the mesa-commit
mailing list