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

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

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

On Tue, May 23, 2017 at 11:03 AM, Vivek Roy <vivekroyandroid@xxxxxxxxx> wrote:

For now can you help with this one question which a lot of people have been
asking me and I have little experience to comment on it (maybe down the road
I'll have an answer to it, but presently don't) : Can the DRM drivers be
packaged as a separate package which the users can install if they want to,
or is it too tied to the kernel that it has to be included in the main tree?

I don't think it has to be compiled statically into the kernel. The
drivers are all driven by a set of function pointer hooks that you
implement to service each operation (i.e. read, write, ioctl, etc). So
it should be able to live as an add-on that the kernel can load.

I don't know much about the Haiku driver model though, so maybe
someone else can weigh in on this.

All of our drivers are dynamically loaded like this, so this shouldn't be a 
problem.
The libDRM itself could be compiled into a kernel module, also dynamically 
loaded on the driver's request.

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.

-- 
Adrien.

Other related posts: