diff options
author | Christian König <[email protected]> | 2013-09-25 13:59:56 +0200 |
---|---|---|
committer | Christian König <[email protected]> | 2013-09-25 19:41:31 +0200 |
commit | 4871128e58402385dc6f920884273c003a1124e1 (patch) | |
tree | 90abea06f7ff8f5b8a0b519de6f1d8e53dfea023 /src/gallium/drivers/radeonsi | |
parent | f6e2aa0e12e4ce91dc6f8ac5140d6e1f511ea468 (diff) |
radeon/winsys: keep screen pointer in winsys v2
Only create one screen for each winsys instance.
This helps with buffer sharing and interop handling.
v2: rebased and some minor cleanup
Signed-off-by: Christian König <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r-- | src/gallium/drivers/radeonsi/radeonsi_pipe.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/radeonsi_pipe.c b/src/gallium/drivers/radeonsi/radeonsi_pipe.c index 138268ca418..16ec51fa63b 100644 --- a/src/gallium/drivers/radeonsi/radeonsi_pipe.c +++ b/src/gallium/drivers/radeonsi/radeonsi_pipe.c @@ -648,6 +648,9 @@ static void r600_destroy_screen(struct pipe_screen* pscreen) if (rscreen == NULL) return; + if (!radeon_winsys_unref(rscreen->b.ws)) + return; + if (rscreen->fences.bo) { struct r600_fence_block *entry, *tmp; |