Skip to content

d3d12/vulkan: implement multi-viewport and multi-scissor rendering (D3D-MULTI-VIEWPORT) - #510

Merged
aslan2142 merged 1 commit into
ProjectLeonida:mainfrom
jujumoneylol:pr/d3d12-multi-viewport
Nov 24, 2026
Merged

aslan2142 merged 1 commit into
ProjectLeonida:mainfrom
jujumoneylol:pr/d3d12-multi-viewport

Conversation

@jujumoneylol

Copy link
Copy Markdown
Contributor

Claimed in the coordination issue as: D3D-MULTI-VIEWPORT (#14 (comment))

Depends on: #469, #499 (adjacent lines in vulkan_replay.h draw replay, d3d12_vulkan_device.cpp, d3d12_com.cpp, and vk_test_device.h if multiple merge; this branch is based cleanly on current main 8f481cf16 with no code dependency on either)

What and why

Previously, RSSetViewports and RSSetScissorRects silently dropped every viewport and scissor past index 0 (stub("more than one viewport; the first is used")), and graphics pipelines fixed viewportCount = 1 / scissorCount = 1 even though main already enables Vulkan 1.2 shaderOutputViewportIndex and advertises VPAndRTArrayIndexFromAnyShaderFeedingRasterizerSupportedWithoutGSEmulation = TRUE.

  • Command list (runtime/src/command_list.h, runtime/shims/d3d12_com.cpp):
    • Stores all 1..16 D3D12 viewports and 1..16 scissor rects in GraphicsCommandList (validating count <= 16 on both) and caches a shared DrawViewports block (zero allocation per draw, and nullptr / zero overhead for the common 1-viewport case).
    • Updates record_draw and DispatchMesh to skip rasterization only when all bound viewports are empty, so draws with an empty viewport 0 and active viewports 1..15 still run.
  • Vulkan 1.3 dynamic state (runtime/src/vulkan_backend.h, runtime/shims/d3d12_vulkan_device.cpp, runtime/src/vulkan_replay.h):
    • Enables VkPhysicalDeviceFeatures::multiViewport in create_vulkan_device_standalone and vktest::Device (plus shaderOutputViewportIndex in vktest::Device).
    • Loads vkCmdSetViewportWithCount and vkCmdSetScissorWithCount (Vulkan 1.3 core) and switches graphics pipelines to VK_DYNAMIC_STATE_VIEWPORT_WITH_COUNT + VK_DYNAMIC_STATE_SCISSOR_WITH_COUNT (with viewportCount = 0, scissorCount = 0) whenever features.multiViewport and the entry points are available (falling back cleanly to single-viewport vkCmdSetViewport / vkCmdSetScissor otherwise).
    • Handles mismatched viewport/scissor counts and empty viewport slots per both D3D12 and Vulkan specs: passes matching count = max(vp_count, sc_count) to both calls, pairs empty/unbound viewport slots with a 1×1 dummy viewport and an empty {0, 0, 0, 0} scissor so nothing rasterizes and Vulkan's width > 0 VUID is satisfied, and clips unbound scissor slots with {0, 0, 0, 0}.
  • Live GPU host-parity test (runtime/test/d3d12_multi_viewport_test.cpp):
    • Self-contained (in-memory SPIR-V 1.5 VS with OpCapability MultiViewport + OpCapability ShaderViewportIndex writing BuiltIn ViewportIndex, HLSL via d3dcompiler_47 for host reference).
    • Verifies 4 simultaneous quadrant viewports in a single draw call, 4 independent half-clipping scissors, mismatched counts (4 viewports / 2 scissors), and empty viewport 0 + active viewports 1..3 — comparing all 64/64 pixels byte-for-byte against host Windows D3D12.

Tested

  • Built d3d12_multi_viewport_test, d3d12_state_map_test, and replay_cpu_bench with MSVC 19.44 (vcvars64) + Ninja on top of main 8f481cf16.
  • d3d12_multi_viewport_test: ALL 4 CASES PASSED (EXACT MATCH vs host D3D12) — 64/64 pixels exact on every case on NVIDIA GeForce GTX 1650 with 0 validation errors.
  • d3d12_state_map_test: PASSED.
  • py -3.13 -I scripts/check_no_game_data.py on all 9 touched files: clean.

GPUs tested: NVIDIA GeForce GTX 1650 Mobile 4 GB (driver 592.00, Vulkan 1.4.325, Windows 11 26200)

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a — D3D12 → Vulkan runtime only)

