Skip to content

Tests: four D3D12 tests skip on a 128-byte push-constant GPU instead … - #3093

Merged
ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
DavidM1911:test-128-byte-d3d12-skips
Nov 22, 2026
Merged

ItsNotRexed merged 1 commit into
ItsNotRexed:mainfrom
DavidM1911:test-128-byte-d3d12-skips

Conversation

@DavidM1911

Copy link
Copy Markdown

Claimed in the coordination issue as: new item — d3d12_fspx_compute, d3d12_msaa_draw, d3d12_set0_compute and d3d12_pipeline_library fail on a 128-byte push-constant GPU (#2300)

What and why

These four tests build their PSOs from 144-byte push-constant shaders. On a device whose maxPushConstantsSize is 128 — AMD's Windows driver on RDNA2 iGPUs, some Intel Arc drivers — the D3D12 layer refuses those PSOs with E_NOTIMPL, which D3D-14 intends. Each test then fails at its first CreatePipelineState, so ctest reports 4 failures on a correct runtime (seen on main 4947579). They now print the reason and exit 77, which is already their SKIP_RETURN_CODE, after creating the device and before the first incompatible PSO. pipeline_library still runs its library-blob checks first. Devices with 144 bytes or more are unchanged; d3d12_compute and d3d12_draw are left to #2402, which runs their --pc-tail-ubo path on such devices instead of skipping.

Tested

  • AMD Radeon(TM) Graphics, Ryzen 9 7900X iGPU (RDNA2, gfx1036), AMD driver 24.10.24, maxPushConstantsSize 128, Windows 11, full runtime built with MSVC (VS Build Tools 2026) + Windows SDK 10.0.26100 + Vulkan SDK 1.4.363:
    • before: all four FAIL ("pipelines need 144 push-constant bytes and this GPU has 128")
    • after: all four SKIP with the reason, 0 failed
  • NVIDIA GeForce RTX 3060 Ti (256 bytes): all four PASS, unchanged
  • ctest, RTX 3060 Ti, full suite: 116 tests, 0 failed, no regressions

No game data.

Checklist

  • 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 — no translator change)

…of failing

d3d12_fspx_compute, d3d12_msaa_draw, d3d12_set0_compute and
d3d12_pipeline_library build PSOs from 144-byte shaders. On a device
whose maxPushConstantsSize is 128 (AMD's Windows driver on RDNA2 iGPUs,
some Intel Arc drivers) the layer refuses those PSOs with E_NOTIMPL, as
D3D-14 intends, so the tests failed at the first CreatePipelineState and
ctest reported 4 failures on a correct runtime. They now exit 77 there
(SKIP_RETURN_CODE in CMake) with the reason; pipeline_library still runs
its library-blob checks first. Devices with 144 bytes or more are
unchanged. d3d12_compute and d3d12_draw are left to ItsNotRexed#2402, which runs
their --pc-tail-ubo path on such devices.

AI-assisted.
@Bj0rnis

Bj0rnis commented Nov 22, 2026

Copy link
Copy Markdown

Tested e5355688 on NVIDIA GeForce RTX 5070 Ti (Blackwell, NVIDIA 621.24, Vulkan 1.4.357) and AMD Radeon(TM) Graphics (RDNA2 iGPU, AMD 2026.04.17, Vulkan 1.4.315), Windows 11: pass

Built with MSVC 19.44 / Ninja / Windows SDK 10.0.26100.0 / Vulkan SDK 1.4.363.0 (scripts\build_runtime.ps1), run with LEONIDA_VK_VALIDATION=1 and DISABLE_VULKAN_OBS_CAPTURE=1:

  • RTX 5070 Ti: ctest -R "^(d3d12_fspx_compute|d3d12_msaa_draw|d3d12_pipeline_library|d3d12_set0_compute)$" -V — 4/4 passed, 0 Vulkan validation errors.
  • AMD Radeon iGPU (LEONIDA_VK_DEVICE=AMD): same 4 tests — 4/4 passed, 0 Vulkan validation errors.

(Scope: both GPUs on this host report 256-byte push constants, so this confirms no regressions on the normal non-skipping path; the 128-byte skip branch itself was not triggered here.)

AI-assisted (Antigravity / Gemini); no game files used.

@JRamos1993

Copy link
Copy Markdown
Contributor

Tested e535568 merged onto main 1628210 on an RTX 5090 (driver 616.92), Windows 11, MSVC 19.44, Vulkan SDK 1.4.363, RelWithDebInfo:

  • Full ctest: 130/130.
  • d3d12_fspx_compute, d3d12_msaa_draw, d3d12_pipeline_library and d3d12_set0_compute: pass 20 of 20 runs, and pass under LEONIDA_VK_VALIDATION=1 with 0 validation messages.
  • Warnings: none new in the files this PR changes.

