Commit Graph

4696 Commits

Author SHA1 Message Date
1b1bd0054c Merge pull request #997 from TanmaySatyam/feat/xpackage-impl4-and-monitors
xgameruntime: XPackage installation monitor, enumeration, and IXPackageImpl4 (OLD-9900)
2026-11-28 18:58:43 +01:00
ac28edfd30 Merge pull request #1559 from kawaii-shakal/gameinput-hotplug
gameinput: queue only events a callback wants, so a later pad's connect is not stuck behind a backlog (RT-GAMEINPUT-LATE-PAD)
2026-11-28 18:58:20 +01:00
2bf1a934b6 Merge pull request #1651 from Tortoche/old-9881
OLD-9881: subgroup_size: reject half-zero and invalid subgroup size ranges
2026-11-28 18:57:57 +01:00
3b19f8a72a Merge pull request #1715 from kawaii-shakal/bcpack-bc7-partial
dstorage: rebuild a BC6H/BC7 request with a few lost blocks instead of failing it (BCPACK-LOST-BLOCK-LIMIT)
2026-11-28 18:57:33 +01:00
6d7e215f1b Merge pull request #1821 from IlyassRS3/fix/rt-pipeline-workers-oom-uaf
runtime: fix PipelineWorkers stack use-after-free on OOM in start() (RT-PIPELINE-WORKERS-OOM-UAF)
2026-11-28 18:57:12 +01:00
2d7ce9c882 Merge pull request #1961 from IlyassRS3/fix/rt-dual-source-fragment-perf-and-dup-loc
runtime: refuse duplicate Location 1 outputs and avoid full-body RB-tree scan in dual_source_fragment
2026-11-28 18:56:50 +01:00
3f2090f5ef Merge pull request #1975 from IlyassRS3/fix/rt-image-memory-unlock-alloc-and-overflow
runtime: unlock ImageMemoryPool across driver allocations/frees and fix BlockRanges alignment overflow
2026-11-28 18:56:28 +01:00
e308f5cb5d Merge pull request #1982 from IlyassRS3/perf/rt-conservative-raster-preamble-stop
runtime: stop inner_coverage_requirements scan at SPIR-V preamble boundary (RT-CONSERVATIVE-RASTER-PREAMBLE-STOP)
2026-11-28 18:55:48 +01:00
98f829dd40 Merge pull request #1992 from lgr123/lgr123/frame-interval-pending-vblank
Rebase pending flips when the frame interval changes
2026-11-28 18:55:26 +01:00
6b3d76df28 Merge pull request #2002 from IlyassRS3/fix/rt-xdxr-build-layout-empty-and-dispatch-guards
runtime: guard XdxrBuilder empty dispatches, layout failure reset, and pipeline cleanup (RT-XDXR-BUILD-LAYOUT-EMPTY-AND-DISPATCH-GUARDS)
2026-11-28 18:55:05 +01:00
81bb974c11 Merge pull request #2015 from IlyassRS3/fix/rt-dstorage-staging-overflow-and-reuse
dstorage: harden staging_bytes overflow and StagingPool::Lease reuse (RT-DSTORAGE-STAGING-OVERFLOW-AND-REUSE)
2026-11-28 18:54:43 +01:00
bfbd6af341 Merge pull request #2025 from IlyassRS3/perf/rt-retire-tickets-early-break-and-sem-cache
runtime: early-exit pending_through and cache semaphore completions in RetireTickets
2026-11-28 18:54:20 +01:00
3107c8a2a8 Merge pull request #2035 from IlyassRS3/fix/rt-cpu-emulation-clzero-region-and-bounds
runtime: step try_clzero_loop by VirtualQuery regions and guard wraparound in cpu_emulation
2026-11-28 18:53:57 +01:00
f139d7690a Merge pull request #2036 from IlyassRS3/fix/rt-clzero-patch-rel32-and-protect-guards
runtime: guard rel32 range, stub_page arithmetic, and VirtualProtect failure in clzero_patch
2026-11-28 18:53:35 +01:00
9193bce2ee Merge pull request #2038 from IlyassRS3/fix/rt-native-pso-fallback-independent-blend
runtime: respect IndependentBlendEnable=FALSE in B4G4R4A4 stand-in blend fallback
2026-11-28 18:53:13 +01:00
3408969a72 Merge pull request #2041 from IlyassRS3/fix/rt-base-reservation-overflow-and-parse-guards
runtime: guard base_reservation parsing and VirtualQuery loop overflow
2026-11-28 18:52:49 +01:00
6321c250b4 Merge pull request #2473 from Tyrannys/rt-state-depth-raster-backface-mask
native_pso: a single-sided stencil PSO keeps its depth/stencil/raster state (RT-STATE-DEPTH-RASTER-BACKFACE-MASK)
2026-11-28 18:52:26 +01:00
21c11b1f52 Merge pull request #2476 from Tyrannys/rt-state-pso-overlay-ds2-rs12
d3d12_xs: derived PSO overlays reach DEPTH_STENCIL2 and RASTERIZER1/2 (RT-STATE-PSO-OVERLAY-DS2-RS12)
2026-11-28 18:52:14 +01:00
cd124a402e Merge pull request #2499 from Tyrannys/rt-loader-runtime-scope-and-tls-slot
loader: wide run-time loads are dynamic; set tls_ga_slot before publishing (RT-LOADER-RUNTIME-SCOPE-AND-TLS-SLOT)
2026-11-28 18:51:52 +01:00
4fd360e1ca Merge pull request #2529 from Tyrannys/rt-bcrypt-gen-close-race
bcrypt_rng: BCryptCloseAlgorithmProvider waits for a BCryptGenRandom in flight (RT-BCRYPT-GEN-CLOSE-RACE)
2026-11-28 18:51:27 +01:00
9f64ef082b Merge pull request #2542 from Tyrannys/rt-com-nested-init-refs
com_shim: nested CoUninitialize gives its host reference back; check TlsSetValue (RT-COM-NESTED-INIT-REFS)
2026-11-28 18:51:03 +01:00
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
7d571f75b7 io_trace_test: /EHa under clang-cl, so the unreadable-name check is caught (RT-IO-TRACE)
copy_name reads the title's name inline in its __try. MSVC always catches that fault; clang-cl only with
asynchronous exceptions, and io_trace_test was built without them (dstorage.cpp has them through its source
property), so under clang-cl the safe_name(16) check ended the test with an unhandled page fault. Reported by
Tauwni on #1931 (clang-cl cross build, Wine 11). Reproduced with clang-cl 21 under Wine: 3 of 3 runs crash at
0x10 without /EHa, 3 of 3 pass with it. The header comment now says a caller needs /EHa under clang-cl.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JPqXc6svM4pbBagTsVEYA3
2026-11-28 17:26:44 +00: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
860eea0350 Merge remote-tracking branch 'origin/main' into claude/d3d-bundle-execute-indirect-37f83c 2026-11-28 15:50:15 +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
e890d0a101 docs: fix inaccurate doc paths/flags/env vars and add recommended variables to running.md
- docs/running.md: add Recommended variables (all platforms) table covering async submit/compile, compile-pool sizing, warm-up throttling, heap sizing, input, and telemetry/fault variables on main; update RX 7900 XTX RADV recipe and Reporting section
- runtime/README.md: document LEONIDA_CLWB_PATCH (runtime/src/cpu_emulation.h)
- AGENTS.md: add port_ctl.py (scripts/port_ctl.py) to numpy/Pillow exception list
- d3d12/docs/replay.md: fix nonexistent --looks flag reference to --flow
- docs/port_plan.md, docs/port_status.md, docs/ultrawide.md, docs/victory_gap_gpu.md, docs/victory_gap_media.md: fix typos (chad_dsp.cpp -> chad.cpp, VIctory tests/fidelityfx.rs -> crates/victory-hle/tests/fidelityfx.rs) and clearly mark unmerged-branch paths (runtime/ ultrawide, frame_step.h, media_foundation.cpp, gameinput_xinput.cpp, d3d12_xs_exports_test.cpp, pipeline_queue.h -> pipeline_wait.h)
- tests/test_docs_cli_flags.py: scan .rs sources and clap #[arg(long)] struct fields for d3d12/docs/*.md flags, treat cargo/git-filter-repo flags as foreign, and add docs/port_plan.md to OTHER_PROJECTS

AI-assisted: Antigravity (Gemini 4 Neon). Verified: 13/13 tests/test_docs_*.py pass and scripts/check_no_game_data.py clean.
2026-11-28 09:09:23 -05: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
a8b1abe4c2 Merge upstream ProjectLeonida/mandy main (0318164b8) into test/round10
# Conflicts:
#	tools/vk_subgroup_info.py
2026-11-28 08:35:30 -05: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
f238fb2756 Merge remote-tracking branch 'refs/remotes/origin/main' into HEAD 2026-11-28 14:30:44 +01:00
48f8e63297 Merge remote-tracking branch 'refs/remotes/origin/main' into HEAD 2026-11-28 14:30:41 +01:00
1a0e77ecb7 Merge pull request #1824 from Ch1mpleo/carry/old-9998
runtime: stop the configure when Vulkan headers are too old for the Windows runtime (OLD-9998)
2026-11-28 14:25:29 +01: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
600d675806 runtime: replace full-pass B1 feed_seq gate with lightweight feed-only mirror drain on coalesced submissions
AI-assisted: Antigravity (Gemini 4 Neon).
2026-11-28 06:45:23 -05: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