<div dir="ltr"><div>It's a great question, with a complicated answer. Part of this is the fault of the DRM kernel interface, which is being improved. Part of it is the fault of GL/EGL, which really doesn't have proper multi-GPU support.<br></div><br><div>GPUs are exposed through the kernel as /dev/dri/card* devices, with the first GPU being "card0", the second being "card1", and so on. All the compositors I know of either hardcode "/dev/dri/card0" or look for a "primary GPU".<br><br></div><div>GL/EGL on DRM devices can only be booted up on one card at a time due to the way the interface works. I'm not sure if there's any plans to change this. (It's possible to create multiple EGLDisplays and switch between them
to render, but this is really ridiculous, and EGL_WL_bind_display won't
work with that). That means that you're left with software rendering. Which is totally possible to do, but Weston still doesn't support that.<br><br></div><div>Multi-GPU has been on the radar for a long time. Perhaps the progress of Mantle/GL5 will help solve this on the hardware rendering side. And then we can start implementing it in compositors.<br><br></div><div>There's also, then, lots of technicalities: What happens if I have a surface that's straddled between two outputs -- who renders it? There is a future kernel interface, called DMA-BUF, to allow passing buffers between GPUs like this, which should help solve it.<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 20, 2014 at 5:24 PM, Linux Luser <span dir="ltr"><<a href="mailto:linuxluser@gmail.com" target="_blank">linuxluser@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Xorg has been notorious for it's lack of multi-monitor support. Xinerama was of course shimmed into place to help make one xscreen out of many. Xinerama has had several drawbacks, however, one being performance, which is usually compensated for in the industry by purchasing beefier graphics cards.</div>
<div><br></div><div>Interestingly, XRandR claims to be the Xinerama replacement but doesn't actually do what Xinerama does when multiple GPUs are involved. So right now, it's a bit of mystery as to how to get a single, large desktop spanned across many screens across many GPUs.</div>
<div><br></div><div>My question is, how does Wayland address multiple screens connected from multiple graphics cards? Is this something that is completely and totally handled by the compositor? If so, what compositors support a single dekstop across multiple GPUs using Wayland?</div><span class="HOEnZb"><font color="#888888">
<div><br></div><div><br></div>-- <br>dave<br></font></span></div>
<br>_______________________________________________<br>
wayland-devel mailing list<br>
<a href="mailto:wayland-devel@lists.freedesktop.org">wayland-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/wayland-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/wayland-devel</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br> Jasper<br>
</div>