@sodove

sodove commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Independent Windows verification of the exact #510 diff (7d50f3b) applied to main 1c93c86. NVIDIA RTX 5070 Ti, driver 610.74, Windows 11 26100.7623, MSVC 19.44.35220 Release. Native D3D12 used the same adapter. Khronos Vulkan validation 1.4.369 was enabled and reported zero errors.

  • Stock test: four cases, 256/256 pixels matched native D3D12.
  • Five draws in one direct list with reordered viewport arrays, multi-to-single transitions, zero viewports, zero scissors, and a scissor-only rebind: 64/64 pixels matched both native D3D12 and an independently computed expected image.
  • Draw through viewport/scissor slot 15 with all earlier slots empty, then shrink to one viewport and draw again in the same list: 64/64 pixels matched both references.

Synthetic fixtures derived from the PR test. AI-assisted.

demoz53 added a commit to demoz53/leonida that referenced this pull request Nov 24, 2026
…nd multi-scissor rendering (1..16 viewports/scissors)

Resolved against ProjectLeonida#499's emit_graphics_pass, ProjectLeonida#469's depth bounds and ProjectLeonida#511's lazy modules: the viewport/scissor setup moves into emit_graphics_pass, the pipeline's dynamic-state list keeps DEPTH_BOUNDS and picks the *_WITH_COUNT states, and ProjectLeonida#499's ExecuteIndirect draws now carry the bound depth bounds and viewports like record_draw.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
demoz53 added a commit to demoz53/leonida that referenced this pull request Nov 24, 2026
…ewport and multi-scissor rendering (1..16 viewports/scissors)"

This reverts commit 5a70041, reversing
changes made to 8097cf6.
@Sangonapou

Copy link
Copy Markdown
Contributor

Tested 7d50f3b on NVIDIA GeForce RTX 3080 Ti Laptop (Ampere, subgroup 32..32, mesh shaders), NVIDIA 621.24, Vulkan 1.4.357, Windows 11 Pro (build 26300), native Windows: pass

