Dimitar Pavlov
9d41505a44
d3d12/vulkan: staged VRAM arena, DMA readback batching, parallel shadows, stream-pool fix
On top of PR #2566 (8db8335d2), combines verified runtime performance and
correctness improvements for non-ReBAR Vulkan GPUs (tested on Linux / Wine /
RTX 3090 24 GB, BAR1 = 246 MiB, driver 590.48.01):
- Stage 4 GiB GPU address arena + overflow TitleBufferWindows slabs in
DEVICE_LOCAL VRAM with HOST_VISIBLE staging mirrors (arena_staging.h,
arena_staging_test.cpp).
- Fix startup glibc realloc() race by caching max_compute_shared_memory_size,
sharing mutex-guarded VkPipelineLayouts, and eagerly loading pipeline_cache()
during single-threaded Device construction.
- Stage 9a-1: batch retired arena + external window host readbacks into a
single copy_buffers_sync() submission on the dedicated DMA copy queue
(wb: 27.6 ms -> 2.35 ms/frame).
- Stage 9a-2: parallelize ShadowPages::refresh across 4 persistent threads
via ShadowRefreshPool (shadows: 26.9 ms -> 10.2 ms/frame).
- Fix resolve_pool_memory() zeroing out root descriptors probed with
kRootViewBytes (64 KiB) near the end of committed stream-pool blocks
(stream pool unbacked: 131,072 -> 16-33, root view unbacked: 0).
AI-assisted. Verified with 151/151 portable Linux CTest passing and Windows
MSVC build + retail boots on RTX 3090 (590.48.01).
2026-12-01 16:37:00 +02:00
..
2026-11-24 15:05:47 +00:00
2026-11-25 22:12:33 +00:00
2026-11-27 18:42:00 -06:00
2026-11-26 09:07:54 -05:00
2026-11-29 10:40:34 -05:00
2026-11-25 13:09:51 +01:00
2026-11-25 10:53:03 +00:00
2026-12-01 16:37:00 +02:00
2026-11-29 09:55:11 -03:00
2026-11-27 14:24:29 +01:00
2026-11-27 18:49:10 -03:00
2026-11-28 18:52:49 +01:00
2026-11-24 11:42:12 -06:00
2026-11-25 17:30:15 -05:00
2026-11-25 17:30:15 -05:00
2026-11-27 18:49:03 -03:00
2026-11-28 19:11:25 +01:00
2026-11-25 19:42:17 +01:00
2026-11-25 20:09:18 +01:00
2026-11-27 10:17:33 +01:00
2026-11-30 04:36:05 -05:00
2026-11-27 13:49:07 +01:00
2026-11-27 13:49:07 +01:00
2026-11-28 18:55:48 +01:00
2026-11-25 14:30:51 -06:00
2026-11-25 14:30:51 -06:00
2026-11-25 14:30:51 -06:00
2026-11-29 06:33:39 -05:00
2026-11-28 05:38:10 -05:00
2026-11-24 18:12:09 +01:00
2026-11-24 21:05:22 -05:00
2026-11-28 18:53:57 +01:00
2026-11-24 15:48:18 +01:00
2026-11-24 11:42:12 -06:00
2026-11-25 22:09:19 +03:00
2026-11-25 12:39:12 +01:00
2026-11-25 13:16:42 +00:00
2026-11-28 21:26:33 +01:00
2026-11-26 13:49:36 +00:00
2026-11-26 13:44:24 +00:00
2026-11-27 15:14:45 -06:00
2026-11-25 16:35:47 -05:00
2026-11-24 11:42:12 -06:00
2026-11-24 11:42:12 -06:00
2026-11-25 17:48:35 +01:00
2026-11-28 21:19:06 +01:00
2026-11-26 16:44:41 -05:00
2026-11-29 12:59:52 -05:00
2026-11-27 17:58:38 -05:00
2026-11-25 13:11:24 +01:00
2026-11-28 05:38:11 -05:00
2026-11-25 22:10:37 +00:00
2026-11-23 23:07:51 +01:00
2026-11-27 17:58:38 -05:00
2026-11-25 08:07:27 -05:00
2026-11-25 18:12:54 +01:00
2026-11-26 16:43:28 -05:00
2026-11-26 16:43:28 -05:00
2026-11-25 03:44:43 -06:00
2026-11-25 03:44:43 -06:00
2026-11-26 13:40:14 +00:00
2026-11-27 18:49:18 -03:00
2026-11-25 21:59:36 +01:00
2026-11-26 17:37:42 -05:00
2026-11-27 21:10:54 -05:00
2026-11-24 19:52:07 -05:00
2026-11-29 09:55:11 -03:00
2026-11-26 14:31:34 -05:00
2026-11-27 10:51:23 -05:00
2026-11-25 18:18:57 -05:00
2026-11-24 11:51:04 +05:00
2026-11-29 06:34:13 -05:00
2026-11-29 13:44:40 +01:00
2026-11-27 17:58:38 -05:00
2026-11-25 22:14:24 +03:00
2026-11-26 13:12:38 +00:00
2026-11-29 13:51:25 +01:00
2026-11-26 13:13:04 +01:00
2026-11-26 05:00:01 -06:00
2026-11-25 13:04:29 -06:00
2026-11-26 14:01:09 +00:00
2026-11-25 13:32:40 +01:00
2026-11-28 18:45:13 +03:00
2026-11-28 18:45:13 +03:00
2026-11-23 16:11:49 -06:00
2026-11-24 05:10:18 -05:00
2026-11-24 05:10:18 -05:00
2026-11-25 16:35:30 +01:00
2026-11-29 20:00:18 +01:00
2026-11-29 21:05:26 -05:00
2026-11-24 20:26:00 -05:00
2026-11-27 17:58:38 -05:00
2026-11-23 19:42:49 -05:00
2026-11-25 19:28:17 +01:00
2026-11-24 21:19:30 +08:00
2026-11-25 16:40:13 -05:00
2026-11-25 16:40:13 -05:00
2026-11-29 07:17:27 -05:00
2026-11-24 11:42:12 -06:00
2026-11-29 11:51:06 -05:00
2026-11-28 05:38:11 -05:00
2026-11-23 23:18:39 +01:00
2026-11-29 06:34:13 -05:00
2026-11-23 12:47:18 -06:00
2026-11-25 13:02:25 -06:00
2026-11-24 12:35:29 +00:00
2026-11-24 12:35:29 +00:00
2026-11-25 21:35:10 -03:00
2026-11-25 06:03:55 +01:00
2026-11-30 16:34:27 +01:00
2026-11-25 14:30:51 -06:00
2026-11-28 19:13:17 +01:00
2026-11-25 14:30:51 -06:00
2026-11-28 04:42:02 -05:00
2026-11-30 04:34:17 -05:00
2026-11-27 11:44:26 -05:00
2026-11-28 06:29:45 -05:00
2026-11-27 10:51:23 -05:00
2026-11-27 05:49:06 -05:00
2026-11-29 10:40:34 -05:00
2026-11-28 05:38:11 -05:00
2026-11-28 05:38:11 -05:00
2026-11-30 04:34:17 -05:00
2026-11-28 04:42:02 -05:00
2026-11-27 19:57:44 -05:00
2026-11-27 16:38:40 +01:00
2026-11-28 04:42:01 -05:00
2026-11-24 11:42:12 -06:00
2026-11-25 19:01:18 +01:00
2026-11-25 22:29:11 +03:00
2026-11-29 06:34:13 -05:00
2026-11-25 03:44:43 -06:00
2026-11-25 03:44:43 -06:00
2026-12-01 16:37:00 +02:00
2026-11-29 06:34:52 -05:00
2026-11-25 03:44:43 -06:00
2026-11-29 11:51:06 -05:00
2026-11-26 19:40:14 -05:00
2026-11-25 06:43:13 -05:00
2026-11-28 16:34:52 -05:00
2026-11-24 21:40:02 +08:00
2026-11-25 03:44:43 -06:00
2026-11-28 02:14:47 -05:00
2026-11-25 16:35:30 +01:00
2026-11-25 18:18:57 -05:00
2026-11-25 08:57:49 +01:00
2026-11-23 23:16:12 +01:00
2026-11-25 16:35:30 +01:00
2026-11-25 16:35:30 +01:00
2026-11-25 03:44:43 -06:00
2026-11-25 14:30:51 -06:00
2026-11-29 21:05:26 -05:00
2026-11-30 04:36:05 -05:00
2026-11-25 13:46:01 +01:00
2026-11-28 04:42:02 -05:00
2026-11-28 04:42:02 -05:00
2026-11-26 07:50:38 +01:00
2026-11-28 18:55:05 +01:00
2026-11-26 07:50:38 +01:00
2026-11-24 11:09:18 +05:00