Vasilis Manetas
bfa486c2aa
Hand every queue submission to the driver's own submit thread on Linux, so RADV's vkQueueSubmit2 leaves the replaying thread.
...
Mesa's Vulkan drivers keep timeline semaphores as kernel sync objects, and their queues submit on the calling thread unless a submission waits on a value not submitted yet. The replay hands a part of the frame to the queue each time it splits one off (vk_exec.c maybe_split), so every such vkQueueSubmit2, with the command stream's checks and the kernel's ioctl, ran inside the replay, the thread that limits the frame rate on an RX 6800 XT under RADV.
MESA_VK_ENABLE_SUBMIT_THREAD=1 sends every submission to a thread of the queue's own. vk_device.c mesa_submit_thread sets it before any thread can load the driver, unless the environment sets it already. submit_thread in nx2navi.ini (NX2NAVI_SUBMIT_THREAD) is 1 by default on Linux and 0 on Windows; 0 leaves the driver's own choice. On a Mesa driver the log says which one applies.
Kokiri Forest, 0.9.1, RX 6800 XT, Mesa 26.2.6, 3 pairs of 45 s runs of one build with the setting on and off: the replay took 13.9 ms a frame against 15.0, lower in every pair; frames over 25 ms fell from 910 to 406; the frame rate went from 40.0 to 40.8 fps, within the runs' noise.
2026-11-12 12:09:37 -05:00
..
2026-11-11 00:39:50 -05:00
2026-11-11 08:18:55 -05:00
2026-11-12 12:09:37 -05:00
2026-11-11 15:09:16 -05:00
2026-11-12 08:23:25 -05:00
2026-11-11 00:39:50 -05:00
2026-11-10 23:16:17 -05:00
2026-11-07 05:04:38 -05:00
2026-11-07 05:04:38 -05:00
2026-11-12 02:11:46 -05:00
2026-11-10 22:59:02 -05:00
2026-11-09 08:19:19 -05:00
2026-11-07 05:04:40 -05:00
2026-11-07 05:04:40 -05:00
2026-11-10 00:21:31 -05:00
2026-11-07 05:04:40 -05:00
2026-11-07 05:04:40 -05:00
2026-11-12 03:54:21 -05:00
2026-11-10 00:21:31 -05:00
2026-11-11 18:10:38 -05:00
2026-11-11 00:39:50 -05:00
2026-11-11 00:20:22 -05:00
2026-11-10 15:14:25 -05:00
2026-11-12 12:09:37 -05:00
2026-11-11 00:11:41 -05:00
2026-11-09 08:09:25 -05:00
2026-11-07 05:04:38 -05:00
2026-11-11 00:11:41 -05:00
2026-11-11 00:11:41 -05:00
2026-11-11 00:11:41 -05:00
2026-11-11 00:11:41 -05:00
2026-11-11 00:11:41 -05:00
2026-11-11 00:11:41 -05:00
2026-11-11 00:11:41 -05:00
2026-11-11 00:11:41 -05:00
2026-11-11 00:11:41 -05:00
2026-11-11 00:11:41 -05:00
2026-11-11 00:11:41 -05:00
2026-11-11 00:20:22 -05:00
2026-11-07 05:04:40 -05:00
2026-11-11 13:19:24 -05:00
2026-11-11 12:53:59 -05:00
2026-11-08 01:25:12 -05:00
2026-11-09 09:10:36 -05:00
2026-11-11 04:35:30 -05:00
2026-11-11 04:35:30 -05:00
2026-11-07 05:04:38 -05:00
2026-11-09 03:34:46 -05:00
2026-11-12 12:09:37 -05:00
2026-11-12 12:09:37 -05:00
2026-11-07 05:04:40 -05:00
2026-11-09 13:13:43 -05:00
2026-11-09 13:13:43 -05:00
2026-11-11 00:11:41 -05:00
2026-11-12 03:54:21 -05:00
2026-11-11 00:40:20 -05:00
2026-11-11 00:11:41 -05:00
2026-11-11 14:06:16 -05:00
2026-11-09 23:42:12 -05:00
2026-11-11 18:10:38 -05:00
2026-11-08 00:34:29 -05:00
2026-11-09 08:09:26 -05:00
2026-11-11 19:38:17 -05:00
2026-11-07 05:04:38 -05:00
2026-11-11 19:38:18 -05:00
2026-11-11 19:38:18 -05:00
2026-11-07 05:04:38 -05:00
2026-11-12 02:15:35 -05:00
2026-11-10 23:24:12 -05:00
2026-11-12 03:54:21 -05:00
2026-11-07 05:04:40 -05:00
2026-11-09 08:21:07 -05:00
2026-11-09 08:21:07 -05:00
2026-11-09 08:21:07 -05:00
2026-11-10 12:48:50 -05:00
2026-11-10 12:48:50 -05:00
2026-11-09 03:34:46 -05:00
2026-11-07 05:04:38 -05:00
2026-11-09 03:34:46 -05:00
2026-11-07 05:04:38 -05:00
2026-11-07 05:04:38 -05:00
2026-11-11 19:38:18 -05:00
2026-11-11 02:36:54 -05:00
2026-11-11 00:39:50 -05:00
2026-11-07 05:04:40 -05:00
2026-11-09 21:54:40 -05:00
2026-11-10 23:16:17 -05:00
2026-11-12 05:29:44 -05:00
2026-11-09 20:48:10 -05:00
2026-11-11 19:38:18 -05:00
2026-11-10 10:26:51 -05:00
2026-11-10 10:26:51 -05:00
2026-11-11 06:01:39 -05:00
2026-11-11 04:48:36 -05:00
2026-11-11 19:38:18 -05:00
2026-11-11 00:39:08 -05:00
2026-11-07 09:26:51 -05:00
2026-11-10 23:14:00 -05:00
2026-11-08 15:51:48 -05:00
2026-11-07 05:04:40 -05:00
2026-11-11 05:58:43 -05:00
2026-11-11 19:38:17 -05:00
2026-11-11 05:58:32 -05:00
2026-11-08 15:51:48 -05:00
2026-11-09 08:09:25 -05:00
2026-11-08 15:51:48 -05:00
2026-11-07 05:04:40 -05:00
2026-11-12 12:09:37 -05:00
2026-11-12 12:09:37 -05:00
2026-11-11 02:36:54 -05:00
2026-11-11 00:39:58 -05:00
2026-11-07 05:04:40 -05:00
2026-11-07 18:03:20 -05:00
2026-11-07 05:04:38 -05:00
2026-11-07 05:04:38 -05:00
2026-11-12 12:09:36 -05:00
2026-11-12 12:09:37 -05:00
2026-11-11 19:38:17 -05:00
2026-11-11 19:38:17 -05:00
2026-11-12 12:09:36 -05:00
2026-11-07 05:04:40 -05:00
2026-11-12 12:09:36 -05:00
2026-11-07 05:04:40 -05:00
2026-11-11 19:38:17 -05:00
2026-11-07 05:04:39 -05:00
2026-11-07 05:04:39 -05:00
2026-11-11 19:38:18 -05:00
2026-11-11 19:38:18 -05:00
2026-11-11 19:38:18 -05:00
2026-11-07 05:04:38 -05:00
2026-11-09 08:54:25 -05:00
2026-11-08 15:51:48 -05:00
2026-11-07 05:04:38 -05:00
2026-11-10 22:59:02 -05:00
2026-11-07 13:31:07 -05:00
2026-11-11 08:04:19 -05:00
2026-11-07 05:04:40 -05:00
2026-11-11 15:09:16 -05:00
2026-11-07 05:04:40 -05:00
2026-11-09 13:13:43 -05:00
2026-11-09 02:40:51 -05:00
2026-11-10 23:24:34 -05:00
2026-11-09 02:40:51 -05:00
2026-11-12 03:54:21 -05:00
2026-11-11 19:38:18 -05:00
2026-11-10 06:35:28 -05:00
2026-11-10 06:35:28 -05:00
2026-11-09 08:20:32 -05:00
2026-11-09 08:20:01 -05:00
2026-11-11 04:36:33 -05:00
2026-11-07 05:04:38 -05:00
2026-11-11 15:09:16 -05:00
2026-11-07 05:04:38 -05:00
2026-11-07 05:04:38 -05:00
2026-11-07 05:04:40 -05:00
2026-11-11 00:39:08 -05:00
2026-11-09 11:22:38 -05:00
2026-11-10 23:16:17 -05:00
2026-11-10 23:16:17 -05:00
2026-11-11 00:20:22 -05:00
2026-11-09 13:13:43 -05:00
2026-11-09 13:13:43 -05:00
2026-11-09 13:13:43 -05:00
2026-11-07 05:04:38 -05:00
2026-11-07 05:04:38 -05:00
2026-11-07 05:04:40 -05:00
2026-11-07 05:04:40 -05:00
2026-11-12 07:55:57 -05:00
2026-11-12 07:55:57 -05:00
2026-11-11 18:10:38 -05:00
2026-11-07 05:04:38 -05:00
2026-11-07 05:04:38 -05:00
2026-11-07 05:04:40 -05:00
2026-11-07 05:04:38 -05:00
2026-11-11 00:20:22 -05:00
2026-11-07 05:04:38 -05:00
2026-11-12 02:11:46 -05:00
2026-11-12 02:11:46 -05:00
2026-11-07 05:04:40 -05:00
2026-11-11 12:18:52 -05:00
2026-11-12 02:11:46 -05:00
2026-11-12 08:23:25 -05:00
2026-11-12 08:23:25 -05:00
2026-11-07 05:04:38 -05:00
2026-11-12 08:23:25 -05:00
2026-11-12 02:11:46 -05:00
2026-11-12 12:09:37 -05:00
2026-11-11 04:42:07 -05:00
2026-11-11 04:29:31 -05:00
2026-11-11 00:39:50 -05:00
2026-11-09 03:34:46 -05:00
2026-11-12 04:39:12 -05:00
2026-11-09 21:10:23 -05:00
2026-11-12 12:09:37 -05:00
2026-11-12 12:09:37 -05:00
2026-11-12 12:09:37 -05:00
2026-11-11 15:09:15 -05:00
2026-11-10 23:14:00 -05:00
2026-11-12 12:09:37 -05:00
2026-11-12 12:09:37 -05:00
2026-11-11 04:35:30 -05:00
2026-11-12 04:39:12 -05:00
2026-11-12 12:09:37 -05:00
2026-11-12 12:09:37 -05:00
2026-11-11 04:49:01 -05:00
2026-11-12 10:21:47 -05:00
2026-11-12 10:21:47 -05:00
2026-11-11 15:09:15 -05:00
2026-11-11 05:18:48 -05:00
2026-11-12 12:09:37 -05:00
2026-11-11 15:09:15 -05:00
2026-11-11 05:18:48 -05:00
2026-11-07 05:04:40 -05:00
2026-11-09 03:34:46 -05:00
2026-11-11 06:10:09 -05:00
2026-11-09 03:34:46 -05:00
2026-11-12 04:39:12 -05:00
2026-11-11 19:38:18 -05:00
2026-11-12 04:39:12 -05:00
2026-11-11 05:58:42 -05:00
2026-11-11 05:58:42 -05:00
2026-11-07 05:04:38 -05:00
2026-11-12 04:39:12 -05:00
2026-11-07 05:04:38 -05:00
2026-11-12 12:09:36 -05:00
2026-11-11 05:58:42 -05:00
2026-11-11 05:58:42 -05:00
2026-11-11 05:25:38 -05:00
2026-11-12 04:39:12 -05:00
2026-11-10 12:14:29 -05:00
2026-11-12 12:09:37 -05:00
2026-11-09 03:34:46 -05:00
2026-11-12 12:09:37 -05:00
2026-11-07 05:04:38 -05:00
2026-11-10 09:13:35 -05:00
2026-11-12 12:09:37 -05:00
2026-11-10 15:20:47 -05:00
2026-11-10 09:12:33 -05:00