Commit Graph

13293 Commits

Author SHA1 Message Date
8564bb48bb Merge pull request #688 from aslan2142/game-rmdir-create-race
OLD-9215: restore old upstream PR 9215 - file_system: RemoveDirectory and a create inside the folder are ordered as on the host
2026-11-26 00:00:45 +01:00
d4681041ec Merge pull request #710 from aslan2142/gpuav-as-type
OLD-8414: restore old upstream PR 8414 - d3d12: arena AS resources take their address from vkGetAccelerationStructureDeviceAddressKHR
2026-11-25 23:59:57 +01:00
340e8a415c Merge pull request #638 from aslan2142/skip-int3-wine
OLD-7824: restore old upstream PR 7824 - startup_trace: LEONIDA_SKIP_INT3 works on title threads and with Wine's breakpoint address
2026-11-25 23:59:09 +01:00
696d70da19 Merge pull request #677 from aslan2142/root-sig-flag-mask
OLD-7234: restore old upstream PR 7234 - d3d12_xs: pin that the root-signature flag mask keeps every public flag (old upstream PR 7140)
2026-11-25 23:58:18 +01:00
809d1869af Merge pull request #657 from aslan2142/root-constants-zero
OLD-8904: restore old upstream PR 8904 - root_signature: accept root constants of 0 values, as the host does (D3D-942)
2026-11-25 23:57:31 +01:00
d34c426ef9 Merge pull request #684 from aslan2142/t-drive-overlay
OLD-8161: restore old upstream PR 8161 - file_system: T: is a folder of each process's own in the overlay
2026-11-25 23:56:38 +01:00
6ef26a648d Merge pull request #643 from aslan2142/delay-import-thread-order-notes
OLD-7423: restore old upstream PR 7423 - pe_loader: trace delay imports bound to an unimplemented thunk; document delay-load and thread order
2026-11-25 23:55:51 +01:00
722fee9af6 Merge main into delay-import-thread-order-notes (#643)
#634 rewrote the same runtime/README.md paragraph on the loader. Its text
stays, and its relocation sentence takes this PR's wording: DIR64 and
HIGHLOW relocations, the other types rejected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 17:54:12 -05:00
21d3662ad8 Merge pull request #634 from aslan2142/loader-rebase-without-reloc-dir
OLD-8847: restore old upstream PR 8847 - pe_loader: move an image with no relocation directory; refuse only on IMAGE_FILE_RELOCS_STRIPPED
2026-11-25 23:53:26 +01:00
5fab939676 Merge pull request #1630 from BubsMcgee/stream-output
d3d12: real SO_STATISTICS query pools (D3D-302)
2026-11-25 23:37:24 +01:00
844519ab59 Merge main into stream-output (#1630)
Brings in main after #1891, so main's tip is the single merge base;
no conflicts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 17:35:35 -05:00
1bf5eeafd7 Merge pull request #1891 from BubsMcgee/tf-device-foundation
d3d12_vulkan_device: detect and enable VK_EXT_transform_feedback + vk_pipeline_check parity (D3D-TRANSFORM-FEEDBACK-DEVICE)
2026-11-25 23:32:25 +01:00
17b5992b83 Merge pull request #804 from aslan2142/test1700-rdna3-repacking
OLD-7505: restore old upstream PR 7505 - w64_graphics, design: the wave32 VS run is the halves of the wave64 waves, not a repacking (TEST-1700)
2026-11-25 23:31:14 +01:00
d3b67a7040 Merge pull request #711 from aslan2142/semantic-d16-hi-inactive-lane
OLD-7866: restore old upstream PR 7866 - tests/semantic: buffer_load_short_d16_hi keeps both halves in inactive lanes
2026-11-25 23:30:14 +01:00
04221201c3 Merge pull request #748 from aslan2142/build1390-bvh4-parent-table
OLD-7640: restore old upstream PR 7640 - docs/bvh.md: the BVH4 parent table's start and extent (BUILD-1390)
2026-11-25 23:29:16 +01:00
45129e6bc0 Merge pull request #735 from aslan2142/world-build-png-budget
OLD-9481: restore old upstream PR 9481 - world_build: drop a staged chunk PNG once no later chunk uses it
2026-11-25 23:28:08 +01:00
b739685995 Merge pull request #730 from aslan2142/build589-vs-layout-census-guard
OLD-8645: restore old upstream PR 8645 - vs_layout_census: refuse a --json that is an input or a directory before survey() (BUILD-589)
2026-11-25 23:27:04 +01:00
d601736ced Merge pull request #723 from aslan2142/build2835-partial-version-match
OLD-7895: restore old upstream PR 7895 - make_game: an incomplete copy is named as a partial match of its version, with what is missing
2026-11-25 23:26:11 +01:00
3daeb1e111 Merge pull request #717 from aslan2142/resource-pointer-width
OLD-7482: restore old upstream PR 7482 - instance_lists, world_interior_names, world_lights_paths: read the block number from 20 bits
2026-11-25 23:25:17 +01:00
581ddba5d2 Merge pull request #714 from aslan2142/gamedata-spatial-grid-region3
OLD-7263: restore old upstream PR 7263 - gamedata_blobs: Region 1's lowest cell offset decides where Region 3 starts
2026-11-25 23:24:21 +01:00
eaa3792fd8 Merge pull request #713 from aslan2142/audit-shader4-limit-zero
OLD-7087: restore old upstream PR 7087 - audit_shader4_regs: --limit must be at least 1; 0 audited nothing and printed a zero report
2026-11-25 23:23:29 +01:00
7359f21b2b Merge pull request #697 from aslan2142/rt566-d3d12-device-calls
OLD-7998: restore old upstream PR 7998 - d3d12_device_calls: count the ID3D12Device slots the retail executable calls, from the file alone
2026-11-25 23:22:35 +01:00
83f791ae4d Merge pull request #648 from aslan2142/rtti-scan-last-slot
OLD-7481: restore old upstream PR 7481 - rtti_scan: scan the last aligned qword of a section for a COL pointer
2026-11-25 23:21:45 +01:00
b8c44ce8ec Merge pull request #649 from aslan2142/pe-inspect-rt-version
OLD-7282: restore old upstream PR 7282 - pe_inspect: read the resource directory and the RT_VERSION block without its strings
2026-11-25 23:20:51 +01:00
b4ae8916ef Merge pull request #653 from aslan2142/pe-inspect-linux-classes
OLD-7084: restore old upstream PR 7084 - pe_inspect: classify system DLLs on Linux through the Wine prefix, bundled names without case
2026-11-25 23:19:58 +01:00
392dda8f06 Merge pull request #833 from aslan2142/wave64-partial-wave-zero
OLD-7450: restore old upstream PR 7450 - wave64 emulate: a cross-lane read of a missing lane in a partial wave gives 0
2026-11-25 23:19:00 +01:00
ca9e45dbd1 Merge main into pe-inspect-linux-classes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 17:11:38 -05:00
dd6d3fd8a5 Merge main into stream-output (#1630)
Brings #1630 up to date with main; no conflicts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 17:04:49 -05:00
6af9c80a99 d3d12: refuse an active SO stream across heaps too (D3D-302)
VUID-vkCmdBeginQueryIndexedEXT-queryPool-04753 forbids two active
transform-feedback queries with the same index anywhere in the command
buffer, whatever their pools. prepare() tracked the active ones by heap
and stream, so two heaps beginning stream 0 together still issued two
active indexed queries. It now keeps one bit per stream for the list.

replay_query_predication case 18 adds a second heap: overlapping queries
on one stream in two heaps are refused, and queries that take turns on
that stream are fine.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 17:04:39 -05:00
d3b8251bc3 Merge pull request #1860 from lixonik/fix/title-3d-view-array-range
D3D-3D-VIEW-ARRAY-RANGE: use the single array layer for Vulkan 3D views
2026-11-25 23:02:37 +01:00
6b843a4ad6 Merge pull request #1889 from TheGeogeo/perf/big-compute-budget
d3d12: large pipelines compile side by side within a memory budget (RT-BIG-COMPUTE-BUDGET)
2026-11-25 23:01:13 +01:00
b8c925002c pe_inspect: advapi32.dll is host-owned too, as in owns_dll on main
main (273b3bdf9) added advapi32.dll to owns_dll's host list in
runtime/shims/registry.cpp, so test_runtime_shim_dlls_follow_the_registry
failed after merging main. Add it to _SHIM_HOST_DLLS in the same order.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 16:52:07 -05:00
865e2d7912 Merge commit 'refs/fix2/main' into fix2-653 2026-11-25 16:51:53 -05:00
48245b436d root_signature_test: 64 constants spill whole for compute, refused as a spill for pixel
This branch's check expected pack_stage(Compute) to refuse 64 constants
as an unmodelled spill. main's pack_stage now spills trailing compute
parameters behind s[0:1], so compute takes them (cost 64, one spilled
parameter of 64 dwords). The "refused only as a spill, not for cost"
check moves to a pixel shader, where a spill is still refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 16:51:33 -05:00
cb699500ac Merge pull request #771 from djrolfes/djrolfes-ci-main-signal
ci: add nightly main snapshots without expanding push queues (CI-MAIN-SIGNAL)
2026-11-25 22:48:35 +01:00
2a79af5a81 runtime/README: int3_skipped is per address until the 4096-slot table fills
The dedupe is a fixed table of 4096 addresses; past that a new site is
logged each time it is hit, as startup_trace.h says. Raised in review.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 16:43:53 -05:00
1d0bf24dc7 startup_trace: take the int3 candidate ExceptionAddress names; drop the unused <set>
int3_from tried the byte at Rip first and only then checked
ExceptionAddress against it. With Rip one past the 0xCC and
ExceptionAddress on it (a mixed form), a second 0xCC at Rip (int3
padding) was taken first and then refused by the address check, so that
int3 was not skipped. Each candidate (Rip, then Rip - 1) now has to agree
with ExceptionAddress before it is taken. Main did not skip it either,
so this closes a gap rather than a regression. int3_skip_test gets a
"padding" case for it.

The std::set the old dedupe used is gone, so its include goes too; the
candidate loop needs <initializer_list>. Both raised in review.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 16:43:47 -05:00
83c1bf2791 Merge commit 'refs/fix2/main' into fix2-638 2026-11-25 16:42:43 -05:00
ac3aef567b root_sig_public_flags_test: expect the heap-indexed fallback where the host refuses those flags
Since #1353 the shims' serializers (versioned and legacy) serialize a
description the host refuses for CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED or
SAMPLER_HEAP_DIRECTLY_INDEXED (Windows 10's in-box d3d12.dll): they call
the host again without the two bits and put them back into RTS0. The
three host-parity checks failed on Windows 10 for that, as reported in
review.

Where the host refuses such flags but takes the description without
them, the shim now has to return S_OK with that blob byte for byte,
except the RTS0 flags dword, which must hold all the flags, and a valid
container hash. Byte-for-byte parity stays wherever the host accepts,
and the shim still has to refuse whatever else the host refuses. The doc
bullet says the same.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 16:42:34 -05:00
5e85304b1f root_sig_public_flags_test: link d3d12_xs_pso_stream.cpp, as root_sig_test does on main
main's d3d12_xs.cpp now calls into d3d12_xs_pso_stream.cpp, and main
added that file to root_sig_test's sources; this target lists the same
shim files and needs it too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 16:41:49 -05:00
712714bef2 Merge main into perf/big-compute-budget (#1889)
Brings #1889 up to date with main after #1742 (the pipeline compile unlock),
resolving the five conflicts as described in the guide on the PR:
https://github.com/ubiquitarianism/leonida/pull/1889#issuecomment-7175252290

- vulkan_replay.h: PipelineCompiles::build takes both the large-compile
  budget and main's `prior` compiles; build_pipelines passes the budget,
  and main's check_compiled_pipelines / finish_compiled_pipelines stay.
- vulkan_backend.h: execute_now takes the large-compile demand and passes
  the budget to the pass-0 compile, and pass 1 passes the budget too.
  set_large_compiles locks pipeline_mutex_, since #1742 moved the
  pipeline state under that lock.
- replay_pipeline_compiles_test.cpp: both test blocks kept, and the
  prior_compiles_reuse call passes an empty budget.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 16:41:36 -05:00
00c65b940d Merge commit 'refs/fix2/main' into fix2-677 2026-11-25 16:40:58 -05:00
244e89f39c root_sig_contract: accept root constants of 0 values, as the runtime packer does
tools/root_sig_contract.py says its packing mirrors
runtime/src/root_signature.{h,cpp}, but it still refused a constant
parameter with count 0, so after this branch it rejected a signature the
runtime accepts. Accept count >= 0; a zero count adds no dwords and its
neighbours pack as if it were absent, in both the s0 and the console
layout. Raised in review.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 16:40:50 -05:00
509a543de7 Merge main into root-constants-zero
main's pack_stage now spills trailing compute parameters into the array
behind s[0:1] and refuses an unknown parameter type. Keep both; drop only
the zero-value constant refusal, as this branch does. A zero-value
constant takes no SGPRs and no spill dwords, and a new case checks the
spill offsets around one. The old "32-SGPR budget refuses before the
cost limit" comment no longer holds with spilling and goes; main's
over-cost case replaces it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 16:40:13 -05:00
1fe5072afb Merge pull request #847 from KernelSmoker/kernelsmoker/x64-recomp-primary-90
x64_recomp: decode opcode 0x90 forms (X64-RECOMP-PRIMARY-90)
2026-11-25 22:39:49 +01:00
afea66650c Merge main into delay-import-thread-order-notes
runtime/shims/startup_trace.h: main added the tls_index0 example event
and the exception's region/regs fields to the header comment; keep them,
add this branch's delay_import_unimplemented example and renumber seq.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 16:38:51 -05:00
c116c3fa28 Merge main into t-drive-overlay
docs/boot.md: main added LEONIDA_WRITE_DIR / LEONIDA_SAVE_DIR to the
--overlay bullet and a new "Under Wine on Linux" section; keep both and
the T: paragraph of this branch after main's sentences.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 16:38:20 -05:00
0bae6f545a Merge main into wave64-partial-wave-zero
scripts/run_gpu_tests.py: main added cs_w32_wrxchg2_ext and
cs_w32_wrxchg2st64 to the same name list; keep main's list and add
cs_w64x_partial_swizzle to it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 16:37:28 -05:00
24d8af66af Merge pull request #1220 from iFeyz/gpu/rx9070xt-refresh
gpu-test-results: RX 9070 XT on 58be9cd, with build.py and check.py (GPU-RX9070XT-REFRESH)
2026-11-25 18:33:39 -03:00
adf9c3f20b Merge main into gpu/rx9070xt-refresh
Keep this branch's RX 9070 XT row and the rows main added below it (RX 9070, Ryzen 5 7600X iGPU, RTX 5070 Ti, RTX 3080).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 18:33:16 -03:00