d3d12_skip_compute_test: add the GPU regression and skip on 128-byte devices #1419
Closed
leonida/mandy
whoalin1 wants to merge 0 commits from
pc-tail-skip-guard into main
pull from: pc-tail-skip-guard
merge into: leonida:main
leonida:main
leonida:github-pr/3295
leonida:beta
leonida:docs/changelog-3483-3500
leonida:github-pr/3294
leonida:github-pr/2975
leonida:github-pr/2815
leonida:feat/gate-driver-start
leonida:feat/skip-pipelines-release
leonida:perf/lazy-compare
leonida:perf/mwaitx-wait
leonida:test/prio-ceiling-main
leonida:fix/ab-cpu-stdout
leonida:fix/gate-old-crashes
leonida:diag/ab-cpu
leonida:test/main-0312
leonida:github-pr/3291
leonida:diag/indirect-clamp-census
leonida:feat/barrier-enhanced
leonida:perf/texture-frame-ceiling
leonida:perf/dstorage-threads
leonida:fix/console-queue-dma-tables
leonida:fix/port-descriptors-record-parts
leonida:fix/frame-waits-fence
leonida:fix/console-sampler-words
leonida:fix/graphics-userdata-spill
leonida:fix/xg-reserved-layout-rotation
leonida:fix/barrier-console-flags
leonida:fix/switches-wait-test-child
leonida:test/list-value-waits
leonida:test/lot-gxdk-0412
leonida:fix/bvh-compacted-size
leonida:docs/i18n-quickstarts
leonida:feat/native-pipeline-slots
leonida:fix/clippy-leonida-gpu
leonida:fix/list-value-producers
leonida:fix/descriptor-page-straddle
leonida:fix/xmem-low-window
leonida:fix/ffx-jitter-never-zero
leonida:fix/run-stdout-closed
leonida:github-pr/2892
leonida:github-pr/2896
leonida:feat/warm-save-every
leonida:github-pr/2980
leonida:github-pr/2994
leonida:github-pr/3005
leonida:github-pr/3010
leonida:github-pr/3136
leonida:github-pr/3303
leonida:github-pr/3220
leonida:github-pr/3143
leonida:github-pr/3330
leonida:github-pr/3226
leonida:github-pr/3187
leonida:carry/3395
leonida:github-pr/2946
leonida:github-pr/2947
leonida:github-pr/2945
leonida:github-pr/2983
leonida:github-pr/3001
leonida:github-pr/3372
leonida:github-pr/3128
leonida:github-pr/3296
leonida:github-pr/2588
leonida:github-pr/3119
leonida:github-pr/3378
leonida:fix/crash-diagnostics
leonida:feat/dlss-mip-bias
leonida:fix/retired-out-of-order
leonida:fix/dxr-postbuild-barrier
leonida:fix/amd-relay-default
leonida:fix/removed-report-wait
leonida:feat/heap-twin
leonida:feat/vram-margin
leonida:github-pr/2472
leonida:github-pr/3123
leonida:github-pr/3088
leonida:assets/annonce-v1
leonida:github-pr/2794
leonida:github-pr/3300
leonida:github-pr/3304
leonida:github-pr/3308
leonida:github-pr/3367
leonida:github-pr/3369
leonida:fix/launcher-dlss-diagnostics
leonida:github-pr/3269
leonida:github-pr/2957
leonida:github-pr/3205
leonida:fix/crash-zero-guard
leonida:github-pr/3185
leonida:github-pr/3099
leonida:github-pr/3104
leonida:github-pr/3348
leonida:github-pr/3379
leonida:github-pr/3377
leonida:perf/darner-title-priority-ceiling
leonida:github-pr/3376
leonida:gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
leonida:gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
leonida:gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
leonida:github-pr/3373
leonida:github-pr/3368
leonida:github-pr/3198
leonida:gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
leonida:gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
leonida:gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
leonida:gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
leonida:github-pr/3346
leonida:github-pr/3375
leonida:github-pr/2958
leonida:github-pr/3151
leonida:github-pr/3307
leonida:github-pr/3278
leonida:github-pr/3374
leonida:fix/runtime-test-conservative-fixtures
leonida:github-pr/3366
leonida:ci/shard-semantic-linux
leonida:github-pr/3354
leonida:docs/fg-limit-fps-switch
leonida:github-pr/3365
leonida:fix/read-file-hard-link
leonida:github-pr/3364
leonida:fix/book-slot-heap-never-read
leonida:github-pr/3361
leonida:github-pr/3263
leonida:github-pr/3360
leonida:github-pr/3353
leonida:github-pr/3331
leonida:fix/alias-later-queued-submissions
leonida:github-pr/3352
leonida:github-pr/3228
leonida:github-pr/3349
leonida:claude/gallant-sagan-aamatr
leonida:github-pr/3200
leonida:github-pr/3132
leonida:github-pr/3323
leonida:github-pr/3332
leonida:github-pr/3340
leonida:github-pr/3311
leonida:github-pr/3334
leonida:github-pr/3297
leonida:github-pr/3256
leonida:github-pr/2567
leonida:github-pr/2851
leonida:d3d12/agility-sdk-621
leonida:github-pr/3164
leonida:github-pr/3114
leonida:github-pr/3050
leonida:github-pr/3113
leonida:github-pr/3326
leonida:github-pr/3144
leonida:github-pr/2642
leonida:github-pr/3072
leonida:github-pr/2789
leonida:github-pr/2643
leonida:github-pr/3009
leonida:github-pr/3035
leonida:github-pr/3031
leonida:github-pr/2686
leonida:github-pr/2834
leonida:github-pr/3321
leonida:github-pr/3325
leonida:github-pr/3290
leonida:github-pr/3324
leonida:github-pr/3130
leonida:claude/fervent-curie-m19lnr
leonida:github-pr/3309
leonida:github-pr/3305
leonida:github-pr/3306
leonida:github-pr/3302
leonida:github-pr/3301
leonida:github-pr/3345
leonida:github-pr/3211
leonida:github-pr/3027
leonida:github-pr/3286
leonida:github-pr/3235
leonida:github-pr/3265
leonida:github-pr/3275
leonida:codex/skip-no-hit-ray-passes
leonida:github-pr/2823
leonida:github-pr/2911
leonida:github-pr/3262
leonida:github-pr/3125
leonida:github-pr/3206
leonida:github-pr/3250
leonida:github-pr/3238
leonida:github-pr/3188
leonida:github-pr/2952
leonida:github-pr/3217
leonida:github-pr/3168
leonida:t3/preserve-fsr-sdk-restart-path
leonida:t3/propagate-host-failure-hresult
leonida:github-pr/3209
leonida:t3/launcher-custom-parameters
leonida:github-pr/3207
leonida:github-pr/3183
leonida:github-pr/3160
leonida:github-pr/3201
leonida:ci/less-to-run
leonida:github-pr/2930
leonida:github-pr/2797
leonida:github-pr/2999
leonida:perf/native-compute-shader-forms
leonida:github-pr/3191
leonida:github-pr/3011
leonida:github-pr/3019
leonida:github-pr/2996
leonida:gh-readonly-queue/main/pr-2789-45dc41f95c1cd0dcc29c2c50582e0e9af8a77259
leonida:claude/blissful-franklin-ukp7ag
leonida:github-pr/3141
leonida:github-pr/3156
leonida:github-pr/3150
leonida:github-pr/3153
leonida:github-pr/3163
leonida:github-pr/3142
leonida:github-pr/3139
leonida:github-pr/2841
leonida:github-pr/3069
leonida:github-pr/3098
leonida:github-pr/3107
leonida:github-pr/3071
leonida:github-pr/2774
leonida:github-pr/2889
leonida:github-pr/3075
leonida:github-pr/2661
leonida:github-pr/3064
leonida:github-pr/3054
leonida:github-pr/3049
leonida:github-pr/2855
leonida:github-pr/2943
leonida:github-pr/3016
leonida:github-pr/2887
leonida:github-pr/3006
leonida:github-pr/3003
leonida:github-pr/2993
leonida:notes/card-time-and-plant-flicker
leonida:github-pr/2989
leonida:feat/vulkan-rs
leonida:github-pr/2985
leonida:github-pr/2951
leonida:github-pr/2982
leonida:github-pr/752
leonida:github-pr/792
leonida:github-pr/2877
leonida:github-pr/2654
leonida:github-pr/2893
leonida:github-pr/2948
leonida:github-pr/2944
leonida:github-pr/2919
leonida:github-pr/2915
leonida:archive/ci/less-to-run/20261202T1121Z
leonida:github-pr/2800
leonida:github-pr/2822
leonida:github-pr/2833
leonida:github-pr/2840
leonida:github-pr/2831
leonida:github-pr/2832
leonida:github-pr/2801
leonida:github-pr/2890
leonida:github-pr/2891
leonida:github-pr/2664
leonida:github-pr/2807
leonida:rt-call-trace
leonida:github-pr/2755
leonida:perf/ahead-split
leonida:github-pr/2587
leonida:github-pr/2698
leonida:github-pr/2609
leonida:github-pr/3219
leonida:docs/readme-runtime-proposal
leonida:github-pr/2017
leonida:github-pr/1741
leonida:github-pr/1667
leonida:codex/coord-claim-check-20261124-7e48
No reviewers
Assignees
Clear assignees
No assignees
Labels
Clear labels
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
enhancement
New feature or request
missing claim
Needs a claim in #14
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
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
Projects
Clear projects
No items
No project
Milestone
Clear milestone
No items
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Reference
leonida/mandy!1419
Loading…
Reference in a new issue
No description provided.
Delete branch "pc-tail-skip-guard"
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?
Pull request closed
This pull request cannot be reopened because the branch was deleted.
LEONIDA_SKIP_COMPUTEis already implemented inmain, but its GPU regression test was never merged with it. This PR adds that test and keeps it honest on 128-byte push-constant devices.What
d3d12_skip_compute_test, Moriz82's synthetic regression test for the diagnostic already documented inmain: two counting compute programs exercise unset, one-name andallmodes, including direct and indirect dispatches.SKIP_RETURN_CODE 77.maxPushConstantsSizeis below the test's 144-byteShaderUserDatablock (128, the Vulkan minimum — e.g. AMD Radeon iGPUs), checksdevice_push_constants_need_fallback()and returns 77 instead of failing withE_NOTIMPL. This is the same guard already used byd3d12_msaa_draw_test,d3d12_set0_compute_testandd3d12_fspx_compute_test.This branch was rebased onto current
main; the stale duplicate documentation paragraph and the obsolete dependency on closed #1341 were removed. No game data.Validation
gta6rtandd3d12_skip_compute_testwith clang-cl and ran the test under Wine 11.22 on an RTX 4070. Unset: both programs run and nothing is logged.absent,drop: only the named program is dropped.all: both are dropped.f177f7a03(Windows 11, MSVC): build succeeds; native NVIDIA RTX 4070 SUPER passes all three ctest entries; AMD Radeon iGPU with validation on and a 128-byte push-constant limit honestly skips all three through return code 77 because the pipelines need 144 bytes. The AMD run directly exercises the new guard.AI-assisted.
Claimed in the coordination issue as: TEST-SKIP-COMPUTE-GPU-REGRESSION (claim).
Rebased onto #1341's current head (
4c54b8044) — the branch now contains only this PR's own commit on top of it, so the earlier conflict is resolved.One thing worth flagging for reviewers: #1341's updated head already includes the
device_push_constants_need_fallback → return 77guard ind3d12_skip_compute_test.cppitself. After the rebase this PR's remaining delta is only the explanatory comment and a clearer skip message (+4/−1). The functional fix therefore lands with #1341; this PR is now just polish on top of it. Maintainer's call whether to keep it for the comment or close once #1341 merges — happy either way.Rebased cleanly onto current main (
db1a22d29) as324ca00cfto refresh the stale CI baseline; no conflicts. The branch is unchanged: the RT-SKIP-COMPUTE-DIAGNOSTIC named-program skip plus the push-constant-limit guard ford3d12_skip_compute_test. AI-assisted with Devin.Maintenance update: rebased onto current main and removed the stale duplicate documentation paragraph plus the obsolete dependency on closed #1341. The implementation itself is already in main; this PR is now exactly the missing synthetic GPU regression test plus the 128-byte push-constant skip guard. Head f177f7a03.
Refreshed local validation on f177f7a03 (Windows 11, MSVC, no game data):
The implementation itself was already in main; this validates the carried synthetic regression and the 128-byte-device behavior.
Native Windows 11 + MSVC
19.44+ RTX 3090 Vulkan Verification (f177f7a03b+origin/mainadfb3821a2)Verdict: PASS on GPU + Khronos Validation (0 functional blockers; 1 CMake parallel-build dependency note & 1 minor
/W4nit below)Environment & Merge Check
10.0.26200), MSVC19.44.35228(x64), NVIDIA GeForce RTX 3090 (Vulkan subgroup32..32, ReBAR enabled), KhronosVK_LAYER_KHRONOS_validation1.4.363.1(LEONIDA_VK_VALIDATION=1,VK_VALIDATE_SYNC=1)origin/main(adfb3821a2,git merge-tree --write-treerc=0) andpython -I tests/test_ci_registration.pyOK.Red -> Green GPU Results
d3d12_skip_compute_testand its 3 CTest cases (d3d12_skip_compute_unset,d3d12_skip_compute_one,d3d12_skip_compute_all) are absent onorigin/main.PR #1419 + origin/mainon NVIDIA GeForce RTX 3090, both default and withLEONIDA_VK_VALIDATION=1+VK_VALIDATE_SYNC=1):d3d12_skip_compute_test.exe(d3d12_skip_compute_unset): PASS (rc=0,0.52 s,0VUID-errors) —0 log line(s), count_keep 103/1004 (expected 103/1004), count_drop 109/1016 (expected 109/1016).d3d12_skip_compute_test.exe --skip-one(d3d12_skip_compute_one,LEONIDA_SKIP_COMPUTE="absent,drop"): PASS (rc=0,0.52 s,0VUID-errors) —1 log line(s), count_keep 103/1004 (expected 103/1004), count_drop 100/1000 (expected 100/1000).d3d12_skip_compute_test.exe --skip-all(d3d12_skip_compute_all,LEONIDA_SKIP_COMPUTE="all"): PASS (rc=0,0.50 s,0VUID-errors) —2 log line(s), count_keep 100/1000 (expected 100/1000), count_drop 100/1000 (expected 100/1000).Diff Audit Notes
glslangValidatorparallel-build race againstorigin/main(runtime/CMakeLists.txt): Since commit86554c879onmain,${_indirect_count_spv}is owned byadd_custom_target(gta6rt_indirect_count_shader DEPENDS ${_indirect_count_spv}), and bothd3d12_indirect_dispatch_count_testandd3d12_compute_journal_testomit${_indirect_count_spv}fromadd_executable(...)in favor ofadd_dependencies(<target> gta6rt_indirect_count_shader)(as noted in the comment directly above: "naming its output here too would give Make a second rule for the same file, and the two glslangValidator runs raced"). Dropping${_indirect_count_spv}fromadd_executable(d3d12_skip_compute_test ...)and addingadd_dependencies(d3d12_skip_compute_test gta6rt_indirect_count_shader)keeps parallel Makefile/MSBuild builds race-free./W4nit (runtime/test/d3d12_skip_compute_test.cpp:54):std::fopentriggerswarning C4996under/W4unless_CRT_SECURE_NO_WARNINGSis added totarget_compile_definitions(d3d12_skip_compute_test PRIVATE ...)orstd::ifstreamis used.AI-assisted.
Verified by OreoFR
a8465211f+ PR headf177f7a03(merged with --no-ff, no conflict)ctest -R ^d3d12_skip_compute_(unset|one|all)$xbox_presentplus four GPU timeouts that all passed on rerunruntime/CMakeLists.txtwith the open #2566; a rebase may be needed if #2566 lands first.AI-assisted (Claude Code, Claude Opus 5.5).
Ready for testing: merges cleanly with
main3535eb5c4. Not inmainyet:git cherryfinds 2 commit(s) not there, and 1 of the 228 lines it adds are already present. No duplicate found: it carries no claim ID, and no other open pull request has the same title.AI-assisted (Claude Code).
RUN comment, PR #1419 (d3d12_skip_compute_test: GPU regression for LEONIDA_SKIP_COMPUTE)
Heads: PR f177f7a03, main 91bab934d (local merge of the PR into it, not pushed).
Kind: runtime C++ test only (runtime/test/d3d12_skip_compute_test.cpp + 12 lines in runtime/CMakeLists.txt). No change to runtime sources. The test runs on the GPU as its own executable (no gta6rt run, no game).
Build (as scripts/build_runtime.ps1: vcvars64, VS cmake + ninja, -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLEONIDA_REQUIRE_VULKAN=ON, SDL3 static through SDL3_DIR):
cmake --build runtime/build -j 8 --target d3d12_skip_compute_test gta6rt
Run:
ctest -R "^d3d12_skip_compute_(unset|one|all)$"
RED: the PR has no non-test change to revert (the feature is already in main), so there is no revert-red. Mutation red instead: in runtime/shims/d3d12_vulkan_device.cpp, skip_compute() made to always return false (feature off), PR test kept: d3d12_skip_compute_unset passes, d3d12_skip_compute_one and d3d12_skip_compute_all FAIL ("count_drop is skipped", "count_keep is skipped"). Mutation reverted afterwards.
GREEN at the PR head: 3 of 3 pass (unset, one, all).
GREEN merged into main: 3 of 3 pass.
Imports: gta6rt.exe built from the merge vs plain main, dumpbin /imports, DLL!symbol: 714 vs 714, 0 new, 0 removed (expected: the PR touches no runtime source).
Not covered: the "skip on 128-byte devices" path (exit 77) needs a device with maxPushConstantsSize 128; this GPU reports more, so that path was not exercised.
Machine: Windows 11 Pro, RTX 3090 24 GB, NVIDIA 621.40, MSVC 14.44 (VS 2022 Build Tools), Vulkan SDK 1.4.363.1, SDL3 3.4.20 static, cmake/ninja from VS. Build folder deleted afterwards.
Independent verification on this machine (Windows 11, RTX 4090, MSVC 19.44.35226): the three tests this pull request adds cannot run -
ctestlists them with no command at all - while their executable builds.1. It applies.
merge-treeclean; the commits cherry-pick ontomaine236b19c6without a conflict.2. The executable builds:
3. What
ctest --show-only=json-v1contains:Out of 544 tests in the tree, exactly these three have no command - so this is the registration, not the branch causing a mess.
4. The registration looks like its working neighbour:
same
if(Vulkan_GLSLANG_VALIDATOR_EXECUTABLE)block, same file, target defined above the tests. I could not see a structural difference fromd3d12_compute_journal, which resolves, and I am not going to guess at one - what I can report is the observable: the target exists, builds, and three tests point at it with nothing to run.What that costs:
ctestcounts them as failures (Not Run) and they never exercise theLEONIDA_SKIP_COMPUTEpath they exist for - so the pull request adds a diagnostic that is red and inert.A fix worth trying first: replace the bare target name with
$<TARGET_FILE:d3d12_skip_compute_test>, which always resolves to a path at generate time.Two other pull requests have the same shape - #1182 (
vk_sparse_queue_order) and #1242 (win32_env,win32_env_override) - andmainhas none of these in its 541 tests, so it is not something the repository already carries.Written with an AI assistant.
Repair pushed in
ee0d637fffor the registration failure reported byfiestorra: the threed3d12_skip_compute_*tests now bind their command through$<TARGET_FILE:d3d12_skip_compute_test>instead of relying on target-name substitution. That makes the executable path explicit in the generated CTest command while keeping the existing arguments and skip-code properties unchanged. I could not rerun the Windows/RTX registration locally; validation here is the narrow CMake diff plusgit diff --check.Independent CTest A/B of
f177f7a03and the registration updateee0d637ff, each merged ontomaindcba958e5. CachyOS, CMake/CTest 4.4.5, Ninja, clang-cl 23.1.5 Release (x64 MSVC ABI). The only source delta between the merges is the threeadd_test()commands, so both configurations used the same built test executable.Missing command in the direct configuration. Without an emulator, both revisions generate the same executable path. With
d3d12_skip_compute_test.exepresent there, all threecommandarrays appear inctest --show-only=json-v1. With just that executable absent, all three disappear andd3d12_compute_journalstill has its command. This reproduces the JSON symptom on this setup. The original Windows build directory was outside this check.Configured Wine launcher. With
-DCMAKE_CROSSCOMPILING_EMULATOR=/usr/bin/wine, the target-name form generateswine …/d3d12_skip_compute_test.exe [mode]for all three cases. The$<TARGET_FILE:…>form inee0d637ffgenerates the bare.exe [mode], while the neighbouring journal test still gets Wine. On this host the kernel's PE handler can mask that difference by starting system Wine. A configured Wine/Proton path must be preserved explicitly if the path-expression form is kept. The original target-name form already preserves it and resolves to the same path in the direct build.GPU results with the original registration. Wine 11.22, RTX 4070 SUPER (NVIDIA 620.73.04) and Radeon 610M (RADV 26.3.1). All three CTest cases passed on each GPU. The exact pairs were keep/drop
103/1004, 109/1016for unset,103/1004, 100/1000for one, and100/1000, 100/1000for all, with zero, one and two skip messages respectively. Both devices ran the test body. The host Khronos layer reported the same device-creation VUID for the unchanged journal control and all three cases on both GPUs (VK_EXT_external_memory_dma_bufmissingVK_KHR_external_memory_fd), so this is a readback pass with a shared validation diagnostic.AI-assisted: yes (Codex).
Correction: I reverted
ee0d637ffina0595ff51. The A/B evidence shows the target-name form is required to preserve a configuredCMAKE_CROSSCOMPILING_EMULATOR/Wine launcher, and the missing JSON command is reproduced by the executable being absent rather than by the registration itself. Thanks for the precise cross-check; the branch is back to the correct registration form.Correction: the three tests in this pull request do run. My earlier report of an empty
commandwas wrong.Measured with a freshly configured tree and a manifest regenerated from scratch:
No "Not Run", no empty command. I withdraw the earlier claim - it came from a manifest generated for a different tree, which is the same class of error as reading a stale binary.
What I did not re-run: the three tests themselves after this configure (they were green in the sweep earlier, and the point of this message is the registration, not the behaviour).
Two siblings from that earlier batch, checked the same way today, came out differently: #1182 resolves (also withdrawn), #1242 still shows an empty command for both its tests (that one stands). So of the four I reported, two were mine and two are real (#1242, #2344).
Written with an AI assistant.
Rebased onto current
mainase5b9df0e9to refresh the stale CI baseline; the branch reapplied cleanly with no conflicts. Validation: CMake configure/generate passes andgit diff --checkis clean. The Linux VM still lacks Vulkan/D3D12 headers, so the GPU-side regression remains covered by the prior Windows validation rather than locally rerun.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.