diff options
author | Mario Kleiner <mario.kleiner.de@gmail.com> | 2015-06-05 15:36:52 +0200 |
---|---|---|
committer | Ilia Mirkin <imirkin@alum.mit.edu> | 2015-06-28 01:11:38 -0400 |
commit | a98600b0ebdfc8481c168aae6c5670071e22fc29 (patch) | |
tree | 3debd48739241ab0258e0f0ae99b292810a4ec29 /src/gallium/auxiliary/hud/hud_driver_query.c | |
parent | 2a210b797eacd27a556af9c5e0edca940f9486c5 (diff) | |
download | external_mesa3d-a98600b0ebdfc8481c168aae6c5670071e22fc29.zip external_mesa3d-a98600b0ebdfc8481c168aae6c5670071e22fc29.tar.gz external_mesa3d-a98600b0ebdfc8481c168aae6c5670071e22fc29.tar.bz2 |
nouveau: Use dup fd as key in drm-winsys hash table to fix ZaphodHeads.
The dup'ed fd owned by the nouveau_screen for a device node
must also be used as key for the winsys hash table, instead
of using the original fd passed in for a screen, to make
multi-x-screen ZaphodHeads configurations work on nouveau.
The original fd's lifetime differs from that of the nouveau_screen stored
in the hash. The hash key is the fd, and in order to compare hash entries
we fstat them, so the fd must be around for as long as the screen is.
This is an extension of the fix in commit a59f2bb1 (nouveau: dup fd
before passing it to device).
Cc: "10.3 10.4 10.5 10.6" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Diffstat (limited to 'src/gallium/auxiliary/hud/hud_driver_query.c')
0 files changed, 0 insertions, 0 deletions