Commit Graph

1118 Commits

Author SHA1 Message Date
70ea06a50b runtime: Round 10 WS2 — shared Cell::known_* cache, TitleHeap changed() scoping, 64-tile bridging, fused AVX2 copy_and_sum_256 & filter/collect cuts
- Move title_memory_map::changed() into TitleHeap::hooks.commit/decommit and !from_mirror_heap in free_title_block()
- Share Cell::known_* across CellGuard & TitleTextureCells (no PAGE_READONLY no-guard cache; MEM_RESERVE intra-pass in TitleTextureCells, cross-pass in CellGuard; seed on xmem::map_view)
- Persist TitleTextureCells VQ cache across outer batches; bridge across run_already_armed_ tiles with uniform restore[0..15] up to kMaxBridgeGap=64
- Persist 1024-entry local_mirror per ConsoleHeap*, flush Phase A/B disjointly, handle !base V#s in Phase A, skip redundant WC BAR writes for waiting T#s
- Fused SEH-safe AVX2/SSE2 guarded::copy_and_sum_256(), kMaxWorkers=8, single-reader title_write_watch::ask() fast path preserving mark() entries

AI-assisted: Antigravity (Gemini 4 Neon).
2026-11-28 05:38:11 -05:00
ddf184c2f3 runtime: Round 10 WS1 — fix bindless GC thrash via evictable console-heap tracking, shared_zero_ dedup & two-phase dead-key sweep
- Track exact live console-heap textures via ConsoleHeapSlotRecords 0<->1 callback under pure leaf live_console_textures_mutex
- Classify non-UAV non-MS !known_heap placed-texture views as evictable when console_heap_count > 0; preserve evictable across PendingImage::keys & publish_streamed_texture()
- Propagate is_zero_view in bind_image_locked() and gate api_owner_address on is_zero_view && console_heap_count==0
- Two-phase GC (Phase 1 dead-key sweep emitting 0 texture_gone, Phase 2 emergency live-LRU only on hard_full) with evictable_views_in_dim O(1) exit, 8192-slot hysteresis, strict retire-ticket & wall-clock cooldown (always stamped on empty candidates)
- Emit SlotChange::texture_room in set_bindless_release() only on 0 -> >0 free-slot transitions

AI-assisted: Antigravity (Gemini 4 Neon).
2026-11-28 05:38:10 -05:00
8f78261179 runtime: distinguish D3D12 API ViewKeys on shared placeholder images (fix d3d12_existing_heap)
Two distinct deferred shared-BC slot-133 placements share a placeholder VkImage
until promoted; keying non-title-heap ViewKeys by image.address gives each
resource its own bindless slot while preserving full title-heap ViewKey dedup.

AI-assisted: Antigravity (Gemini 4 Neon).
2026-11-28 04:48:02 -05:00
12e13dd4a9 Merge branch 'r9/bindless-finish' into test/round9 2026-11-28 04:42:02 -05:00
a2a89938c5 Merge branch 'r9/tex-readback' into test/round9 2026-11-28 04:42:02 -05:00
f479b1f6c2 runtime: Round 9 WS3 — fix 65,536 bindless exhaustion via ViewKey sharing + GC, kill finish_in_place refusal storm & clean up shadows
- Refcounted ViewKey sharing across distinct T# keys with identical Vulkan view state + safe pressure-triggered GC of stale from_title_heap entries (preserving 16-bit ABI, API views, and live TitleTextures)
- O(1) low/high free-lists & counts in BindlessSet + sync_fast_state() held_images_/held_samplers_ hardening
- Pre-check bindless->has_free_image() before vkCreateImageView(), emit SlotChange::texture_room only when slots actually return to free, skip room_[1] wake when total_free_images()==0
- Zero-alloc const char* UnboundTsharpTracker & heap.refused_reasons, skip unchanged zero-index WC BAR writes
- Single-lock bind_title_image() out_index_word, unordered_map image_entries, GeometryViews dedicated WriteQueue + hot_overlap_tiles_, atomic console_heap_signature for update_address_guard()

