mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-22 16:10:05 +01:00
Add 'check_flip2' hook for driver to let know the core
about why flipping is not possible ('reason').
If it is because of unsupported buffer format/modifier,
a PresentCompleteNotify event is sent to the client with
the PresentCompleteModeSuboptimalCopy mode.
v2: Check for PresentOptionSuboptimal and check driver version
before using 'check_flip2'.
v3: Only require one of 'check_flip' or 'check_flip2' to be
implemented by the driver.
Refactor reasons list to enum
Signed-off-by: Louis-Francis Ratté-Boulianne <lfrb@collabora.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Acked-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
19 lines
422 B
Meson
19 lines
422 B
Meson
srcs_present = [
|
|
'present.c',
|
|
'present_event.c',
|
|
'present_fake.c',
|
|
'present_fence.c',
|
|
'present_notify.c',
|
|
'present_request.c',
|
|
'present_screen.c',
|
|
]
|
|
|
|
libxserver_present = static_library('libxserver_present',
|
|
srcs_present,
|
|
include_directories: inc,
|
|
dependencies: [
|
|
common_dep,
|
|
dependency('presentproto', version: '>= 1.1')
|
|
],
|
|
c_args: '-DHAVE_XORG_CONFIG_H'
|
|
)
|