On Wed, Apr 20, 2011 at 1:25 AM, Arnd Bergmann arnd@arndb.de wrote:
On Wednesday 20 April 2011 03:52:53 Clark, Rob wrote:
From DRI perspective.. I guess the global buffer name is restricted to a 4 byte integer, unless you change the DRI proto..
I still like the idea of using file handles to pass the buffers between kernel subsystems. Maybe there could be an ioctl to encapsulate a buffer from DRI in a file so we can give it to another subsystem, and/or an ioctl to register a buffer from a file handle with DRI.
I know GEM explicitly avoided fd's.. but, I think if it is possible to create buffers w/ a non-fd based handle, and then later when it is decided the buffer needs to be shared, create a fd (ie. instead of DRM_IOCTL_GEM_FLINK) then I guess it should be ok..
(I guess in the end, Robert is correct that we can rev the DRI protocol if needed.. although I think it should be avoided unless there is a good reason)
BR, -R