From feb13b52e328613c6032410efdaa66433d695741 Mon Sep 17 00:00:00 2001 From: The412Banner Date: Tue, 27 Oct 2026 12:27:40 +0000 Subject: [PATCH] Tests: stub main's g_release_unpaced in the DMA-BUF quarantine probe The probe copies release_buffer out of compositor.c; since the merge it reads g_release_unpaced, which the harness did not declare (setUpClass failed to compile). --- tools/tests/test_vk_dmabuf_quarantine.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/tests/test_vk_dmabuf_quarantine.py b/tools/tests/test_vk_dmabuf_quarantine.py index f954a2e23..aeafada3e 100644 --- a/tools/tests/test_vk_dmabuf_quarantine.py +++ b/tools/tests/test_vk_dmabuf_quarantine.py @@ -51,6 +51,9 @@ class VkDmabufQuarantineTest(unittest.TestCase): # One surface per buffer in these scenarios: never shown elsewhere. helpers += ['static int buffer_shown_elsewhere(struct wl_resource *b, const struct surface *e) ' '{ (void)b; (void)e; return 0; }'] + if re.search(r'\bvolatile int g_release_unpaced;', comp): + # Releases stay paced in these scenarios (fps limit -1 sends them at once). + helpers.insert(0, 'static int g_release_unpaced;') query = function(vk, 'vkp_completion_unknown') if 'int vkp_completion_unknown(' in vk else \ 'int vkp_completion_unknown(void) { return g_dev_state == -3; }' comp_functions = [function(comp, names[0])] + helpers + [function(comp, n) for n in names[1:]]