render/vulkan: Add unit-test for staging buffer

Signed-off-by: Kenny Levinsen <kl@kl.wtf>
This commit is contained in:
Kenny Levinsen 2026-04-12 17:47:32 +02:00 committed by Félix Poisot
parent 4ee896af99
commit b01fdc3164
2 changed files with 222 additions and 0 deletions

View file

@ -1,8 +1,30 @@
# Used to test internal symbols
lib_wlr_internal = static_library(
versioned_name + '-internal',
objects: lib_wlr.extract_all_objects(recursive: false),
dependencies: wlr_deps,
include_directories: [wlr_inc],
install: false,
)
test(
'box',
executable('test-box', 'test_box.c', dependencies: wlroots),
)
if features.get('vulkan-renderer')
test(
'vulkan_stage_buffer',
executable(
'test-vulkan-stage-buffer',
'test_vulkan_stage_buffer.c',
link_with: lib_wlr_internal,
dependencies: wlr_deps,
include_directories: wlr_inc,
),
)
endif
benchmark(
'scene',
executable('bench-scene', 'bench_scene.c', dependencies: wlroots),