|
|
Subscribe / Log in / New account

Intel and XMir

Intel and XMir

Posted Sep 11, 2013 21:20 UTC (Wed) by Frej (guest, #4165)
In reply to: Intel and XMir by kugel
Parent article: Intel and XMir

The intel driver in question is xf86-video-intel, which is not a mesa driver, it is the xorg driver.

Read up on

wayland.freedesktop.org/architecture.html
http://en.wikipedia.org/wiki/Direct_Rendering_Infrastructure
http://en.wikipedia.org/wiki/Wayland_(display_server_protocol)

Somewhat more technical :)
Part 1&2 of libhybris (using android drivers in wayland).
http://mer-project.blogspot.fi/2013/04/wayland-utilizing-...
http://mer-project.blogspot.fi/2013/05/wayland-utilizing-...


to post comments

Intel and XMir

Posted Sep 12, 2013 6:17 UTC (Thu) by kugel (subscriber, #70540) [Link] (6 responses)

Ah, so there was my confusion. So this all is about the driver for X which needs to modified to work with non-X systems?

Okay, these were probably design with X (and only X) in mind and that simplified the driver development back then. But I still think that a proper thing would be a generic driver API X/Wayland/Mir should be backed by.

Intel and XMir

Posted Sep 12, 2013 8:56 UTC (Thu) by Frej (guest, #4165) [Link]

A more unified driver interface is what you get, when all this is done (10+ years?). Wayland does not have device specific drivers. Instead you need a kernel drm driver and some user space part in mesa (or your own GL implementation).

I think there is some tiny integration needed between Wayland and mesa(or similar) for EGL to work (and similar Mir). But EGL is just another windowing API instead of GLX, not the core parts of opengl itself. Windows has WGL, osx has CGL, EGL is supposed to be portable API.

Intel and XMir

Posted Sep 12, 2013 17:24 UTC (Thu) by glisse (guest, #44837) [Link] (4 responses)

It's not a driver for X that needs to be modified for non X system. It's a driver for X that need to be modified so X emulation in Mir can work.

So right now you have XApp talking to Xserver talk to Xdriver (xf86-video-intel in this case).

When running Xapp inside Mir you have Xapp talking to modified Xserver that talk to Mir and to modified Xdriver (xf86-video-intel in this case).

The modified Xdriver also talk to Mir and to the hardware. Mir in itself needs another completely different driver than xf86-video-intel. In this case a GL driver.

So a native mir app would talk to mir server and to a graphic driver (GL being the obvious and only choice at the moment). Mir server itself would talk to a GL driver.

I tried to make ascii schematic but lwn just swallow space.

Same logic apply to wayland and to allow an Xapp to run on top of modified Xserver that talk to wayland server and to wayland modified Xdriver.

Intel and XMir

Posted Sep 15, 2013 12:59 UTC (Sun) by krake (guest, #55996) [Link] (3 responses)

Do you know if this is a short term hack?

I.e. until fully implemented Mir/Wayland "drivers" forXorg exists or a new X server on top of Mir/Wayland have been written?

Or is it unlikely that XMir/XWayland will ever be just normal clients of their respective display server?

Intel and XMir

Posted Sep 16, 2013 9:15 UTC (Mon) by dgm (subscriber, #49227) [Link] (2 responses)

I'm not sure about Mir, but under Wayland X11 works exactly the same as under Windows or OS X, that is, X11 should implement the drawing primitives using the drawing API at hand. Under Windows that would be GDI and Quartz under OS X. As Wayland does not force you to use any particular drawing API, you could use OpenGL/EGL or a software renderer or whatever.

If Mir does something different it probably means (wild speculation) that they are cutting corers in the name of shipping earlier. But don't quote me on that.

Intel and XMir

Posted Sep 16, 2013 9:32 UTC (Mon) by krake (guest, #55996) [Link] (1 responses)

This was my initial understanding as well.
However, when I asked about this on another site's comment section, someone pointed out that the xwayland branch of the driver contains a similar change:
http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/...

Hence the uncertainty whether this is a short time hack (and removed before merged) or whether it will stay that way for a longer time.

Intel and XMir

Posted Sep 16, 2013 15:58 UTC (Mon) by dgm (subscriber, #49227) [Link]

Interesting. Thanks for pointing this out.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds