mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:55:52 +01:00
[PR #1709] [CLOSED] crosslane_fuzz: plumb --pc-tail-ubo through translate and vk_compute_test like lds_fuzz (CROSSLANE-FUZZ-PCTAIL) #1722
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1722
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1709
Author: @thiefyzheng
Created: 11/25/2026
Status: ❌ Closed
Base:
main← Head:fix/crosslane-pc-tail-ubo📝 Commits (1)
f47186bcrosslane_fuzz: plumb --pc-tail-ubo through translate and vk_compute_test like lds_fuzz📊 Changes
2 files changed (+116 additions, -9 deletions)
View changed files
📝
tests/test_crosslane_fuzz.py(+99 -5)📝
tools/crosslane_fuzz.py(+17 -4)📄 Description
CROSSLANE-FUZZ-PCTAIL
Claimed on #1608 (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7157649481). Fixes @whoalin1's finding (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7156819685):
tools/crosslane_fuzz.pyhad no--pc-tail-uboplumbing, so on 128-byte-push-constant GPUs (AMD gfx1036 iGPU) everyvk_compute_testeither exits 77 withoutLEONIDA_PC_TAIL_UBOor dumps 0xeeeeeeee mismatches when the env is set but the SPIR-V was built without the flag.What
Exactly the plumbing
tools/lds_fuzz.pyalready has (alsovalu_fuzz.py,image_fuzz.py,scripts/run_gpu_tests.py):pc_tail_env()—LEONIDA_PC_TAIL_UBOtrue for1/true/yes/on, same body aslds_fuzz's.translate(..., pc_tail=False)appends--pc-tail-uboto the rdna2spirv command (both failure modes covered: the SPIR-V is built for 128-byte push constants).run_gpu(..., pc_tail=False)setsLEONIDA_PC_TAIL_UBO=1in thevk_compute_testenvironment.--pc-tail-uboargparse flag with lds_fuzz's exact help text,args.pc_tail_ubo = args.pc_tail_ubo or pc_tail_env(), wired throughrun_translatorinto bothtranslateand everyrun_gpucall.What was run
python3 -m compileall -q tools/crosslane_fuzz.py— OK.python3 -I tests/test_crosslane_fuzz.py— Ran 75 tests, OK (skipped=2) (baseline before the change: 65 tests OK). NewPcTailUbocases mirrortests/test_lds_fuzz_cli.py:81-140: flag forwarded to the rdna2spirv argv, env set onvk_compute_testonly when asked, flag/env fallback for1/yes/0.tools/crosslane_fuzz.pyto the parent commit and keeping the tests fails 4 of them (2 failures + 2 errors); restoring goes green again.HarnessErrorfakes in the test file were updated to accept the new kwarg.NOT verified
End-to-end on the gfx1036 iGPU: actual exit-77 behavior at 128-byte push constants and matching dumps for pc-tail-translated programs need that hardware (llvm-mc/Vulkan/GPU paths are faked in the tests). Our XTX rig is not 128B-limited.
Attribution
AI-assisted (GLM 5.3 Flash worker implementation, contributor verification and orchestration). No game files used or needed.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.