r300g: fix a possible race when counting contexts
authorMarek Olšák <maraeo@gmail.com>
Fri, 18 Feb 2011 23:16:44 +0000 (00:16 +0100)
committerMarek Olšák <maraeo@gmail.com>
Fri, 18 Feb 2011 23:17:27 +0000 (00:17 +0100)
commit0b436cf511316d4bf90246a39557900b4b566853
tree2bb1f9850eef22452ca65b5439e40c2b2ec41ff3
parente9e5380f22c230ea1276208baa40c3fe6482b296
r300g: fix a possible race when counting contexts

Atomics aren't sufficient here.
src/gallium/drivers/r300/r300_context.c
src/gallium/drivers/r300/r300_screen.c
src/gallium/drivers/r300/r300_screen.h