reprend #2067: feat(runtime): add feature size validation helpers and unit test suite for d3d12_feature_compat #2734
Closed
github-bot
wants to merge 4 commits from
github-bot/gh-2734 into main
AGit
pull from: github-bot/gh-2734
merge into: github:main
github:main
github:perf/darner-title-priority-ceiling
github:gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
github:gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
github:gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
github:gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
github:gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
github:gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
github:gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
github:fix/runtime-test-conservative-fixtures
github:ci/shard-semantic-linux
github:docs/fg-limit-fps-switch
github:fix/runtime-test-fixture-paths
github:fix/runtime-test-fixture-readers
github:fix/read-file-hard-link
github:fix/book-slot-heap-never-read
github:fix/depth-resolve-spv-path
github:fix/indirect-unused-batched
github:gh-pr/3358/base
github:fix/xmem-refusal-diagnostics
github:gh-pr/3357/base
github:ci/shorten-ci-time
github:fix/alias-later-queued-submissions
github:claude/gallant-sagan-aamatr
github:gh-pr/3342/base
github:gh-pr/3341/base
github:d3d12/agility-sdk-621
github:gh-pr/3293/base
github:gh-pr/3319/base
github:gh-pr/3318/base
github:gh-pr/3315/base
github:gh-pr/3313/base
github:gh-pr/3314/base
github:claude/fervent-curie-m19lnr
github:gh-pr/3216/base
github:gh-pr/3272/base
github:gh-pr/3276/base
github:gh-pr/3279/base
github:gh-pr/3257/base
github:gh-pr/3258/base
github:gh-pr/3271/base
github:codex/skip-no-hit-ray-passes
github:gh-pr/3230/base
github:gh-pr/3266/base
github:gh-pr/3247/base
github:gh-pr/3246/base
github:gh-pr/3244/base
github:claude/sharp-sagan-1jqnp3
github:t3/preserve-fsr-sdk-restart-path
github:t3/propagate-host-failure-hresult
github:t3/launcher-custom-parameters
github:t3/series-x-2160-startup
github:codex/d3d12-uncapped-simulation
github:ci/less-to-run
github:perf/native-compute-shader-forms
github:claude/blissful-franklin-ukp7ag
github:codex/full-precompile-default
github:gh-pr/3166/base
github:gh-pr/3148/base
github:gh-pr/3138/base
github:gh-pr/3106/base
github:gh-pr/3057/base
github:gh-pr/2756/base
github:gh-pr/2812/base
github:gh-pr/3032/base
github:gh-pr/2992/base
github:notes/card-time-and-plant-flicker
github:gh-pr/2986/base
github:gh-pr/3000/base
github:gh-pr/2966/base
github:gh-pr/2924/base
github:gh-pr/726/base
github:gh-pr/2761/base
github:gh-pr/2663/base
github:gh-pr/2861/base
github:gh-pr/2862/base
github:gh-pr/2820/base
github:gh-pr/2811/base
github:gh-pr/2803/base
github:rt-call-trace
github:gh-pr/2802/base
github:gh-pr/2766/base
github:perf/ahead-split
github:gh-pr/2589/base
github:gh-pr/2699/base
github:gh-pr/2696/base
github:docs/readme-runtime-proposal
github:gh-pr/1346/base
github:codex/coord-claim-check-20261124-7e48
No reviewers
Labels
Clear labels
accessibility
Barrier affecting people with disabilities
area: ci
.github/ workflows and settings
area: d3d12
The D3D12 runtime in d3d12/ (Rust: leonida.exe and its crates)
area: docs
Documentation
area: launcher
The launcher (launcher/)
area: runtime (legacy)
The earlier Vulkan runtime in runtime/
area: shader translator
The shader translator (leonida-shader, tools/rdna2spirv) and its tests
area: tools
tools/ and scripts/
area: viewer
The map viewer (viewer/)
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
duplicate
This issue or pull request already exists
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
invalid
This doesn't seem right
missing claim
Needs a claim in #14
needs in-game run
Changes the code a frame runs through: needs the 300 s in-game gate (docs/game_gate.md)
needs rebase
Conflicts with the base branch: rebase it on main
needs-triage
Needs maintainer evaluation before the next triage state
question
Further information is requested
ready-for-agent
Fully specified and ready for an AFK agent
submodules
Pull requests that update submodules code
wontfix
This will not be worked on
No labels
accessibility
area: ci
area: d3d12
area: docs
area: launcher
area: runtime (legacy)
area: shader translator
area: tools
area: viewer
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs in-game run
needs rebase
needs-triage
question
ready-for-agent
submodules
wontfix
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!2734
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2734"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@OreoFR on GitHub · 2026-11-30 13:39 UTC · original
OreoFR:carry/pr-2067→main· +184 −0 · 3 files · 4 commits · closed without mergingCarries #2067 by @abnalstlll-byte, because it conflicts with
mainafter #2566 and the reminder to mergemain(#2067) got no answer within the delay of the carry rule. If the author comes back, this carry is dropped.Item:
RT-D3D12-FEATURE-COMPAT-COVERAGE-CARRY(claimed in #2570; original itemRT-D3D12-FEATURE-COMPAT-COVERAGE).What this branch is
507b96ef2, unchanged (no rebase, author commits kept).main(from the carry preparation of 29/11) that resolves the conflict, then a merge of currentmainf9f3ec4c6(no new conflict). Both merge commits carryCo-authored-bythe author.What conflicted and how it was resolved
runtime/CMakeLists.txt: the PR'sd3d12_feature_compat_testandmain'sd3d12_pipeline_checkpoint_testboth kept.Tests
mainf9f3ec4c6merged), Windows 11, Python 3.12, no GPU used: C++ only: left to this PR's CI (no local C++ build in this run).ctest502 tests,d3d12_feature_compatpasses; red: the test does not compile onmain(is_compat_featureabsent).python -I scripts/check_no_game_data.pyon every file this PR changes: clean.ctest, the full translator suite).Depends on: none.
Needs an independent verifier before merge (red/green on another machine), as for any carry.
AI-assisted (Claude Code, oreofr-agent).
🤖 Generated with Claude Code
f9f3ec4c6) into the carry of #2067 2b1440da6c@KelboLive on GitHub · 2026-11-30 14:36 UTC · original
Independent check on Windows (not the author), at
2b1440da6.runtimeand builtd3d12_feature_compat_test(MSVC 14.52.37025, Windows SDK 10.0.26100).d3d12_feature_compat: all ABI constants, struct geometry, validation and naming tests passed(exit 0).One review note: the four new helpers have no call site outside
d3d12_feature_compat.hand this test (grepoverruntime/shims,runtime/srcandruntime/test). If they are preparation for a follow-up, saying so in the PR would help; otherwiseis_valid_compat_feature_sizeis the piece that could be wired into theCheckFeatureSupportpaths that currently take a size. With no consumer, this adds API but no behaviour.The branch is based on
f9f3ec4c6and still merges cleanly; a rebase on currentmainwould keep history linear.Machine: Ryzen 9 7950X3D, Windows 11 Pro 10.0.26200.9711, MSVC 14.52.37025.
AI-assisted: yes (opencode).
@KelboLive on GitHub · 2026-11-30 17:44 UTC · original
Re-checked the updated head
c149d8080(the merge is a CI re-run, no code change):d3d12_feature_compat_testand ran it: all ABI constants, struct geometry, validation and naming tests passed (exit 0).grepoverruntime/shims,runtime/srcandruntime/testfindsis_compat_feature/compat_feature_data_size/is_valid_compat_feature_size/compat_feature_nameonly ind3d12_feature_compat.hand its test — no production call site yet.AI-assisted: yes (opencode).
@KelboLive on GitHub · 2026-12-01 16:02 UTC · original · reviewed
Verified at
c149d8080on Windows (MSVC 19.44, SDK 10.0.26100.0 /D3D12_SDK_VERSION 616):d3d12_feature_compat_testbuilds and passes, and the same target builds and passes on a local merge of currentmain(0ff8a532,merge-treeclean). Because the SDK is 616, the>= 611/>= 613blocks in the header are active, so the 8-byte and 16-byte payload sizes are checked against the reald3d12.hstructs rather than against the shim's own constants — that is the right way to pin an ABI test.The helpers are correct, but two things should be said or fixed before this lands:
CheckFeatureSupport(d3d12_vulkan_device.cpp:29091,:29099, and:29568-29574viawrite_supported_feature). Fine as an explicit first step toward one mapping — but say so in the body, or wireis_valid_compat_feature_sizein, otherwise the feature→payload map now lives in two places and can drift.expected != 0 &&ind3d12_feature_compat.h:111does not fail the suite (I ran it). AddCHECK(!is_valid_compat_feature_size(D3D12_FEATURE_D3D12_OPTIONS, 0));— the case the!= 0exists for. (The>=mutation is caught at line 75, so the size half is covered.)The body's "red on main" note is vacuous, since the test file is new — it cannot compile there by construction, which is not the same as a failing test.
Carry mechanics are fine and this is not duplicated on main; #2067 should be closed on merge, since it is the same three files. A rebase would keep history linear but is not required — only
runtime/CMakeLists.txtmoved.@aslan2142 on GitHub · 2026-12-01 16:46 UTC · original
Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (
d3d12/) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools,d3d12/, or general docs), please feel free to reopen it.Pull request closed