Runtime built at this head with scripts\build_runtime.ps1 (MSVC 19.51, VS Build Tools 2026, Windows SDK 10.0.26100, Vulkan SDK 1.4.363.0). No game files. Tested as it stands (it lists #469 and #499 as adjacent, not merged in).

ctest -R ^d3d12_multi_viewport$ -V, host reference the same RTX 3080 Ti through the real D3D12 runtime:

4 quadrant viewports + 4 full scissors               [64/64 px EXACT vs host] OK
4 viewports + 4 independent half-clipping scissors   [64/64 px EXACT vs host] OK
4 viewports + 2 scissors (slots 2,3 clipped)         [64/64 px EXACT vs host] OK
empty vp0 + active vp1..3                            [64/64 px EXACT vs host] OK
d3d12_multi_viewport_test: ALL 4 CASES PASSED (EXACT MATCH vs host D3D12)

@aslan2142
aslan2142 merged commit ccd9c5f into ProjectLeonida:main Nov 24, 2026
1 check passed
@aslan2142

Copy link
Copy Markdown
Collaborator

Merged. This was compared with #827 for D3D-MULTI-VIEWPORT, and it is the better fix:

  • With an empty viewport 0 and other viewports in use, this sends a 1x1 dummy viewport with an empty scissor. A zero-width VkViewport there would break VUID-VkViewport-width-01770.
  • The pixel test against native D3D12 covers 4 quadrant viewports, separate scissors, mismatched counts and an empty viewport 0, and two other contributors confirmed it on Windows.
  • The claim is valid and first, and it merges cleanly onto current main.

Worth a follow-up, from #827: the docs/d3d12_vulkan.md line for this feature, and a notice when multiViewport is missing.

AI-assisted (Claude Code, Claude Fable 5.2 and Claude Opus 5.5).

@QemmHD

QemmHD commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

Post-merge finding: d3d12_close_parity has failed on main since this PR (113 cases, 1 failure):

FAIL RSSetScissorRects(17): layer Close 0x80070057, WARP succeeds

The cause is the new line in RSSetScissorRects (runtime/shims/d3d12_vulkan_device.cpp): if (count > D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE) return check(false);. That puts the list into the error state, so Close returns E_INVALIDARG. The parity row at runtime/test/d3d12_close_parity_test.cpp:362 expects the layer to match WARP, and WARP's Close succeeds after RSSetScissorRects(17, …). Before this PR the call only stubbed and used the first rectangle, so the row passed.

Measured on Windows 11 / RTX 4070 SUPER (VS 2022, Ninja, RelWithDebInfo): it passes at 58be9cd, and fails at plain 32a5d96 both plain and with LEONIDA_VK_VALIDATION=1. The only other runtime change in that range is #878 (stencil face masks), which doesn't touch scissors. The rest of the suite is unchanged.

There are two ways to fix it, depending on which behaviour the project wants:

  • Keep WARP parity: for count > 16, ignore the call or keep the first 16 instead of calling check(false). That matches the existing row and native D3D12's Close.
  • Make refusal intended: update that row of the parity test to expect a failure, with a note why.

AI-assisted (Claude Code, Claude Opus 5.5).

xel1uz pushed a commit to xel1uz/mandy that referenced this pull request Nov 24, 2026
Merging.

**Why merged:** RT-4444-TARGET: where the device can't use a 4444 format as a colour attachment (NVIDIA), a B4G4R4A4 render target becomes an RGBA8 image. Its T#s keep the 4_4_4_4 format, and PSO RTV formats follow the image. Before this, the render target couldn't be created at all (size UINT64_MAX). sodove (5070 Ti) and SweatierKey approved.

**Why it's good:** The new d3d12_b4g4r4a4_target really runs here (not skipped): "B4G4R4A4_UNORM ... using RGBA8", OK, 0 validation errors. b5g5r5a1_uav, srgb_uav and vulkan_device also pass. **Follow-up, not a blocker:** sodove measured that the RGBA8 fallback stores clears at 8-bit precision instead of quantising to 4 bits (0/1920 texels matched WARP's 4-bit result), and buffer-footprint copies from it move 4-byte texels (documented in the code). Quantising on clear and store would close that gap.

Tested on Windows 11 / RTX 4070 SUPER (NVIDIA 621.24), VS 2022 + Ninja RelWithDebInfo, Vulkan SDK 1.4.363.0. Merged alone onto main, its ctests pass both plain and with LEONIDA_VK_VALIDATION=1. Cumulative: ProjectLeonida#517, ProjectLeonida#907, ProjectLeonida#927, ProjectLeonida#954 and ProjectLeonida#1074 merged onto main 32a5d96 (after aslan2142's runtime merges). There the repo-consistency set gives 573 passed / 5 skipped / 0 failed, compileall is clean, and full ctest is 314/316 with the same 11 skips. The 2 failures are d3d12_depth_resolve (pre-existing) and d3d12_close_parity, which fails on plain 32a5d96 too: a regression from ProjectLeonida#510, reported there, not from these PRs. git merge-tree against current main: no conflicts. Security read of the three-dot diff: no binaries, game data, downloads, network calls or CI changes.

AI-assisted (Claude Code, Claude Opus 5.5).
QemmHD added a commit that referenced this pull request Nov 24, 2026
Merging.

