gpu: keep A8_UNORM out of the R8 typeless family (port of VIctory#1390) #128
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/128"
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?
Imported from uiliannn/VItoriaBr. Originally posted by wilu222 on 2026-11-26T21:39:52Z.
Port of Marvisak/VIctory#1390 (by AnoHunted), which this tree does not have yet.
family()incrates/victory-gpu/src/resource.rsput A8_UNORM (65) in R8_TYPELESS's range (60..=65). DXGI's R8 family is 60..=64, and A8 cannot be cast to R8. Two effects:fits()and was given A8's format, so the shader read the value from alpha instead of red. The view is now refused.element()gives both 1 byte).The fix is the same one-line range change as upstream. The test,
a8_unorm_stands_outside_the_r8_family, is new: it fails without the change (family(65)is 60) and passes with it.Tested (RTX 5070, driver 617.42, Windows 10 19045, Rust 1.98.1)
cargo clippy --workspace --all-targets --locked -- -D warningsand the same with--all-features: cleancargo test --workspace --locked --no-fail-fast: the same tests fail onmain(1361e19) and on this branch, 25 GPU tests invictory-shader(valu_tests,intersect_tests,waterfall_tests) anddepth_bounds_pipeline_loads_and_filters_draws; no new failure.crash::tests::unwinds_like_the_system_walkis flaky here on both (passed 1 of 4 runs onmain)Not tested: in game.
Imported from uiliannn/VItoriaBr. Originally posted by wilu222 on 2026-11-27T00:42:15Z.
Closing: an in-game check (RTX 5070, about 7 minutes of the prologue) found the title never reaches this case, so the change fixes nothing observable for it.
Pull request closed