Repository navigation
Conversation
654e88f to
7cff0b6
Compare
|
Rebased onto #1341's current head ( One thing worth flagging for reviewers: #1341's updated head already includes the |
|
Rebased cleanly onto current main ( |
324ca00 to
882d86a
Compare
…STIC) A compute program that hangs the GPU or loses the device stops a run at that dispatch. Nothing after it can be examined until the program or its input is fixed, and there was no way to take one program out of a run. LEONIDA_SKIP_COMPUTE=<part of a name>[,<part>...] (all or *: every compute program) is a diagnostic and is unset by default. A compute program whose library name contains one of the parts gets no shader module and no VkPipeline. CreateComputePipelineState still succeeds and logs the name once. Replay drops each direct and indirect dispatch of the program and records the rest of the command list. What the program would have written keeps its previous contents. With the variable unset no pipeline is marked and no dispatch is dropped. Cross-built gta6rt and d3d12_skip_compute_test with clang-cl and ran the test under Wine 11.22 on an RTX 4070. It runs two synthetic counting programs with direct, indirect and counted indirect dispatches. Unset: both run and no line is logged. "absent,drop": one program is dropped, the dispatches before and after it run. "all": both are dropped. With the base implementation the unset form passes with the same counts and the two set forms fail. AI-assisted (Claude Code). Co-authored-by: Plaaasma <47513553+Plaaasma@users.noreply.github.com> Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…is under 144 bytes On a device whose maxPushConstantsSize is below the 144-byte ShaderUserData block (128, the Vulkan minimum, as on the AMD Radeon iGPUs), PipelineState::push_constants_fit refuses the pipeline states with E_NOTIMPL and the test failed instead of skipping. Check device_push_constants_need_fallback after create_vulkan_device and return 77, the same guard d3d12_msaa_draw_test, d3d12_set0_compute_test and d3d12_fspx_compute_test already use; the CMake entries already set SKIP_RETURN_CODE 77. The implementation this test covers is already in main; this branch now carries only its synthetic regression test and the 128-byte-device skip guard.
882d86a to
f177f7a
Compare
|
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 f177f7a. |
|
Refreshed local validation on f177f7a (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. |
… hosts (LEONIDA_PAIRED_LANES) One host wave of 32 threads runs one console wave of 64, each thread lowering console lanes n and n + 32 (paired.rs). Wave-wide values ask the host wave for both lanes of every thread, so nothing is exchanged between host waves through LDS. Tried right before the wave-wide form (unset or 1; `first`: before every form; 0: never); part of the translation fingerprint. Over the 2,734 compute programs (translate_cdxil --census, dxil.dll's validator) only the seven CS_TransmissionVolumetrics programs change, none invalid: 6f225b641c5b0708 125 group barriers (76 in loops) -> 5 (none in loops), 5dc3b25986622949 111 -> 5, 926c46bab3b86bd6 703 -> 10. Hand-written fixtures run on an RTX 4060 Ti (paired_tests). Ported from TaynanGT/Vice-Tay 5e588e8 (Geckomacabre with fxceless; after ByFxbian's fxceless/victory-fork ProjectLeonida#1397 and ProjectLeonida#1419, PiloteCode ProjectLeonida#854, darkworldhm 840243e2 and 08fdf0b), GPL-3.0. Not taken: its ordered FP32 replay, its program list by hash and its loop-exit change to the wave-wide form. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Native Windows 11 + MSVC
|
|
Verified by OreoFR
AI-assisted (Claude Code, Claude Opus 5.5). |
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.