[Mesa-dev] [PATCH 1/2] gallium/rbug: unlock a mutex in rbug_create_query
Marek Olšák
maraeo at gmail.com
Mon Sep 22 14:18:43 PDT 2014
From: Marek Olšák <marek.olsak at amd.com>
---
src/gallium/drivers/rbug/rbug_context.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/gallium/drivers/rbug/rbug_context.c b/src/gallium/drivers/rbug/rbug_context.c
index 71bc216..026c132 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
--
1.9.1
More information about the mesa-dev
mailing list