Window scaling (aka owner sizes)

2018-08-26 Thread "Keith Packard"
I'm doing a bit of work to help support applications that want to run at a small fixed size. The 'usual' way to make them visible on our modern desktops is to flip video modes, but that means everything runs at low resolution, plus you get the adventure of switching modes, which can take a long ti

[V2] modesetting: code refactor for PRIME sync

2018-08-26 Thread Jim Qu
The X will be crashed on the system with other DDX driver, such as amdgpu. show the log like: randr: falling back to unsynchronized pixmap sharing (EE) (EE) Backtrace: (EE) 0: /usr/lib/xorg/Xorg (xorg_backtrace+0x4e) (EE) 1: /usr/lib/xorg/Xorg (0x55cb0151a000+0x1b5ce9) (EE) 2: /lib/x86_64-linux-g

[PATCH v2] present: fix freed pointer access

2018-08-26 Thread Lionel Landwerlin
When a vblank has been marked as aborted, it's going to be free in the flip_notify function when stopped. We can't notify it after it's stopped because the pointer is invalid. Valgrind backtrace: ==5331== Invalid read of size 8 ==5331==at 0x212B4D: present_vblank_notify (present_vblank.c:34)