mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:45:53 +01:00
[PR #1508] [CLOSED] crosslane_fuzz: add --pc-tail-ubo like lds_fuzz and valu_fuzz (CROSSLANE-FUZZ-PC-TAIL-UBO) #1535
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#1535
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/1508
Author: @PierreEbele
Created: 11/25/2026
Status: ❌ Closed
Base:
main← Head:crosslane-fuzz-pc-tail-ubo📝 Commits (1)
10f1eb6crosslane_fuzz: add --pc-tail-ubo like lds_fuzz and valu_fuzz (CROSSLANE-FUZZ-PC-TAIL-UBO)📊 Changes
2 files changed (+106 additions, -16 deletions)
View changed files
📝
tests/test_crosslane_fuzz.py(+79 -5)📝
tools/crosslane_fuzz.py(+27 -11)📄 Description
Claimed in the coordination issue as: CROSSLANE-FUZZ-PC-TAIL-UBO (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7150544577)
Depends on: none. It merges cleanly with #318 and #716, which also touch
run_gpu()in this file, and with #1397.What changes
This is @whoalin1's finding in #14 (02:02Z).
tools/crosslane_fuzz.pyhad no--pc-tail-ubo, so on a GPU with 128-byte push constants every translated program was a harness error.tools/lds_fuzz.pyandtools/valu_fuzz.pyalready support the flag, and this PR copies their pattern:pc_tail_env(), the same helper.LEONIDA_PC_TAIL_UBOset to1,true,yesoronenables the mode.--pc-tail-uboflag, also turned on by that environment variable.translate()passes--pc-tail-ubotordna2spirv.py.gpu_env()/run_gpu()givevk_compute_testLEONIDA_PC_TAIL_UBO=1. Both happen only when asked.run_translator()) and the--minimizepath (still_fails()). The hardware oracle path does not translate and is unchanged.Not in scope: the second half of the finding, which is how mismatches are counted when a run is done with the wrong layout. With this flag the layouts match.
Tests
On Linux arm64, in a sandbox with no network and no GPU:
PcTailUbotests intests/test_crosslane_fuzz.py, modelled ontests/test_lds_fuzz_cli.py. Withsubprocess.runmocked, they check that the translator command and thevk_compute_testenvironment get the flag only when asked. They also check that--pc-tail-uboorLEONIDA_PC_TAIL_UBO=1/yesturns it on throughmain(), and that0or an unset variable leave it off.tools/crosslane_fuzz.py:FAILED (failures=2, errors=2, skipped=2). The only failures are the new tests.OK (skipped=2). The 2 skips are the hardware-oracle tests.--self-testis OK.scripts/check_no_game_data.pyon both changed files: clean.Not run: a real 128-byte-push-constant GPU. None is available here.
AI-assisted.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.