chiark / gitweb /
terminal/grdrm: force deep modeset on enter
authorDavid Herrmann <dh.herrmann@gmail.com>
Sat, 11 Oct 2014 16:49:20 +0000 (18:49 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Sat, 11 Oct 2014 16:49:20 +0000 (18:49 +0200)
commitf08f302732c0597c83ec6b8022aa82faffb116f9
treedb9b20c8db2c15e3f57457a69e8f9c5cb1bad2ed
parent76253e73f9c9c24fec755e485516f3b55d0707b4
terminal/grdrm: force deep modeset on enter

Usually, when our session is activated (or re-configurated) we should be
able to try a page-flip to our buffer. The kernel driver should reject it
if it is incompatible. As it turns out, drivers don't do this. Therefore,
we now force a deep modeset if we're not sure what mode is set.

This has the side-effect that we might get glitches on session-switches
(depending on driver behavior). However, there's no way around this and it
is what everyone does so far. Most drivers still detect if we keep the
mode and so don't touch the clocks. Therefore, we just get a regular async
flip.
src/libsystemd-terminal/grdev-drm.c