diff options
author | Marek Olšák <[email protected]> | 2014-09-22 22:12:10 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2014-09-24 14:48:02 +0200 |
commit | 91ddf49c874829aa5f9d561d1e321651992ca127 (patch) | |
tree | 5dac9572bd4d79b9a7b3bfcc0adc9d253bf0df49 /src/gallium/drivers/rbug | |
parent | c94486670805be0f12ade6a7a2e5c324db4cb798 (diff) |
gallium/rbug: unlock a mutex in rbug_create_query
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/drivers/rbug')
-rw-r--r-- | src/gallium/drivers/rbug/rbug_context.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gallium/drivers/rbug/rbug_context.c b/src/gallium/drivers/rbug/rbug_context.c index 71bc2168614..026c132786a 100644 --- a/src/gallium/drivers/rbug/rbug_context.c +++ b/src/gallium/drivers/rbug/rbug_context.c @@ -141,12 +141,14 @@ rbug_create_query(struct pipe_context *_pipe, { struct rbug_context *rb_pipe = rbug_context(_pipe); struct pipe_context *pipe = rb_pipe->pipe; + struct pipe_query *query; pipe_mutex_lock(rb_pipe->call_mutex); - return pipe->create_query(pipe, - query_type, - index); + query = pipe->create_query(pipe, + query_type, + index); pipe_mutex_unlock(rb_pipe->call_mutex); + return query; } static void |