Repository navigation
valu_fuzz, lds_fuzz: support --pc-tail-ubo / LEONIDA_PC_TAIL_UBO=1 - #2608
Conversation
Add --pc-tail-ubo (also honoured via LEONIDA_PC_TAIL_UBO=1) to both tools/valu_fuzz.py and tools/lds_fuzz.py so they pass --pc-tail-ubo to rdna2spirv.py and LEONIDA_PC_TAIL_UBO=1 to vk_compute_test. Without this, 128-byte push-constant GPUs hit VUID-VkPushConstantRange-size-00298 / VUID-vkCmdPushConstants-size-00371 (144 > 128) or skip/fail when fuzzing. Co-Authored-By: Gemini 4 Neon <noreply@google.com>
|
Tested aca640b merged onto AI-assisted (Claude Code); runs on my machine. |
|
Checked The lds side is verified by the new unittest:
Caveat (declared dependency, not a defect): main's Verdict: passes on the CPU tests; flag/env plumbing is correct and the default path is unchanged. AI-assisted review. |
|
Additional checks on The earlier comment could not run The same test file against
I also exercised the flag through the real CLI rather than only the mocked unit path: Both declared dependencies are still OPEN (#2046, #2048; checked with Verdict: forwarding and the default path are correct; the option stays unusable until #2046/#2048 merge (declared, not a defect). AI-assisted review. |
|
Tested aca640b together with #2046 (8d89bfa) and #2048 (0ec464b), merged in that order onto
Note: on this AMD driver the iGPU reports AI-assisted (Claude Code). Synthetic inputs only, no game files. Generated by Claude Code |
|
Tested
No game files. AI-assisted (Claude Code). |
Claimed in #2516 (comment).
Depends on: #2046 (adds
--pc-tail-ubototools/rdna2spirv.py) and #2048 (addsLEONIDA_PC_TAIL_UBO=1set-1 binding tovk_compute_test).Summary
tools/valu_fuzz.pyandtools/lds_fuzz.py:--pc-tail-ubo(also enabled whenLEONIDA_PC_TAIL_UBOis truthy:1/true/yes/on, case-insensitive, trimmed).--pc-tail-ubototools/rdna2spirv.pyintranslate().LEONIDA_PC_TAIL_UBO=1in thevk_compute_testsubprocess environment inrun_gpu().--pc-tail-uboorLEONIDA_PC_TAIL_UBO=1) is unchanged.tests/test_valu_fuzz.pyandtests/test_lds_fuzz_cli.py: verifytranslate()forwards--pc-tail-ubo,run_gpu()setsLEONIDA_PC_TAIL_UBO=1, andmain()honours both--pc-tail-uboandLEONIDA_PC_TAIL_UBO.Testing
All tests ran on Windows 11 with Python 3.14, Vulkan SDK 1.4.363 (
VK_LAYER_KHRONOS_validation),llvm-mc21, synthetic inputs only (no game data):pytest):tests/test_valu_fuzz.py,tests/test_lds_fuzz.py,tests/test_lds_fuzz_cli.py,tests/test_lds_fuzz_hw.py,tests/test_fuzz_find_harness.py,tests/test_text_write_line_endings.py: 149 passed, 8 skipped (hw oracle), 25 subtests passed, 0 failed.py -3.14 -m compileall -q tools/valu_fuzz.py tools/lds_fuzz.py tests/test_valu_fuzz.py tests/test_lds_fuzz_cli.py: clean.#2046'srdna2spirv.pyand#2048'svk_compute_test):VK_LAYER_KHRONOS_validation: triggersVUID-VkPushConstantRange-size-00298andVUID-vkCmdPushConstants-size-00371(144 > 128).--pc-tail-ubo(128B) underVK_LAYER_KHRONOS_validation: 0 validation errors, exact matching output.valu_fuzz.py --family mem --programs 10 --wave both --pc-tail-ubo:20/20 programs that ran match (native), 0 mismatched, 0 skipped, 0 errors.lds_fuzz.py --programs 10 --wave both --pc-tail-ubo:20/20 programs that ran match (native), 0 mismatched, 0 skipped, 0 errors.valu_fuzz.py --family mem --programs 4 --wave 32 --pc-tail-ubo:4/4 programs that ran match (native).lds_fuzz.py --programs 4 --wave 32 --pc-tail-ubo:4/4 programs that ran match (native).Checklist
git diff --checkclean)🤖 Generated with Antigravity (Gemini 4 Neon)