diff options
author | Maarten Lankhorst <[email protected]> | 2014-02-12 14:56:53 +0100 |
---|---|---|
committer | Maarten Lankhorst <[email protected]> | 2014-02-12 14:57:25 +0100 |
commit | fee0686c21c631d96d6042741267a3c218c23ffc (patch) | |
tree | 96cb24b8377f9e0058d1786d24885b078bb9af63 /src/gallium/drivers/nouveau/nv30 | |
parent | 572a8345bfd1d6289a91b64eef92565ef9b3ee55 (diff) |
nouveau: create only 1 shared screen between vdpau and opengl
This fixes bug 73200 "vdpau-GL interop fails due to different screen
objects" in the same way radeon does.
Signed-off-by: Maarten Lankhorst <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau/nv30')
-rw-r--r-- | src/gallium/drivers/nouveau/nv30/nv30_screen.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/nouveau/nv30/nv30_screen.c b/src/gallium/drivers/nouveau/nv30/nv30_screen.c index c027a5f3130..9854708b371 100644 --- a/src/gallium/drivers/nouveau/nv30/nv30_screen.c +++ b/src/gallium/drivers/nouveau/nv30/nv30_screen.c @@ -302,6 +302,9 @@ nv30_screen_destroy(struct pipe_screen *pscreen) { struct nv30_screen *screen = nv30_screen(pscreen); + if (!nouveau_drm_screen_unref(&screen->base)) + return; + if (screen->base.fence.current && screen->base.fence.current->state >= NOUVEAU_FENCE_STATE_EMITTED) { nouveau_fence_wait(screen->base.fence.current); |