95833c7442
Merge pull request #2545 from Tyrannys/rt-async-callback-handle-safety
...
Async callback and handle safety in xgameruntime, gameinput_no_sdl and xapu_queue (RT-ASYNC-CALLBACK-HANDLE-SAFETY)
2026-11-28 18:50:40 +01:00
05a0f7f2a3
Merge remote-tracking branch 'refs/remotes/origin/main' into fix/explicit-lod-bias-moltenvk
...
# Conflicts:
# make_game.py
# tests/test_make_game_translator_flags.py
2026-11-28 16:58:31 +01:00
10f14f6130
Keep additive overlay light separate from coverage
2026-11-28 18:45:13 +03:00
3a565b4187
Merge pull request #2515 from TheGeogeo/fix/d3d12-existing-heap-invalid-handle
...
test: use an invalid handle in the existing-heap check (TEST-D3D12-EXISTING-HEAP-INVALID-HANDLE)
2026-11-28 16:12:11 +01:00
13d95b7618
d3d12: test bundle ExecuteIndirect(DISPATCH) and fix the stale bundle note (D3D-BUNDLE-EXECUTE-INDIRECT)
...
ExecuteIndirect in a bundle is already deferred on main (single DRAW,
DRAW_INDEXED, DISPATCH or DISPATCH_MESH, no count buffer); only DRAW and
DRAW_INDEXED had a GPU test and docs/d3d12_vulkan.md still listed it as
"Not deferred yet".
d3d12_indirect_dispatch_count_test --bundle (ctest
d3d12_bundle_indirect_dispatch) runs a fixed-count DISPATCH recorded in a
bundle twice from a direct list with a different parent root UAV each
time, then a direct Dispatch, on the layer, WARP and the default adapter,
and checks that a count buffer or a root-constant signature fails the
bundle's Close (E_INVALIDARG on both host adapters, as on the layer).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-28 15:47:59 +01:00
767ce20cb9
Merge upstream main into PR #1918
2026-11-28 13:59:13 +00:00
669e09c90b
Merge upstream main into PR #778
2026-11-28 13:59:13 +00:00
ab95ff8427
Merge upstream main into PR #1528
2026-11-28 13:59:13 +00:00
5fbcc642a5
Merge upstream main into PR #1559
2026-11-28 13:59:13 +00:00
0f71e76707
Merge upstream main into PR #1715
2026-11-28 13:59:13 +00:00
29141b4717
Merge upstream main into PR #1931
2026-11-28 13:59:12 +00:00
d1f53516d3
ci: fix PR-specific translator, runtime test, and docs/check failures
...
- docs/design.md: escape bare pipes in wide scalar load table row
- runtime/README.md: document LEONIDA_BEFORE_EXECUTE_COALESCE and LEONIDA_CLWB_PATCH
- .github/workflows/runtime.yml: add descriptor_sources.py and heap_index_census.py path triggers
- tools/ptr_truncation_census.py: accept extra= kwarg in shader_meta.collect capture hook
- tools/shader_diff.py: disable FTZ32 during cpu_ref differential comparison (cpu_ref preserves denorms)
- tests/test_translate.py: update wave32 bpermute, ballot-based WQM, and deduplicated uvec4 OpImageFetch assertions
- runtime/test/replay_state_cache_test.cpp: add always-true gl_FragCoord.x >= 0.0 scalar select guard in build_fs_spirv to avoid Mesa llvmpipe linear-fastpath push-constant bug
- runtime/test/vk_gpu_profile_test.cpp: skip positive-duration checks on Apple Paravirtual GPUs returning constant zero-span timestamps while keeping all structural/query checks
AI-assisted: Antigravity (Gemini 4 Neon). Verified with full translator-tests pytest suite (2004 passed), PR-specific CI/check unit tests, and replay_state_cache_test + vk_gpu_profile_test on llvmpipe and Radeon iGPU (VVL=1).
2026-11-28 08:33:18 -05:00
0ebe31d3ae
Merge upstream/main into rt-title-writeback-same-page-ranges
...
Conflicts with the retired-window write-back from main:
- ShadowPages::write_back keeps this branch's form (all ranges of a tracker in
one call, `reached`), takes main's `only` (a retired window's copy), and runs
main's two-pass, byte-level copy for each run of unheld pages. A run reopens
its pages only while one of them is still guarded, as before.
- free_retired_shadow passes its one range in the new form.
- d3d12_title_va_test's submit_write takes both `base` (this branch) and
`wait` (main); main's two callers with wait=false pass base 0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-11-28 07:02:26 -06:00
3a7dc6126b
Merge remote-tracking branch 'origin/main' into fix/explicit-lod-bias-moltenvk
...
# Conflicts:
# .github/workflows/runtime.yml
2026-11-28 13:34:11 +01:00
66d4723f40
Merge upstream ProjectLeonida/mandy main ( d48a957bb) into test/round10
...
Resolved conflicts in docs/design.md, runtime/CMakeLists.txt, and tests/semantic/spirv_wave_interp.py.
AI-assisted: Antigravity (Gemini 4 Neon).
2026-11-28 07:00:01 -05:00
c9f097eb50
Merge pull request #2419 from ProjectLeonida/fix/cvt-f16-denorm-and-clamp
...
rdna2spirv: preserve f16 denormals, NaN payloads, and bit-exact clamp in conversions (SHADER-CVT-F16-DENORM-AND-MODS)
2026-11-28 12:54:01 +01:00
87f12b9dcc
Merge pull request #1587 from exoticLgk/fix-exp-f32-denorm
...
rdna2spirv: flush v_exp_f32 denormal results (SHADER-EXP-F32-DENORM)
2026-11-28 12:52:59 +01:00
11df2b0069
Merge pull request #1112 from klikso/carry/shader-f64-omods
...
rdna2spirv: the binary64 VALU ops take clamp and nothing else from their omod (SHADER-F64-OMODS-CARRY)
2026-11-28 12:52:22 +01:00
e773dbac81
Merge branch 'r10b/vm-bindless' into test/round10
2026-11-28 06:29:45 -05:00
89b7b344f4
runtime: Round 10b WS-B/C/D — feed_seq coalescer guard, map_view TOCTOU removal, bridged rollback gap preservation, RO VQ exclusion & bindless dim2D/multi-key fixes
...
AI-assisted: Antigravity (Gemini 4 Neon).
2026-11-28 06:29:45 -05:00
0040a3d15a
runtime: Round 10b WS-A — bare write-group vis_seq bump, exact landed-value check, wait_met re-check, relay_wait gate preservation & signal-only vis_seq transitivity
...
AI-assisted: Antigravity (Gemini 4 Neon).
2026-11-28 06:29:45 -05:00
f77b4d80d0
Merge remote-tracking branch 'origin/main' into fix/rdna2spirv-f16-interp-computed-ij
2026-11-28 03:05:44 -08:00
f5dc20bcbd
Merge pull request #2225 from MoonEyes/test/gta6rt-no-tls-callbacks
...
tests: fail when gta6rt.exe has TLS callbacks (TEST-GTA6RT-NO-TLS-CALLBACKS)
2026-11-28 11:47:04 +01:00
5c5ebeef06
Merge branch 'r10/tex-overlap' into test/round10
2026-11-28 05:38:11 -05:00
b6d49ca0e2
Merge branch 'r10/mirror-arm' into test/round10
2026-11-28 05:38:11 -05:00
6bd17e22a1
runtime: Round 10 WS3 — GPU-met gate vis_seq=0, retroactive GPU-to-GPU wait relay, coalescer reorder, readable fast path & decoupled GPU profile resolve
...
- Add VulkanFence::signal_gpu_relay() (vis_seq=0) strictly for GPU-landed list-value gates (!force && !lost && !action && !cpu_met)
- Retroactive GPU-to-GPU relay via QueueHolds::relay_wait() + VulkanQueue wait substitution (never GPU-signaling values->gate, reversing wait() before add_gate(), requiring after_gate==0 && different queue)
- Decouple gpu_profile_.resolve() onto lazy resolver thread off FenceWaitDispatcher & throttle take_open() device-loss checks
- Reorder BeforeExecuteCoalescer to wb -> mirror -> flush -> tex -> shadows -> 2nd flush -> conditional 2nd tex (killing in_feed CPU fallbacks)
- Hoist host_stop & add negative caching in TextureVqCache + Stage 2b all-16 Cell::restore[] readability bypass
AI-assisted: Antigravity (Gemini 4 Neon).
2026-11-28 05:38:11 -05:00
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
33db04a701
Merge pull request #1720 from PyZikYG/d3d12-calibration-queue-progress
...
d3d12: allow queue submissions during fallback clock calibration
2026-11-28 10:53:03 +01:00
53c8d40994
Merge pull request #958 from Kadamitas/restore/queue-child-lifetime
...
d3d12_xs: retain queue and fence wrappers through forwarded calls
2026-11-28 10:52:03 +01:00
287f643f22
Merge pull request #2493 from Tyrannys/rt-swapchain-mock-findings
...
dxgi_swapchain: retired swapchain, stale buffer count, unsupported surface, blit filter and composite alpha (RT-SWAPCHAIN-MOCK-FINDINGS)
2026-11-28 10:51:07 +01:00
52c84a71bf
Merge pull request #2399 from ERROR890/fix/pso-stream-view-instancing
...
d3d12_xs: capture a pipeline stream that carries a VIEW_INSTANCING subobject
2026-11-28 10:50:20 +01:00
ec02dde263
Merge pull request #1999 from lgr123/lgr123/runtime-xma-loop-end
...
Honor XMA loop-end subframes across linked packets
2026-11-28 10:49:39 +01:00
80bedf24ae
Merge pull request #1724 from hugo0024/test-fma-fused-f16-runtime
...
tests: cs_fma_fused takes its f16 operands at run time, like its f32 ones (TEST-FMA-FUSED-F16-RUNTIME)
2026-11-28 10:48:27 +01:00
a997a3c77a
Merge pull request #2302 from kirigayakazima/fix/dstorage-vectors-safety
...
dstorage_vectors: add CLI validation and atomic output write
2026-11-28 10:47:24 +01:00
dfa9c8649f
Merge pull request #2301 from kirigayakazima/fix/check-argv-modes-safety
...
runtime/test/check_argv_modes.py: harden preflight, child errors, Win env strip, atomic report
2026-11-28 10:46:50 +01:00
5c90c0a1c3
Merge pull request #2300 from kirigayakazima/fix/check-module-names-safety
...
runtime/test/check_module_names.py: harden preflight, child errors, BOM traces, and atomic report
2026-11-28 10:46:17 +01:00
08fb9805ac
Merge pull request #2296 from kirigayakazima/fix/check-sparse-queue-family-safety
...
runtime/test/check_sparse_queue_family.py: harden argv, LF settings, BOM traces, and OSError
2026-11-28 10:44:59 +01:00
dffbaf018b
Merge pull request #2295 from kirigayakazima/fix/check-tiny-frame-safety
...
runtime/test/check_tiny_frame.py: strip BOM, guard CLI/subprocess errors, fail on bad probe
2026-11-28 10:44:15 +01: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
b5fbe90d2c
Merge pull request #2284 from kirigayakazima/fix/probe-signed-zero-safety
...
runtime/test/shaders/probe_signed_zero.py: validate harness, handle subprocess errors, add unit tests
2026-11-28 10:39:55 +01:00
8e7be20595
Merge pull request #2281 from kirigayakazima/fix/compute-fixture-safety
...
runtime/test/shaders/compute_fixture.py: validate group dimensions, shifts, and SGPR ranges
2026-11-28 10:39:23 +01:00
e76316b4cd
Merge pull request #1219 from robot00f/fix/device-filter-wine
...
test: run the device-filter tools through wine on a non-Windows host (#1150 )
2026-11-28 10:38:48 +01:00
b2a7dabd10
Merge main and preserve tier C reference checks across subgroup widths
2026-11-28 13:38:47 +05:00
6bbeaa274a
runtime: run before_execute on empty CommandList submissions (fix d3d12_existing_heap)
...
Titles and d3d12_existing_heap rely on ExecuteCommandLists(empty) + Signal() as
a synchronization point that flushes pending streamed views and title textures.
AI-assisted: Antigravity (Gemini 4 Neon).
2026-11-28 03:37:06 -05:00
e9aaba0022
Merge branch 'r8/gates-floor' into test/round8
2026-11-28 03:31:07 -05:00