AI-assisted: Antigravity (Gemini 4 Neon).
2026-11-28 04:42:02 -05:00
09f8cb66bf runtime: Round 9 WS2 — read+back cache/coalescing, single-lock title_frames, TitleTextureCells gap-bridging, 8 MiB pool & 3D linear mips
- Separate title_texel_writes from title_map_changes_ (retry t.memory only when pending/filled_from/!fills) and coalesce title_texel_writes::note() up to 16,384 spans before overflow
- Enable cache_success=guard + sync_map() for t.mapped while keeping cache_failure=guard&&!mapped
- Single-lock zero-shared_ptr title_frames::run_end & backed_batch hooks + Stage-2 TextureVqCache
- TitleTextureCells::arm_batch(): range_clean_since() at all 3 sites, kMaxBridgeGap=8 pin-guarded bridging, c->armed_map_gen, batched sync_tile_peers()
- Raise TitleImagePool::largest_slot to 8 MiB (16 MiB page cap), pool non-RT/non-DS deferred textures, best-fit TitleImageUpload::take_slot(), 16 MiB job.tiled retention, linear 3D mips>1, readable/back/arm/cpu_fallback_by[6] telemetry

AI-assisted: Antigravity (Gemini 4 Neon).
2026-11-28 04:42:02 -05:00
84c7f469e6 runtime: Round 9 WS1 — CellGuard/reopen fast paths, WC streaming copy, 16 KiB strips, 7-part mirror split & coalescer tuning
- CellGuard::arm_batch(): zero-syscall all_armed + outside-s.mutex title_frames table-backed skip, MEM_RESERVE/PAGE_READONLY VQ cache with explicit cached_state, kMaxBridgeGap=32 (pin-guarded), disarm_batch/set_hot_batch for policy_.frame()
- geometry_writes::reopen(): range-scoped title_memory_map::changes_since() fast path with VirtualProtect(old) rollback
- TitleMirror::upload(): WC-aware copy_guarded_host(..., true) (MOVNTDQA), kStripBytes=16 KiB (64-piece strip mask), ~50 us WorkerPool spin, per-Unit sums slab
- 7-part refresh_page_mirror() sub-split telemetry (lock/feed/collect/arm/upload/filter/other + arm/upload breakdowns)
- watch_batch() in page_mirror_resolve_locked(), defer_fill=true only in page_mirror_chunk(), VulkanContext::cached_completed_retire_ticket(), pass_seq after write_back_titles()

AI-assisted: Antigravity (Gemini 4 Neon).
2026-11-28 04:42:01 -05:00
e9aaba0022 Merge branch 'r8/gates-floor' into test/round8 2026-11-28 03:31:07 -05:00
d4f17ae965 Merge branch 'r8/tex-fast' into test/round8 2026-11-28 03:31:07 -05:00
59db4b62b0 runtime: Round 8 WS3 — fix list-value gate TOCTOU, offload QueueHolds barriers, empty-batch/wait coalescing, replay floor & batched xmem slot-31
- Fix Pump::choose_release() TOCTOU on already-completed unlanded write groups/action gates + 10 ms quiet window on Reason::present
- Skip before_execute/visibility_seq on empty batches (preserving pending_wait_vis_seq_), coalesce past GPU-completed Waits (merging CPU vis_seq), cache CommandList summary, atomic unbuilt_sync_pipelines_ & BindlessSet clean fast-paths, hoist EmitScratch
- Dedicated QueueHolds barrier-drain thread with active_work_ tracking, wait_barriers_drained() ordering, cancel_after() wait, and non-blocking VulkanQueue::release_ready()
- Batch copy_page_mappings() per contiguous range & notify Event::replaced on mirror_heap decommit in xmem.cpp
- SEH-guarded aligned volatile read_value() (no noexcept under /EHsc) + 1000 ms slot-12 Vulkan fence mirror timeout

