Shaders: support raw FSSM native program blobs (XDAT kind 0x0c) #3116
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!3116
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3116"
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?
@fuzeofficlal on GitHub · 2026-11-26 08:42 UTC · original
fuzeofficlal:feat/shader-xdat-unpacked-fssm-0c→main· +148 −6 · 1 files · 1 commits · openSummary
native_programsincrates/victory-shader/src/native.rsto recognizeXDATentries withkind == 0x0c(KIND_NATIVE_UNPACKED) carrying raw, uncompressedFSSMblobs directly intoprograms(blob).kind == 0x0d(XBCHzlib-compressed) behavior and skip unknown kinds unchanged.0x0c/0x0d/unknownXDATentries, malformed/truncatedFSSMheaders, and out-of-boundsXDAToffsets/sizes.Verification
cargo test -p victory-shader --locked -- native::tests::: 17 passed, 0 failed.cargo clippy -p victory-shader --all-targets --locked -- -D warnings: clean.cargo clippy -p victory-shader --all-targets --all-features --locked -- -D warnings: clean.rustfmt --check --edition 2024 --config skip_children=true crates/victory-shader/src/native.rs: clean.cargo test -p xtask --locked policy::tests::repository_passes_policy: 1 passed, 0 failed.@Dukestar69 on GitHub · 2026-11-26 08:50 UTC · original · approved these changes
Verified against
origin/main(63bcca4):cargo test -p victory-shader --lib native:: -- --test-threads=1: 17/17 passed (includingfinds_unpacked_programs,reads_mixed_xdat_entries_in_order,rejects_invalid_unpacked_headers, andrejects_out_of_bounds_unpacked_entries).cargo clippy -p victory-shader --all-targets -- -D warnings: clean.cargo xtask policy: 191 files ok.Cleanly parses raw FSSM native program blobs (
XDATkind0x0c) with bounds/header validation.Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.