clients: add client to test the dma-buf feedback implementation

Simple client to test the dma-buf feedback implementation. This does not
replace the need to implement a dma-buf feedback test that can be run in
the CI. But as we still don't know exactly how to do this, this client
can be helpful to run tests manually.

Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
dev
Leandro Ribeiro 3 years ago
parent 5429302e78
commit 18d9ad98b1
  1. 20
      clients/meson.build
  2. 1387
      clients/simple-dmabuf-feedback.c
  3. 2
      meson_options.txt

@ -50,6 +50,26 @@ simple_clients = [
], ],
'dep_objs': [ dep_wayland_client, dep_libshared ] 'dep_objs': [ dep_wayland_client, dep_libshared ]
}, },
{
'name': 'dmabuf-feedback',
'sources': [
'simple-dmabuf-feedback.c',
'../libweston/pixel-formats.c',
linux_dmabuf_unstable_v1_client_protocol_h,
linux_dmabuf_unstable_v1_protocol_c,
xdg_shell_client_protocol_h,
xdg_shell_protocol_c,
],
'dep_objs': [
dep_wayland_client,
dep_libshared,
dep_pixman,
dep_libdrm,
dependency('libudev', version: '>= 136'),
],
'deps': [ 'egl', 'glesv2', 'gbm' ],
'options': [ 'renderer-gl' ]
},
{ {
'name': 'dmabuf-egl', 'name': 'dmabuf-egl',
'sources': [ 'sources': [

File diff suppressed because it is too large Load Diff

@ -200,7 +200,7 @@ option(
option( option(
'simple-clients', 'simple-clients',
type: 'array', type: 'array',
choices: [ 'all', 'damage', 'im', 'egl', 'shm', 'touch', 'dmabuf-v4l', 'dmabuf-egl' ], choices: [ 'all', 'damage', 'im', 'egl', 'shm', 'touch', 'dmabuf-feedback', 'dmabuf-v4l', 'dmabuf-egl' ],
value: [ 'all' ], value: [ 'all' ],
description: 'Sample clients: simple test programs' description: 'Sample clients: simple test programs'
) )

Loading…
Cancel
Save