[haiku-gsoc] Re: 3D HW accel Repo issues

  • From: "Adrien Destugues" <pulkomandy@xxxxxxxxxxxxx>
  • To: haiku-gsoc@xxxxxxxxxxxxx
  • Date: Tue, 23 May 2017 13:07:05 +0000

23 mai 2017 13:44 "Hamish Morrison" <hamishm53@xxxxxxxxx> a écrit:

On Tue, May 23, 2017 at 12:14 PM, Adrien Destugues
<pulkomandy@xxxxxxxxxxxxx> wrote:

The open question is how much changes the kernel itself will need, as far as 
I can see, nothing
should need to change there except if we decide to implement some Linux-like 
support there - if it
turns out too hard to implement this as a wrapper over the existing APIs.

One of the omissions I did notice is that the Haiku driver interface
does not provide a way for drivers to implement mmap - i.e. when mmap
is called on the driver's file descriptor. So we have to implement
support for this at least.

This is tracked in this ticket:

https://dev.haiku-os.org/ticket/8514

As discussed there, we have other ways to implement memory sharing between 
kernel and userland, used for example by BWindowScreen and BDirectWindow.

This could be enough to get reasonably close to an mmap-like interface.

But extending our drivers hook to allow mmap there is definitely an option and 
would be a welcome addition.

-- 
Adrien.

Other related posts: