mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 01:00:53 +01:00
[PR #1501] [CLOSED] crosslane_fuzz: support --pc-tail-ubo and LEONIDA_PC_TAIL_UBO (FUZZ-CROSSLANE-PC-TAIL-UBO) #1532
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#1532
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/1501
Author: @IlyassRS3
Created: 11/25/2026
Status: ❌ Closed
Base:
main← Head:feat/crosslane-fuzz-pc-tail-ubo📝 Commits (1)
b7658d7crosslane_fuzz: support --pc-tail-ubo and LEONIDA_PC_TAIL_UBO (FUZZ-CROSSLANE-PC-TAIL-UBO)📊 Changes
2 files changed (+196 additions, -11 deletions)
View changed files
📝
tests/test_crosslane_fuzz.py(+161 -1)📝
tools/crosslane_fuzz.py(+35 -10)📄 Description
Claimed in the coordination issue as: FUZZ-CROSSLANE-PC-TAIL-UBO (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7150559295)
What and why
Addresses @whoalin1's finding in #14:
tools/crosslane_fuzz.pyhad no--pc-tail-uboflag and did not honorLEONIDA_PC_TAIL_UBO, unliketools/lds_fuzz.py,tools/valu_fuzz.py, andtools/image_fuzz.py. On 128-byte-push-constant GPUs (such as AMD RDNA2 iGPUs / gfx1036),vk_compute_testeither exited 77 (counted as a harness error) whenLEONIDA_PC_TAIL_UBOwas unset, or ran against the wrong layout (0xEEEEEEEEpre-fill counted as mismatches) whenLEONIDA_PC_TAIL_UBO=1was set in the environment without forwarding--pc-tail-ubotordna2spirv.py.pc_tail_env()and--pc-tail-ubototools/crosslane_fuzz.py(args.pc_tail_ubo = args.pc_tail_ubo or pc_tail_env(), matchinglds_fuzz.py,valu_fuzz.py, andimage_fuzz.py).--pc-tail-ubotordna2spirv.pyintranslate()and setsLEONIDA_PC_TAIL_UBO=1ingpu_env()/run_gpu()across bothrun_translator()and--minimize(still_fails()).translate/ 5-argumentrun_gpu/ 2-tuplestill_failsctxcompatibility whenpc_tailis off, and isolatesHarnessErrors._mainintests/test_crosslane_fuzz.pyfrom an ambientLEONIDA_PC_TAIL_UBO=1.PcTailUbounit tests covering CLI flag, env var variants (1/true/YES/on/0), flag overridingLEONIDA_PC_TAIL_UBO=0,translate(),gpu_env(),run_gpu(), and--minimize/still_fails().Tested
python3 -I tests/test_crosslane_fuzz.py: 77/77 OK (2 hw-oracle tests skipped).LEONIDA_PC_TAIL_UBO=1 python3 -I tests/test_crosslane_fuzz.py: 77/77 OK (2 skipped).main(3ff2a2adc):tests/test_crosslane_fuzz.py PcTailUbofails 4/4 (failures=4, errors=6).python3 -I tools/crosslane_fuzz.py --self-test:self-test OK.python3 -I tests/test_mc_command.py: 29/29 OK (2 skipped).python3 -I tests/test_text_write_line_endings.py: 3/3 OK.python3 -I scripts/check_no_game_data.py tools/crosslane_fuzz.py tests/test_crosslane_fuzz.py: clean.python3 -m compileall -q tools/crosslane_fuzz.py tests/test_crosslane_fuzz.py: clean.GPUs tested: n/a (macOS arm64 host; unit/CLI tests only, no Vulkan GPU harness)
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a — no translator rule changed)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.