Shader tests: name the reason each native blob is refused #330
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!330
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/330/head"
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?
@SkippySteve on GitHub · 2026-11-24 02:20 UTC · original
SkippySteve/shader-native-refusals→main· +163 −0 · 1 files · 1 commits · closed without mergingrejects_corrupt_blobsinvictory-shader/src/native.rsonly assertsis_err(). So if one check stopped firing, the test would still pass whenever a later check happened to catch the same bytes.This adds tests only (no behaviour change). Each
Malformedreasonnative_programscan return now has a case that expects that exact message:All blobs are built in the test by the existing synthetic
fssm/xbch/parthelpers. There is no title data.Tested on Linux:
cargo test -p victory-shader: 61 passedcargo clippy -p victory-shader --all-targets: no new warnings. The one warning,constant_colorunused inemit/mod.rs, is already onmain.cargo fmt --check: clean@SkippySteve on GitHub · 2026-11-24 02:22 UTC · original
superseded by #333 (combined native.rs: SGPR bound + refusal tests)
Pull request closed