AI-assisted (Claude Code).

@zzEmmazz

Copy link
Copy Markdown
Contributor

Tested e5355688, applied alone on main 16282101: pass, on 256-byte devices only.
Windows 11 (26200), MSVC 14.50 (VS 2026), Ninja RelWithDebInfo. Two GPUs: Ryzen 7 9700X iGPU (RDNA2, AMD 32.0.21042.62) and RTX 3070 (NVIDIA 610.74), picked with LEONIDA_VK_DEVICE.

  • Both GPUs report maxPushConstantsSize: 256 bytes, so the new skip is never taken here. What this shows is that nothing changes on such a device.
  • Builds with 0 errors and no warning in the four files.
  • d3d12_fspx_compute_test, d3d12_msaa_draw_test, d3d12_pipeline_library_test and d3d12_set0_compute_test, run directly on each GPU: exit 0 in all 8 runs, and the output is the same as main's line for line once the pointer values in the [rt] log lines are masked (0 lines differ).
  • ctest -R "^d3d12_(fspx_compute|msaa_draw|pipeline_library|set0_compute)$": 4/4 pass on the Radeon and 4/4 on the RTX 3070, as on main.
  • Read, not run: in fspx_compute, msaa_draw and set0_compute the skip returns after the test has written its shader library under the temp directory, and those tests remove that folder only at their normal end, so a skipped run leaves leonida_<test> behind. Tests: per-process temp folders for shader libraries; d3d12_compute skips the CachedPSO host comparison under Wine #3023 would take care of that; the two merge without conflict.

Not checked: the 128-byte path itself. No device here reports less than 144 bytes, so the skip message and exit 77 were not exercised.

@FaKL-Code

Copy link
Copy Markdown
Contributor

Tested e535568 (merged onto main 1628210) on NVIDIA GeForce RTX 4060 Ti, driver 610.88 (32.0.16.1088), Windows 11 26200, MSVC 14.51.36231 (VS 2026), Vulkan SDK 1.4.363.0: pass on a 256-byte device; one interaction with #2752 to sort out before merging

  • Merges cleanly; no new compiler warnings against main.
  • ctest: 120 of 120 pass (same 8 skips as main). Loader test passes; validation run: 48 tests clean (2 skipped, as on main).
  • On this 256-byte device the new check doesn't fire. d3d12_fspx_compute, d3d12_msaa_draw, d3d12_set0_compute and d3d12_pipeline_library all run and pass (none print the skip line), as the PR says for 144-byte-or-more devices.
  • Interaction with TEST-465: give four D3D12 fixtures a --pc-tail-ubo variant #2752 (TEST-465). TEST-465: give four D3D12 fixtures a --pc-tail-ubo variant #2752 gives these same four fixtures a --pc-tail-ubo variant, so they run on 128-byte devices instead of failing. The two branches merge with no conflict (git merge-tree exits 0). But this PR's if (device_push_constants_need_fallback(inner)) return 77; sits right after device creation, before the PSOs that TEST-465: give four D3D12 fixtures a --pc-tail-ubo variant #2752 switches to the tail modules. So if both land, a 128-byte GPU would skip all four tests even though TEST-465: give four D3D12 fixtures a --pc-tail-ubo variant #2752 makes them runnable. Merge one or the other, or drop the early return from whichever lands second. I've only read the code here (no 128-byte device to run it on), so please check it on the AMD iGPU from the PR body.

AI-assisted (Claude).

@mesterember104-cpu

Copy link
Copy Markdown

Tested e535568 on Tiger Lake (Xe-LP) iGPU 0x9a78, driver 32.0.101.7088, Windows 11, MSVC 14.44: pass

Full ctest -C RelWithDebInfo: 101/107 counted pass — the 2 failures are the known Intel-main pair (d3d12_buffer_tiles, d3d12_descriptor), failing the same way on main, untouched by this PR (skips: shader_library_corpus, vk_sync_validation, d3d12_queue_wait, d3d12_rgb9e5_rtv; gameinput Disabled).

Our adapter reports maxPushConstantsSize: 256 bytes, so this is the "device with room is unchanged" data point: all four tests this PR touches ran and Passed — d3d12_fspx_compute, d3d12_msaa_draw, d3d12_set0_compute, d3d12_pipeline_library (pipeline_library still ran its library-blob checks first). The exit-77 skip branch for a real 128-byte GPU is not exercisable on this hardware; the unchanged 144-byte path on a device with room is confirmed green on Intel.

AI-assisted (GLM, operated by the account owner).

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.

7 participants