winsys/radeon: fix a race condition between 2 calls to radeon_winsys_create
authorMarek Olšák <marek.olsak@amd.com>
Tue, 8 Apr 2014 21:36:53 +0000 (23:36 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 10 Apr 2014 18:50:17 +0000 (20:50 +0200)
commit7c57b01564b987259ec3ce8ed24266290fa60e75
tree12e9a7753650e96cdf883c46ddbf7d830b13db01
parentb5ebfc33b8d44de9947ace7cbb7fde1625e6c97f
winsys/radeon: fix a race condition between 2 calls to radeon_winsys_create

This fixes random crashes of: piglit/glx-multithread-shader-compile.

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/winsys/radeon/drm/radeon_drm_winsys.c