AI-assisted: Antigravity (Gemini 4 Neon).
2026-11-28 03:31:06 -05:00
fbeb3d9080 runtime: Round 8 WS2 — eliminate false texture re-uploads, zero-syscall arm_batch, parallel mirror hash & 512-job GPU detile batches
- Zero ResourceDesc padding words [1,2,3,13], compare non-format words + compatible formats in title_texture_matches(), preserve layout-equal slot-133 textures & mirror_hash_valid on unmap
- Guard refresh_title_texture() touch() against unreadable pending_stream textures while preserving deferred backing & publish_streamed_texture
- Zero-syscall already-armed Cell::restore[] check + table-page backed skip + PAGE_READONLY region cache in TitleTextureCells::arm_batch(); sync_tile_peers() skip in examine_batch()
- Snapshot geometry_writes serial before refresh_page_mirror() to skip redundant page_mirror_check_batch() dirtying on both CPU and GPU views; parallelize Pass 3 range_sum() >= 8 MiB
- Decouple GPU-mirror batching (512 jobs / 128 MiB) from CPU 64-slot limit, single-call vkAllocateDescriptorSets per sub-batch, kMaxScratchSlots=64, 4-part examine_ns telemetry

AI-assisted: Antigravity (Gemini 4 Neon).
2026-11-28 03:31:06 -05:00
f913286051 runtime: Round 8 WS1 — PageMirror batching, direct page table, L1-strip AVX2 hashing, sub-page readback & heap WC buffering
- CellGuard::arm_batch(): per-batch sync_known_protect, range-scoped changes_since(), gap-bridging (<=8 cold tiles, pin-guarded), reopen() fast-path via Cell::armed_map_gen
- shadow_keep::sum_of_batch_256() hoisted AVX2/SSE2/scalar batch hash + 4 KiB L1-hot strips in TitleMirror::upload() & prehash_readback_slice()
- TitleWritePolicy PageRef active lists (no frame_hot) + TitleMirror 2-level per-chunk direct page table + has_pending() fast-path + refs>1 alias handoff
- Feed coalescing + watch_batch/unwatch_batch in refresh_page_mirror()
- Sub-page 256B-aligned vkCmdCopyBuffer readback, page_mirror_buffer resolve_cache, OutScratchGuard WC buffering in apply_in_place_changes/finish_in_place, lock-free reclaim_arena/update_address_guard

AI-assisted: Antigravity (Gemini 4 Neon).
2026-11-28 03:31:04 -05:00
e4c0708745 runtime: publish deferred streamed views in refresh_title_texture once backed
Calls publish_streamed_texture(from) after back_title_texture() in refresh_title_texture() so deferred pending_stream slot-70 descriptors immediately bind their views when pages arrive while texel upload remains deferred to batched refresh_title_textures().

AI-assisted: Antigravity (Gemini 4 Neon).
2026-11-28 02:26:09 -05:00
dd78a02f69 runtime: back deferred pending_stream images in refresh_title_texture when pages arrive
Preserves immediate bindless descriptor indexing for pending_stream slot-70 textures once their pages become readable (fixing d3d12_existing_heap slot-70 view map changes test) while still deferring texel uploads to batched refresh_title_textures().

AI-assisted: Antigravity (Gemini 4 Neon).
2026-11-28 02:23:12 -05:00
2af7c5bf41 runtime: fix FilterCacheScope signed_vsharp_offsets call and finish_in_place cache scope
Fixes two clang-cl compile errors in d3d12_vulkan_device.cpp after hoisting FilterPageCache into FilterCacheScope.

