Pairing drm_prime_handle_from_fd with close

2013-11-08 Thread Thomas Hellstrom
On 11/08/2013 06:19 PM, Daniel Vetter wrote: > On Fri, Nov 8, 2013 at 11:02 AM, Thomas Hellstrom > wrote: >> 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

Pairing drm_prime_handle_from_fd with close

2013-11-08 Thread Daniel Vetter
On Fri, Nov 8, 2013 at 11:02 AM, Thomas Hellstrom wrote: > 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_

Pairing drm_prime_handle_from_fd with close

2013-11-08 Thread Thomas Hellstrom
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 ad