mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
gallium/rbug: unlock a mutex in rbug_create_query
Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
c944866708
commit
91ddf49c87
1 changed files with 5 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue