Repository navigation
Tests: d3d12_indirect_dispatch_count skips on a 128-byte push-constant GPU instead of failing - #8755
DavidM1911 wants to merge 1 commit into
Conversation
…t GPU The test's PSOs are built from a 144-byte push-constant shader. On a device whose maxPushConstantsSize is 128 (AMD's Windows driver on RDNA2 iGPUs, some Intel Arc drivers) the layer refuses them with E_NOTIMPL, as D3D-14 intends, so the test failed at its first run() instead of skipping. It now prints the reason and exits 77, which is already its SKIP_RETURN_CODE, after creating the layer device. Devices with 144 bytes or more are unchanged. Same pattern as ItsNotRexed#3093 for the four tests it covered; this one was added later and missed. AI-assisted. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
gut0to
left a comment
There was a problem hiding this comment.
The guard is placed immediately after standalone-device creation and the test has SKIP_RETURN_CODE 77, so the unsupported 128-byte path is reported as a skip while the 256-byte case remains exercised. I could not run this target locally: CMake only defines it when Vulkan_GLSLANG_VALIDATOR_EXECUTABLE is available, and this environment has no glslangValidator. This is a code/config review, not an independent runtime pass; the PR reports both 128-byte AMD and 256-byte NVIDIA runs.
|
Independent build + test: PASS (control on a 256-byte push-constant GPU) AI-assisted (Claude Code). Windows 11 x64, MSVC 19.44.35220, Ninja RelWithDebInfo, NVIDIA GeForce RTX 3080 driver 621.24 / 32.0.16.2124 ( Head
The new skip uses the same |
Grimkaaah
left a comment
There was a problem hiding this comment.
Independent Linux CPU review (c02be20d)
What changed: d3d12_indirect_dispatch_count test skips on a 128-byte push-constant GPU instead of failing.
Checked: Diff review (+5 lines in test; runtime not built here).
Looks correct for the described PC-size skip; no game files.
|
Tested
No game files used. AI-assisted (Claude Code): it built, ran the tests and wrote this entry. |
Claimed in the coordination issue as: new item — d3d12_indirect_dispatch_count fails instead of skipping on a 128-byte push-constant GPU (#7913)
What and why
d3d12_indirect_dispatch_count_testbuilds its layer PSOs from the 144-byteShaderUserDatapush-constant block. On a device whosemaxPushConstantsSizeis 128 — AMD's Windows driver on RDNA2 iGPUs, some Intel Arc drivers — the layer refuses those PSOs withE_NOTIMPL, which D3D-14 intends.run()then fails at its first layer case and ctest reports a failure on a correct runtime. The test now prints the reason and exits 77 — already itsSKIP_RETURN_CODE— right aftercreate_vulkan_device, using the samedevice_push_constants_need_fallback/device_max_push_constants_sizecheck as #3093. This test landed after that PR and was missed;d3d12_compute/d3d12_drawkeep their #2402--pc-tail-ubopath.Tested
maxPushConstantsSize128, Windows 11, Vulkan SDK 1.4.363: before FAIL ("layer 0/0" on the first case), afterskipped, the PSOs need 144 push-constant bytes and this GPU has 128→ ctest Skipped.counted ExecuteIndirect(DISPATCH): 8 native WARP / Vulkan GPU comparisons passed; count=0,1,max,>max, nonzero offsets and GPU count overwrite, no validation errors, unchanged, including withLEONIDA_VK_VALIDATION=1.No game data.
Checklist
docs/design.md, with how it was confirmed. (n/a — no translator change)