**Why merged:** VK-UAV-CLEAR-PACK16: B5G6R5, B5G5R5A1 and B4G4R4A4 join the UAV-clear layout table, with conversion checks and an exhaustive 65,536-word round trip. Timon360SB (2060S and 5070, 60/60) and SweatierKey approved. The current head b67109e is a content-identical rebase of the reviewed one.

**Why it's good:** uav_clear, short_uav_clear, b5g5r5a1_uav and replay_uav_clear_offset all pass both plain and under validation.

Tested on Windows 11 / RTX 4070 SUPER (NVIDIA 621.24), VS 2022 + Ninja RelWithDebInfo, Vulkan SDK 1.4.363.0. Merged alone onto main, its ctests pass both plain and with LEONIDA_VK_VALIDATION=1. Cumulative: #517, #907, #927, #954 and #1074 merged onto main 32a5d96 (after aslan2142's runtime merges). There the repo-consistency set gives 573 passed / 5 skipped / 0 failed, compileall is clean, and full ctest is 314/316 with the same 11 skips. The 2 failures are d3d12_depth_resolve (pre-existing) and d3d12_close_parity, which fails on plain 32a5d96 too: a regression from #510, reported there, not from these PRs. git merge-tree against current main: no conflicts. Security read of the three-dot diff: no binaries, game data, downloads, network calls or CI changes.

AI-assisted (Claude Code, Claude Opus 5.5).
QemmHD added a commit that referenced this pull request Nov 24, 2026
Merging.

**Why merged:** RT-TITLE-HOST-REGION: a test-only probe that imports a 185 MiB host region as a BDA buffer through VK_EXT_external_memory_host and checks coherence both ways. A machine that can't import exits 77 (skip). No runtime source changes. Timon360SB, madhyn (3060 Ti/Wine) and SweatierKey approved.

**Why it's good:** vk_host_region_import and its _validation variant: "185 MiB imported ... cpu-gpu-coherence=ok", 0 validation errors. Nit for a follow-up: the _validation test sets VK_VALIDATE_SYNC=1, which nothing in the tree reads; if sync validation is the goal, the Khronos layer setting is spelled differently, so that variant probably runs core validation only.

Tested on Windows 11 / RTX 4070 SUPER (NVIDIA 621.24), VS 2022 + Ninja RelWithDebInfo, Vulkan SDK 1.4.363.0. Merged alone onto main, its ctests pass both plain and with LEONIDA_VK_VALIDATION=1. Cumulative: #517, #907, #927, #954 and #1074 merged onto main 32a5d96 (after aslan2142's runtime merges). There the repo-consistency set gives 573 passed / 5 skipped / 0 failed, compileall is clean, and full ctest is 314/316 with the same 11 skips. The 2 failures are d3d12_depth_resolve (pre-existing) and d3d12_close_parity, which fails on plain 32a5d96 too: a regression from #510, reported there, not from these PRs. git merge-tree against current main: no conflicts. Security read of the three-dot diff: no binaries, game data, downloads, network calls or CI changes.

AI-assisted (Claude Code, Claude Opus 5.5).
QemmHD added a commit that referenced this pull request Nov 24, 2026
Merging.

**Why merged:** TEST-INDIRECT-RT-ARENA: d3d12_indirect_rt_test replaces a nested std::max with an initializer-list std::max to work around an MSVC 19.52 miscompile. It's 6 lines. sodove passed both revisions, and the current head is a content-identical rebase.

**Why it's good:** indirect_rt and indirect_rt_upload_sysmem: PASS with 0 validation errors, and the RayQuery got hit=1 here under validation. Timon360SB's hit=0 on a 5070 with GPU-assisted validation shows up on the base too, so it isn't this PR.

Tested on Windows 11 / RTX 4070 SUPER (NVIDIA 621.24), VS 2022 + Ninja RelWithDebInfo, Vulkan SDK 1.4.363.0. Merged alone onto main, its ctests pass both plain and with LEONIDA_VK_VALIDATION=1. Cumulative: #517, #907, #927, #954 and #1074 merged onto main 32a5d96 (after aslan2142's runtime merges). There the repo-consistency set gives 573 passed / 5 skipped / 0 failed, compileall is clean, and full ctest is 314/316 with the same 11 skips. The 2 failures are d3d12_depth_resolve (pre-existing) and d3d12_close_parity, which fails on plain 32a5d96 too: a regression from #510, reported there, not from these PRs. git merge-tree against current main: no conflicts. Security read of the three-dot diff: no binaries, game data, downloads, network calls or CI changes.