AI-assisted: Antigravity (Gemini 4 Neon).
2026-11-28 02:16:31 -05:00
6bd0c4e52b Merge branch 'r7/sync-tex' into test/round7 2026-11-28 02:14:47 -05:00
49da651a9b runtime: slot-70 deferral, lazy TitleImageUpload waits, per-fence vis_seq, unlocked run_barriers, and cached arm_batch
Eliminates single-texture slot-70 storms, multi-queue TitleImageUpload lock/submit stalls, gratuitous coalescer invalidations, and Present pump_mutex_ blocks:
- d3d12_vulkan_device.cpp: defers slot-70 make_title_texture()/refresh_title_texture() to batched refresh_title_textures() (with texture_watch.touch); skips re-dirtying hot pages when mirror_just_synced; ports changes_since()-tracked known_protect cache into TitleTextureCells::arm_batch().
- d3d12_title_image_upload.h / vulkan_title_detile.h / vulkan_backend.h / vulkan_indirect_clamp.h: caches PFN_vk* procs, raises kMaxBatchCmds=64 / kMaxScratchSlots=32, waits on oldest_in_flight_scratch_value(), batches vkUpdateDescriptorSets, replaces empty consumer submits with lazy note_title_upload_locked waits in submit_multi(), unlocks submit_mutex_ during upload recording, decouples prepare_indirect_clamp from tracker_mutex_, caches ReplayFunctions, and times tracker_lock waits.
- queue_holds.h / vulkan_backend.h / vulkan_present.h / d3d12_com.cpp: tracks per-(fence,value) vis_seq in QueueHolds (stopping GPU-signal & list-values false invalidations), fixes BeforeExecuteCoalescer cv.wait loop + adds 5-step leader timing, decouples QueueHolds::run_barriers() from pump_mutex_ via barrier_mutex_, and expands VulkanPresenter::frames_ to 4.

AI-assisted: Antigravity (Gemini 4 Neon).
2026-11-28 02:14:47 -05:00
aff99e069a runtime: parallel Phase-A heap filter, single-lock unwatch, fault VirtualQuery skip, and 64 MiB copy-queue readback
Cuts PageMirror refresh, write-fault, unwatch, and GPU write-back overhead:
- d3d12_vulkan_device.cpp / title_mirror.h / console_heap_slot_records.h: hoists 1024-entry FilterPageCache across upload(), buffers filtered slots in 64 KiB host scratch with coalesced WC BAR flushes, parallelizes pure read-only Phase A heap filtering across WorkerPool with sequential Phase B under page_mirror.mutex, and adds none->none / idempotent place() fast paths.
- title_mirror_hot_cold.h / title_geometry_watch.h / xmem.cpp: fixes HotColdTracking::unwatch() triple-lock/bogus-WriteQueue bug with single-lock geometry_writes::release(addr, was_hot), skips redundant 2nd VirtualQuery in notify(Event::fault), and passes ranged changed(start, end) from xmem.cpp.
- d3d12_vulkan_device.cpp / title_mirror.h: raises kReadbackPages to 1024 (64 MiB), routes readback copies onto info.copy_queues, bypasses kernel_writes::write() on xmem scratch frames (frame != page_va), batches begin_write/end_write per ordinary page, and lowers whole_title_ok threshold to 2.

AI-assisted: Antigravity (Gemini 4 Neon).
2026-11-28 02:08:11 -05:00
350f84efe6 runtime: fix duplicate readback_pool member and parenthesized std::max syntax on Windows
Renames PageMirror's Phase-1 WorkerPool to readback_hash_pool (avoiding collision with VkCommandPool readback_pool) and replaces invalid (std::max)<std::uint64_t>(...) with (std::max)(std::uint64_t(1), ...) for clang-cl/MSVC.

AI-assisted: Antigravity (Gemini 4 Neon).
2026-11-28 01:12:03 -05:00
80734a849c runtime: wire scoped readback skip masks into batched texture checks and console heaps
Routes page_mirror_check_batch() uploads through note_readback_pieces_uploaded_locked() and console-heap page invalidations through note_readback_frame_invalidated_locked() so unrelated pages never poison readback_invalidated; renames a shadowed parameter in title_texture_watch_test.

AI-assisted: Antigravity (Gemini 4 Neon).
2026-11-28 01:09:18 -05:00
ccd77445fa Merge branch 'r6/textures-watch' into test/round6 2026-11-28 01:08:13 -05:00
6fd734ee84 Merge branch 'r6/queue-contention' into test/round6 2026-11-28 01:08:13 -05:00
f6d3f30c4e runtime: batched mirror texture checks, GPU-fallback mirror_hash skip, and batched tile arming
Eliminates false CPU-staged re-uploads, per-texture page_mirror.mutex churn, and unbatched tile re-arming:
- d3d12_vulkan_device.cpp: replaces per-texture page_mirror_texture_chunk/page_mirror_tiles_unchanged with a single-lock page_mirror_check_batch() snapshotting pending xmem remaps under shared feed_lock (rejecting only overlapping textures) and running one batched parallel TitleMirror::upload(); adds TitleJob::previous_mirror_hash check in hash_title_job() so GPU-uploaded textures falling back to CPU skip unchanged re-uploads; separates lock_wait_ns from collect_ns.
- title_texture_watch.h / title_texture_refresh.h: adds examine_batch() + TitleTextureCells::arm_batch() coalescing pins and contiguous VirtualProtect runs, uses direct Tile*/Texture* pointers in watch indices, and merges write/map ranges before iteration.

