diff options
author | Marek Olšák <[email protected]> | 2014-04-09 00:26:32 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2014-04-10 20:50:17 +0200 |
commit | ac330d4130cb005c75972da2a701b674413456ba (patch) | |
tree | f917b9391e52cdd292221a35f83f7605ea3dd9f2 /src/gallium/drivers/radeonsi | |
parent | 7c57b01564b987259ec3ce8ed24266290fa60e75 (diff) |
winsys/radeon: fix a race condition between winsys_create and winsys_destroy
This also hides the reference count from drivers.
v2: update the reference count while the mutex is locked in winsys_create
Reviewed-by: Michel Dänzer <[email protected]>
Reviewed-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_pipe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index 09ec60343fe..7dac2872664 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -424,7 +424,7 @@ static void si_destroy_screen(struct pipe_screen* pscreen) if (sscreen == NULL) return; - if (!radeon_winsys_unref(sscreen->b.ws)) + if (!sscreen->b.ws->unref(sscreen->b.ws)) return; r600_destroy_common_screen(&sscreen->b); |