AI-assisted (Claude Code, Claude Opus 5.5).
QemmHD added a commit that referenced this pull request Nov 24, 2026
Merging.

**Why merged:** RT-INPUT-SCRIPT-LENGTH: the shim's env() reader now handles values of any length (64 characters or more used to read as unset). The PR also adds the LEONIDA_INPUT_SCRIPT keyboard-pad scheduler (`button@seconds`, 300 ms presses), documented in docs/gameinput.md. That's a second topic, but the body says so, and both parts were reviewed. sodove checked 14/14 runs across lengths, with the control failing 12/12, and kawaii-shakal's harness follow-ups were addressed.

**Why it's good:** gameinput_host, gameinput and the new gameinput_script pass; with validation, gameinput_script passes and logs "8 accepted / 11 rejected". The parsing is bounded (strtod with end-pointer and finiteness checks) and reads only its own env var.

Tested on Windows 11 / RTX 4070 SUPER (NVIDIA 621.24), VS 2022 + Ninja RelWithDebInfo, Vulkan SDK 1.4.363.0. Merged alone onto main, its ctests pass both plain and with LEONIDA_VK_VALIDATION=1. Cumulative: #517, #907, #927, #954 and #1074 merged onto main 32a5d96 (after aslan2142's runtime merges). There the repo-consistency set gives 573 passed / 5 skipped / 0 failed, compileall is clean, and full ctest is 314/316 with the same 11 skips. The 2 failures are d3d12_depth_resolve (pre-existing) and d3d12_close_parity, which fails on plain 32a5d96 too: a regression from #510, reported there, not from these PRs. git merge-tree against current main: no conflicts. Security read of the three-dot diff: no binaries, game data, downloads, network calls or CI changes.

AI-assisted (Claude Code, Claude Opus 5.5).
@aslan2142

Copy link
Copy Markdown
Collaborator

@QemmHD thanks, confirmed, and the fix is up as #1286.

  • Reproduced with a clang-cl + xwin build under Wine, on llvmpipe and on an RDNA2 iGPU: d3d12_close_parity has 0 failures at e0f171958 (the commit before this merge) and fails at ccd9c5f36 with the same RSSetScissorRects(17) line.
  • Where: the check is in RSSetScissorRects in runtime/shims/d3d12_com.cpp, not in d3d12_vulkan_device.cpp.
  • The fix keeps WARP parity, your first option: for more than 16 rectangles it uses the first 16, with a stub notice, where the merged code called check(false). Marking the row stricter would make the layer refuse lists that D3D12 runs.
  • Tested: with d3d12: RSSetScissorRects with more than 16 rectangles keeps the first 16; d3d12_close_parity passes again (D3D-SCISSOR-COUNT-PARITY) #1286, d3d12_close_parity and d3d12_multi_viewport pass on both devices, and no other test in the suite changes state.

I merged #510 without running the whole Windows suite on it; that's on me, and I run it before every runtime merge now. I can't merge my own PR, so could you take a look at #1286? If it can't land soon, I'll revert ccd9c5f36 so main is green in the meantime.

AI-assisted (Claude Code, Claude Fable 5.2).

QemmHD added a commit that referenced this pull request Nov 24, 2026
Merging.

**Why merged:** ARENA-NEGATIVE-MB: LEONIDA_ARENA_MB is parsed with strtoll, so a negative value clamps to the 16 MiB floor instead of wrapping around to the 4095 MiB maximum. KernelSmoker approved this exact head.

**Why it's good:** A 3-line parse change. arena_size passes both plain and under validation.