AI-assisted: Antigravity (Gemini 4 Neon).
2026-11-28 01:08:13 -05:00
758b98756c runtime: single-flight before_execute coalescing, frame-group async room, and lock/worker telemetry
Eliminates multi-worker global lock convoys, Wait-split async room stalls, and instrumentation blind spots:
- vulkan_backend.h / d3d12_vulkan_device.cpp / d3d12_com.cpp: adds visibility_seq_ & signaled_visibility_seq_ tracking and BeforeExecuteCoalescer so concurrent/back-to-back cross-queue submissions serialize global refresh passes to one leader and skip redundant refreshes when pass_seq >= req_seq (opt-out LEONIDA_BEFORE_EXECUTE_COALESCE=0).
- vulkan_backend.h: replaces Wait-broken pending_submit_groups_locked() with pending_frame_groups_locked() and max_batches = max(16 * depth, 64) for depth >= 2, eliminating mid-frame room_cv_ stalls on Wait-heavy frames.
- vulkan_backend.h / submit_phases.h: includes release_held() and pump_ready() in async_worker() busy time and adds worker_lock_wait_ns reporting.
- d3d12_vulkan_device.cpp / d3d12_com.cpp: lock-free ConsoleHeap::in_place_work_pending fast-skip, FilterPageCache in finish_in_place(), identical-base dedup of mirror_ranges, and cached console-heap fast-path in GraphicsCommandList::address().

AI-assisted: Antigravity (Gemini 4 Neon).
2026-11-28 01:06:40 -05:00
3007ae0d35 runtime: unlocked parallel readback pre-hashing, piece-level skip masks, and single-map CellGuard
Eliminates the async readback page_mirror.mutex convoy and serial fallback, and reduces page-mirror refresh cost:
- title_mirror.h / d3d12_vulkan_device.cpp: lifts WorkerPool for lock-free Phase 1 prehash_readback_slice() outside page_mirror.mutex and single-call Phase 2 write_back_prehashed() under lock (256-page slice: 0.11 ms unlocked, 0.03 ms locked), eliminating the 256x serial single-page fallback and merge_ranges() storm.
- Scopes readback invalidation to readback_slice_frames with per-frame 256-bit readback_slice_skip_masks populated from TitleMirror::upload(on_changed), preventing hot-page retry loops while preserving CPU-wins conflict semantics.
- Coalesces contiguous GPU write-back runs, batches deferred map() initial fills in parallel upload(), and replaces fed_now unordered_set with a flat sorted vector.
- title_mirror_hot_cold.h: consolidates CellGuard maps into a single TrackedCell map and adds a changes_since()-invalidated known_protect cache to halve cold re-arm VirtualQuery syscalls.

AI-assisted: Antigravity (Gemini 4 Neon).
2026-11-28 01:04:24 -05:00
0577e45ee5 runtime: remove unused legacy CPU texture hash helpers
Removes UnalignedWord64, mix_words, hash_bytes, hash_guarded, and hashed_bytes from d3d12_vulkan_device.cpp after CPU texture hashing moved to copy_guarded + mirror_range_sum_bytes().

AI-assisted: Antigravity (Gemini 4 Neon).
2026-11-28 00:22:20 -05:00
a8bafec7c2 runtime: enable x86-64-v3 / AVX2 codegen and drop unused typedef
Enables /arch:AVX2 on x64 MSVC/clang-cl and -march=x86-64-v3 on x86-64 GCC/Clang for C/C++ targets (activating AVX2 shadow_keep::sum_of, descriptor-slot scans, and auto-vectorization while keeping non-x86-64 portable builds untouched), and removes an unused local clock typedef in page_mirror_write_back_ranges.

