From: bugzilla-daemon-CC+yJ3UmIYqDUpFQwHEjaQ@public.gmane.org
Subject: [Bug 73200] vdpau-GL interop fails due to different
screen objects
Date: Thu, 06 Feb 2014 16:36:06 +0000
Message-ID:
References:
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="===============0321653170=="
Return-path:
In-Reply-To:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Sender: nouveau-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Errors-To: nouveau-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
To: nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
List-Id: nouveau.vger.kernel.org
--===============0321653170==
Content-Type: multipart/alternative; boundary="1391704565.DaFf11dA1.20284"; charset="us-ascii"
--1391704565.DaFf11dA1.20284
Date: Thu, 6 Feb 2014 16:36:05 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
https://bugs.freedesktop.org/show_bug.cgi?id=73200
--- Comment #7 from Emil Velikov ---
(In reply to comment #6)
> Created attachment 93520 [details] [review]
> cache dri fd
>
> Based on the radeon version, cache inode major/minor to only create a single
> screen.
>
> Does this fix things?
Haven't tested it, but noticed a couple of interesting things
* util_hash_table_create can fail
fd_tab = util_hash_table_create(hash_fd, compare_fd);
+ assert(fd_tab);
* if screen fails, we are at the mercy of the compiler if we null ptr deref or
not
+ if (screen)
+ util_hash_table_set(fd_tab, intptr_to_pointer(fd), screen);
+ return &screen->base;
+ if (!screen)
+ return NULL;
+ util_hash_table_set(fd_tab, intptr_to_pointer(fd), screen);
+ return &screen->base;
* nouveau_drm_screen_unref might need a prototype to build.
* drop the fd_tab check in nouveau_drm_screen_unref. it must be non NULL at
this point
* fold nouveau_drm_screen_unref uses into nouveau_screen_fini()
--
You are receiving this mail because:
You are the assignee for the bug.
--1391704565.DaFf11dA1.20284
Date: Thu, 6 Feb 2014 16:36:05 +0000
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
Comment # 7
on bug 73200
from Emil Velikov
(In reply to comment #6)
> Created attachment 93520 [details] [review] [review]
> cache dri fd
>
> Based on the radeon version, cache inode major/minor to only create a single
> screen.
>
> Does this fix things?
Haven't tested it, but noticed a couple of interesting things
* util_hash_table_create can fail
fd_tab = util_hash_table_create(hash_fd, compare_fd);
+ assert(fd_tab);
* if screen fails, we are at the mercy of the compiler if we null ptr deref or
not
+ if (screen)
+ util_hash_table_set(fd_tab, intptr_to_pointer(fd), screen);
+ return &screen->base;
+ if (!screen)
+ return NULL;
+ util_hash_table_set(fd_tab, intptr_to_pointer(fd), screen);
+ return &screen->base;
* nouveau_drm_screen_unref might need a prototype to build.
* drop the fd_tab check in nouveau_drm_screen_unref. it must be non NULL at
this point
* fold nouveau_drm_screen_unref uses into nouveau_screen_fini()
You are receiving this mail because:
- You are the assignee for the bug.
--1391704565.DaFf11dA1.20284--
--===============0321653170==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Nouveau mailing list
Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
http://lists.freedesktop.org/mailman/listinfo/nouveau
--===============0321653170==--