All of lore.kernel.org
 help / color / mirror / Atom feed
* Pairing drm_prime_handle_from_fd with close
@ 2013-11-08 10:02 Thomas Hellstrom
  2013-11-08 17:19 ` Daniel Vetter
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Hellstrom @ 2013-11-08 10:02 UTC (permalink / raw)
  To: dri-devel@lists.freedesktop.org

Hi!

It seems like prime_handle_from_fd needs to be paired with a GEM_CLOSE 
ioctl instead of a new generic HANDLE_CLOSE ioctl.

This oversight is not really a big problem but there are two solutions:
1) Create a new ioctl called HANDLE_CLOSE or something similar.
2) Use the GEM_CLOSE ioctl, but add a driver callback for drivers that 
are not GEM-aware.

It seems like GEM_CLOSE has already spread into user-space clients, so 
unless someone tell me otherwise, I'll be using
2) for the vmwgfx prime implementation.

Thanks,
Thomas

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-11-08 21:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-08 10:02 Pairing drm_prime_handle_from_fd with close Thomas Hellstrom
2013-11-08 17:19 ` Daniel Vetter
2013-11-08 17:38   ` Thomas Hellstrom

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.