mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-22 07:02:28 +00:00
8e34692250
This new renderer is implemented with the existing wlr_renderer API (which is known to be sub-optimal for some operations). It's not used by default, but users can opt-in by setting WLR_RENDERER=vulkan. The renderer depends on VK_EXT_image_drm_format_modifier and VK_EXT_physical_device_drm. Co-authored-by: Simon Ser <contact@emersion.fr> Co-authored-by: Jan Beich <jbeich@FreeBSD.org>
34 lines
660 B
Meson
34 lines
660 B
Meson
renderers = get_option('renderers')
|
|
if 'auto' in renderers and get_option('auto_features').enabled()
|
|
renderers = ['gles2', 'vulkan']
|
|
elif 'auto' in renderers and get_option('auto_features').disabled()
|
|
renderers = []
|
|
endif
|
|
|
|
wlr_files += files(
|
|
'dmabuf.c',
|
|
'drm_format_set.c',
|
|
'pixel_format.c',
|
|
'swapchain.c',
|
|
'wlr_renderer.c',
|
|
'wlr_texture.c',
|
|
)
|
|
|
|
egl = dependency('egl', required: 'gles2' in renderers)
|
|
if egl.found()
|
|
wlr_deps += egl
|
|
wlr_files += files('egl.c')
|
|
endif
|
|
|
|
if 'gles2' in renderers or 'auto' in renderers
|
|
subdir('gles2')
|
|
endif
|
|
|
|
if 'vulkan' in renderers or 'auto' in renderers
|
|
subdir('vulkan')
|
|
endif
|
|
|
|
subdir('pixman')
|
|
|
|
subdir('allocator')
|