AI-assisted: Antigravity (Gemini 4 Neon).
2026-11-28 00:15:18 -05:00
faf1ee314c Merge branch 'r5/queue-coalesce' into test/round5 2026-11-28 00:14:11 -05:00
89fe359ee0 runtime: VulkanQueue execute+signal coalescing, fast heap filtering, and batch-parallel sync compiles
Cuts queue submit overhead, descriptor-heap filtering cost, and synchronous cold pipeline compile latency:
- VulkanQueue: adds pending-wait tracking (has_unsatisfied_waiter), deduplicated submit_multi(), execute+signal coalescing with cross-queue/CPU waiter splits, and coalescing-group-aware async room gating.
- d3d12_com.cpp: caches descriptor heap VAs/counts on SetDescriptorHeaps, pre-tracks command-list barrier/query/indirect/draw flags, single-alloc PinnedObjects, and linear table dedup.
- d3d12_vulkan_device.cpp: AVX2 32-byte slot equality, 8 KiB L1d seen_keys, stack-local FilterPageCache, 64 KiB page-pointer caching, and T# dedup in finish_in_place.
- vulkan_replay.h / d3d12_vulkan_device.cpp: lightweight collect_unbuilt_pipelines() pre-pass and cancel-safe batch-parallel sync compile runner backed by PipelineCompiler.

AI-assisted: Antigravity (Gemini 4 Neon).
2026-11-28 00:14:10 -05:00
184d03eca8 runtime: fast mirror-hashed texture refresh and watermarked passive write-back
Cuts per-submission texture refresh overhead and prevents passive write-back accumulation across overlapping queues:
- title_texture_refresh.h: adds shadow_keep::sum_of-backed mirror_range_sum helpers and PassiveWriteBackTracker with retire_id watermarking so overlapping direct/compute queues promote each passive V# range without re-promoting stale ranges indefinitely.
- title_texture_watch.h: skips hot_tiles() rescans when hot_generation() is unchanged and tracks non_hot_arms to reuse synced shared hot tiles per pass.
- d3d12_title_image_upload.h: reuses detile scratch buffers across sub-batches and skips detile setup when unused.
- d3d12_vulkan_device.cpp: extends TitleMirror range_sum() skip to all 256B-aligned and partially mirrored textures, filters dirty chunk syncs by title_written_ (guarded by !t.stale), caches can_gpu_upload(), pools TitleJob buffers, runs inline single-item reads/hashes, and defers t.pieces commits until upload success.

AI-assisted: Antigravity (Gemini 4 Neon).
2026-11-28 00:06:16 -05:00
65acf73246 runtime: remove frame-hot mirror over-copying and measure write-back CPU time
Promoting 1x/frame pages to unguarded hot caused HotColdTracking to copy
~5,000+ pages on every submission (~50 GiB/10 s) and dirtied all textures
sharing those tiles (~119 ms/sub). Restore the submission-hot (6/8)
policy where unguarded copies beat fault+copy cost, and accumulate actual
CPU+wait time in AsyncReadback::cpu_ms instead of async wall-clock span.

AI-assisted: Antigravity (Gemini 4 Neon).
2026-11-27 23:24:53 -05:00
f4df7c4797 Merge remote-tracking branch 'mandy/main' into test/round4 2026-11-27 23:03:33 -05:00
5c815be84b Merge the upstream shared BC image fix into per-format staging
Retain staging for shared BC images on devices without host copies and keep the per-image fallback for formats without usable host-transfer backing.

AI-assisted-by: OpenAI Codex (GPT-6)
2026-11-28 14:00:35 +10:00
725d223757 Merge pull request #1549 from Mike7581/mvp-gpu-04-stub-pipeline
d3d12: LEONIDA_STUB_PIPELINES builds a real graphics pipeline from built-in stages (MVP-GPU-04)
2026-11-28 00:48:22 -03:00
e9bd907508 runtime: add ReplayStateCache and two-tier frame-hot TitleWritePolicy
Cache bound pipelines, descriptor sets, dynamic graphics state, and dirty
push-constant sub-ranges across command lists in emit_commands() (with
invalidation across internal compute helpers and rendering boundaries),
and restore the two-tier submission-hot + presented-frame-hot policy in
TitleWritePolicy/HotColdTracking wired to present_serial.

