Subject: Switching mode with XMir

From: Thomas Hellstrom <[email-masked]>
Date: Mon, 09 Dec 2013 11:43:22 +0100

Hi!

Is there any documentation on how modeswitching with XMir is done, and 
by that I mean
what mechanism is used to resize the root pixmap?

I assume the xf86Crtc system is completely bypassed?

Is SwitchMode and ValidMode ever called, or is XMir simply calling 
modifyPixmapHeader on the root pixmap
to switch modes?

Any insight would be appreciated.

Thanks,
Thomas Hellström, VMware

---

From: Daniel van Vugt <[email-masked]>
Date: Wed, 11 Dec 2013 09:55:16 +0800

Thomas,

XMir is a relatively small thing. There is no documentation specifically 
for XMir, but I think you will find answers in:
 
https://github.com/RAOF/xserver/blob/vladmir-upstreaming/hw/xfree86/xmir/xmir-output.c
or more generally:
    https://github.com/RAOF/xserver/tree/vladmir-upstreaming/hw/xfree86/xmir

There are some known issues with XMir mode switching, listed here:
    https://bugs.launchpad.net/xmir/+bugs?field.tag=multimonitor

Further questions specifically about XMir? Chris Halse Rogers is the 
expert (and author).

- Daniel

---

From: Thomas Hellstrom <[email-masked]>
Date: Wed, 11 Dec 2013 08:07:55 +0100

On 12/11/2013 02:55 AM, Daniel van Vugt wrote:
> Thomas,
>
> XMir is a relatively small thing. There is no documentation 
> specifically for XMir, but I think you will find answers in:

Thanks for the pointers. I thought that XMir would be a suitable 
application to fire up on Mir/vmwgfx since I would then be
able to check both that Mir is running reasonably well with a typical 
client and that XMir on vmwgfx is OK performance-wise, which will 
benefit any X implementation on top of Mir I guess.

/Thomas

>
> https://urldefense.proofpoint.com/v1/url?u=https://github.com/RAOF/xserver/blob/vladmir-upstreaming/hw/xfree86/xmir/xmir-output.c&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=l5Ago9ekmVFZ3c4M6eauqrJWGwjf6fTb%2BP3CxbBFkVM%3D%0A&m=Fn8KSR%2FmC%2Bv3NJplYeBEJVzJX4CKeuglxz4GK0gfxOg%3D%0A&s=37a78b41d204329d6ee595b2b7e950ed8594a95b8c793732f28ca142c7e2106e 
>
> or more generally:
> https://urldefense.proofpoint.com/v1/url?u=https://github.com/RAOF/xserver/tree/vladmir-upstreaming/hw/xfree86/xmir&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=l5Ago9ekmVFZ3c4M6eauqrJWGwjf6fTb%2BP3CxbBFkVM%3D%0A&m=Fn8KSR%2FmC%2Bv3NJplYeBEJVzJX4CKeuglxz4GK0gfxOg%3D%0A&s=9b4f90d981e31ee640216d6fa2d44b24f6bd1ca1794d753d1afcc04d098d3847
>
> https://urldefense.proofpoint.com/v1/url?u=https://bugs.launchpad.net/xmir/%2Bbugs?field.tag%3Dmultimonitor&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=l5Ago9ekmVFZ3c4M6eauqrJWGwjf6fTb%2BP3CxbBFkVM%3D%0A&m=Fn8KSR%2FmC%2Bv3NJplYeBEJVzJX4CKeuglxz4GK0gfxOg%3D%0A&s=cf70b599a93f87e9124307d016079dbca02982217071e78584b2ec9900337158
>