Tested on Windows 11 / RTX 4070 SUPER (NVIDIA 621.24), VS 2022 + Ninja RelWithDebInfo, Vulkan SDK 1.4.363.0. Merged alone onto main 66d4f5a, its ctests pass both plain and with LEONIDA_VK_VALIDATION=1. Cumulative of this batch (13 PRs) on main 0b45fdc: the repo-consistency set gives 573 passed / 5 skipped / 0 failed, compileall is clean, and full ctest is 314/316 with the same 11 skips. The only failures are main's: d3d12_depth_resolve (pre-existing) and d3d12_close_parity (the #510 regression, fixed by #1286). All d3d12_* tests under validation show 0 VUIDs. git merge-tree against current main 6261ca9: no conflicts. Security read of the three-dot diff: no binaries, game data, downloads, network calls or CI changes.

AI-assisted (Claude Code, Claude Opus 5.5).
QemmHD added a commit that referenced this pull request Nov 24, 2026
…unce-and-nan

Merging.

**Why merged:** RT-ACTIVE-INPUT-DEBOUNCE-NAN: active_input ignores an out-of-order timestamp in the debounce and ignores NaN/Inf stick and trigger samples. KernelSmoker's note that the new case wasn't registered doesn't apply at this head: it's in cases[] and runs ("8 of 8 cases pass"), as the author replied.

**Why it's good:** Header-only logic. active_input passes both plain and under validation.

Tested on Windows 11 / RTX 4070 SUPER (NVIDIA 621.24), VS 2022 + Ninja RelWithDebInfo, Vulkan SDK 1.4.363.0. Merged alone onto main 66d4f5a, its ctests pass both plain and with LEONIDA_VK_VALIDATION=1. Cumulative of this batch (13 PRs) on main 0b45fdc: the repo-consistency set gives 573 passed / 5 skipped / 0 failed, compileall is clean, and full ctest is 314/316 with the same 11 skips. The only failures are main's: d3d12_depth_resolve (pre-existing) and d3d12_close_parity (the #510 regression, fixed by #1286). All d3d12_* tests under validation show 0 VUIDs. git merge-tree against current main 6261ca9: no conflicts. Security read of the three-dot diff: no binaries, game data, downloads, network calls or CI changes.

AI-assisted (Claude Code, Claude Opus 5.5).
QemmHD added a commit that referenced this pull request Nov 24, 2026
Merging.

**Why merged:** RT-712: XPersistentLocalStorageGetPath reports the required size on a short buffer and leaves the buffer untouched, as the GDK documents. moffington's ASan/UBSan harness passes 26/26, and their comment nit is fixed.

**Why it's good:** There are no writes into the caller's buffer on that path. xgameruntime passes both plain and under validation.

Tested on Windows 11 / RTX 4070 SUPER (NVIDIA 621.24), VS 2022 + Ninja RelWithDebInfo, Vulkan SDK 1.4.363.0. Merged alone onto main 66d4f5a, its ctests pass both plain and with LEONIDA_VK_VALIDATION=1. Cumulative of this batch (13 PRs) on main 0b45fdc: the repo-consistency set gives 573 passed / 5 skipped / 0 failed, compileall is clean, and full ctest is 314/316 with the same 11 skips. The only failures are main's: d3d12_depth_resolve (pre-existing) and d3d12_close_parity (the #510 regression, fixed by #1286). All d3d12_* tests under validation show 0 VUIDs. git merge-tree against current main 6261ca9: no conflicts. Security read of the three-dot diff: no binaries, game data, downloads, network calls or CI changes.

AI-assisted (Claude Code, Claude Opus 5.5).
QemmHD added a commit that referenced this pull request Nov 24, 2026
…ned-root-sig-deserializer

Merging.

**Why merged:** OLD-10012: d3d12_xs exports D3D12CreateVersionedRootSignatureDeserializer and ordinal #7, forwarding to the host with the Xbox RTS0 flags cleared on a copy (the existing copy_rts0_blob_clear_xbox_flags guard). d3d12_xs_surface.md is updated. SweatierKey verified an earlier head, and trigger337's redundant-checksum finding is fixed in this head, with a zero-hash test.