AI-assisted: Antigravity (Gemini 4 Neon).
2026-11-27 22:29:42 -05:00
085cb0cc61 Merge branch 'r3b/glc-writeback' into test/round3
# Conflicts:
#	runtime/src/vulkan_backend.h
2026-11-27 21:16:08 -05:00
072327cfad runtime: tighten TitleMirror/GeometryViews lifetime guards and PR hygiene
Guard GeometryViews retirement with command_list_epochs, defer TitleMirror
freed-home ticket stamping until flush + note_mirror_bind under submit_mutex_
(including TitleImageUpload submits), fix queue lock ordering and lock-free
wait_submitted, remove dead helpers and process labels, and scrub game shader
identifiers from docs/design.md.

AI-assisted: Antigravity (Gemini 4 Neon).
2026-11-27 21:13:23 -05:00
181e9dfdda runtime: add GLC barriers, literal sampler specialization, and writes_buffer write-back gating
Enable Vulkan 1.2 vulkanMemoryModel/vulkanMemoryModelDeviceScope and emit
pre-dispatch/pre-rendering barriers for reads_glc_buffer shaders, wire
literal_sampler_spec_base VkSpecializationInfo specialization constants,
and gate passive title buffer write-back on shader writes_buffer metadata
with non-blocking async readback polling.

AI-assisted: Antigravity (Gemini 4 Neon).
2026-11-27 21:10:54 -05:00
de8604c3dc Merge ProjectLeonida/mandy main (431ceba4f) into test/round2
Preserves all Round 1/2/2.1 CPU/GPU runtime optimizations alongside upstream
mandy/main changes, resolves all 10 conflicted files, and fixes arena_window
accounting on retired/dropped title windows.

AI-assisted: Antigravity (Gemini 4 Neon).
2026-11-27 19:57:44 -05:00
f06577169c Address guard: share the page-table buffer across queue families
create_address_guard() made the page table that shaders translated with
--address-guard read through its device address with
VK_SHARING_MODE_EXCLUSIVE, though those shaders run on the direct and
the async-compute queue. The other buffers every queue reads are shared
by the device's queue families (DeviceState::share).

The create info now comes from address_guard::table_buffer_info(), which
shares it the same way (concurrent on two or more families, exclusive on
one), with a CPU test.

Found by kevincommits (#1608).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 18:42:00 -06:00
1d3e15513f d3d12: skip before_execute on internal staging_queue copies
AI-assisted: Antigravity (Gemini 4 Neon).
2026-11-27 19:09:41 -05:00
8133156843 d3d12: 256B TitleMirror piece-hash skip and 16 MiB chunked texture watch index
AI-assisted: Antigravity (Gemini 4 Neon).
2026-11-27 19:08:19 -05:00
427ec8426b runtime: wire Round 2 fast-paths, atomic batch uploads, and review fixes
AI-assisted: Antigravity (Gemini 4 Neon).
2026-11-27 18:27:12 -05:00
adbf518879 d3d12: Stage 3a fast CPU texture refresh + Stage 3b GPU detile from TitleMirror 2026-11-27 17:53:43 -05:00
466dfb7dae d3d12: the staging queues' comment above their fields after the #407 merge (comment only)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 22:33:41 +01:00
e65692ad63 Merge #407 into consolidate/eight-gb-world
# Conflicts:
#	runtime/shims/d3d12_vulkan_device.cpp
2026-11-27 22:17:05 +01:00
f47ca265bd Merge #2117 into consolidate/eight-gb-world 2026-11-27 22:16:30 +01:00
75151be1da Merge #1705 into consolidate/eight-gb-world 2026-11-27 22:16:29 +01:00
048eeed509 Merge #2465 into consolidate/eight-gb-world 2026-11-27 22:16:28 +01:00