Alan Hourihane wrote:
> 
> Jens,
> 
> Are we moving the files in
> 
> xc/programs/Xserver/hw/xfree86/os-support
> 
> into their relevant ddx drivers directory ?

If you are specifically asking about the xf86drm<DriverName>.h files in
that directory, we certainly could.  There is a fair amount of cleanup
that can be done now that we down to two layers.  I really tried to
minimize my changes to just the semantics of this interface, however, I
notice a couple of areas along the way that could be cleaned up:

I) Right now, we have one os independent header file per driver:

xc/programs/Xserver/hw/xfree86/os-support/xf86drm<driver>.h

and one OS specific header file:

xc/programs/Xserver/hw/xfree86/os-support/*/drm/kernel/<driver>_drm.h

The 2D driver references the first, which is OS independent, the 3D
driver and kernel module reference the second which is not.  It would be
good to get the interface down to one header only, but I think there are
some tough issues to wrestle here.


II) Make drm.h not dependent on <driver>_drm.h.  I think we want new DRM
modules to be added without effecting the device independent headers or
the device independent libraries that load them.  This is probably
straight forward, I just haven't tried it, yet.


III) I think there is alot of room for reorganizing where the headers go
and where they are symbolically linked across the tree.  This will be
straightforward as well, but to avoid doing this twice, we should wait
until after (I) above is resolved (possibly decided to be not done).

--                             /\
         Jens Owen            /  \/\ _    
  [EMAIL PROTECTED]  /    \ \ \   Steamboat Springs, Colorado

_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to