summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r300/r300_screen.h
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2011-02-19 00:16:44 +0100
committerMarek Olšák <maraeo@gmail.com>2011-02-19 00:17:27 +0100
commit0b436cf511316d4bf90246a39557900b4b566853 (patch)
tree2bb1f9850eef22452ca65b5439e40c2b2ec41ff3 /src/gallium/drivers/r300/r300_screen.h
parente9e5380f22c230ea1276208baa40c3fe6482b296 (diff)
r300g: fix a possible race when counting contexts
Atomics aren't sufficient here.
Diffstat (limited to 'src/gallium/drivers/r300/r300_screen.h')
-rw-r--r--src/gallium/drivers/r300/r300_screen.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_screen.h b/src/gallium/drivers/r300/r300_screen.h
index c935f55ccb..576f9c1f4a 100644
--- a/src/gallium/drivers/r300/r300_screen.h
+++ b/src/gallium/drivers/r300/r300_screen.h
@@ -52,6 +52,7 @@ struct r300_screen {
/* The number of created contexts to know whether we have multiple
* contexts or not. */
int num_contexts;
+ pipe_mutex num_contexts_mutex;
};