**Why it's good:** root_sig passes both plain and under validation.

Tested on Windows 11 / RTX 4070 SUPER (NVIDIA 621.24), VS 2022 + Ninja RelWithDebInfo, Vulkan SDK 1.4.363.0. Merged alone onto main 66d4f5a, its ctests pass both plain and with LEONIDA_VK_VALIDATION=1. Cumulative of this batch (13 PRs) on main 0b45fdc: the repo-consistency set gives 573 passed / 5 skipped / 0 failed, compileall is clean, and full ctest is 314/316 with the same 11 skips. The only failures are main's: d3d12_depth_resolve (pre-existing) and d3d12_close_parity (the #510 regression, fixed by #1286). All d3d12_* tests under validation show 0 VUIDs. git merge-tree against current main 6261ca9: no conflicts. Security read of the three-dot diff: no binaries, game data, downloads, network calls or CI changes.

AI-assisted (Claude Code, Claude Opus 5.5).
QemmHD added a commit that referenced this pull request Nov 24, 2026
…sing-folder-error

Merging.

**Why merged:** OLD-10004: DeleteFile, RemoveDirectory, SetFileAttributes and the MoveFile source return ERROR_PATH_NOT_FOUND for a name inside a missing folder, as the host does. runtime_imports.md is updated. moffington ran it under Wine with no regressions.

**Why it's good:** Error codes only. The new checks compare against the real host APIs, and the test confirms nothing is left in the overlay. file_system passes both plain and under validation.

Tested on Windows 11 / RTX 4070 SUPER (NVIDIA 621.24), VS 2022 + Ninja RelWithDebInfo, Vulkan SDK 1.4.363.0. Merged alone onto main 66d4f5a, its ctests pass both plain and with LEONIDA_VK_VALIDATION=1. Cumulative of this batch (13 PRs) on main 0b45fdc: the repo-consistency set gives 573 passed / 5 skipped / 0 failed, compileall is clean, and full ctest is 314/316 with the same 11 skips. The only failures are main's: d3d12_depth_resolve (pre-existing) and d3d12_close_parity (the #510 regression, fixed by #1286). All d3d12_* tests under validation show 0 VUIDs. git merge-tree against current main 6261ca9: no conflicts. Security read of the three-dot diff: no binaries, game data, downloads, network calls or CI changes.

AI-assisted (Claude Code, Claude Opus 5.5).
QemmHD added a commit that referenced this pull request Nov 24, 2026
Merging.

**Why merged:** TEST-WINE-HOST-GUARDS, test-only: eight host-comparison tests skip the host part under Wine and still check the layer, and the heap-properties and residency tests gain layer-only assertions. moffington's request for layer assertions is done, and kawaii-shakal ran all 8 on an RTX 5070 Ti with validation.

**Why it's good:** 8/8 pass both plain and under validation, with no skips on Windows. The only host libraries loaded are d3dcompiler_47 from SYSTEM32 and dxgi.dll.

Tested on Windows 11 / RTX 4070 SUPER (NVIDIA 621.24), VS 2022 + Ninja RelWithDebInfo, Vulkan SDK 1.4.363.0. Merged alone onto main 66d4f5a, its ctests pass both plain and with LEONIDA_VK_VALIDATION=1. Cumulative of this batch (13 PRs) on main 0b45fdc: the repo-consistency set gives 573 passed / 5 skipped / 0 failed, compileall is clean, and full ctest is 314/316 with the same 11 skips. The only failures are main's: d3d12_depth_resolve (pre-existing) and d3d12_close_parity (the #510 regression, fixed by #1286). All d3d12_* tests under validation show 0 VUIDs. git merge-tree against current main 6261ca9: no conflicts. Security read of the three-dot diff: no binaries, game data, downloads, network calls or CI changes.

AI-assisted (Claude Code, Claude Opus 5.5).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants