diff options
author | Marek Olšák <[email protected]> | 2011-02-19 00:16:44 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2011-02-19 00:17:27 +0100 |
commit | 0b436cf511316d4bf90246a39557900b4b566853 (patch) | |
tree | 2bb1f9850eef22452ca65b5439e40c2b2ec41ff3 /src/gallium/drivers/r300/r300_screen.h | |
parent | e9e5380f22c230ea1276208baa40c3fe6482b296 (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.h | 1 |
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 c935f55ccbf..576f9c1f4a9 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; }; |