Compose test: an sRGB BGRX plane gets the plain UNORM view, as every sRGB plane does since 95f6ef0f #2646
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!2646
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2646"
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?
@boraswim on GitHub · 2026-11-29 15:31 UTC · original
boraswim:fix/bgrx-typed-view→main· +5 −4 · 1 files · 1 commits · openPart of #2420 (item 3).
What it changes
compose::tests::bgrx_plane_selects_a_typed_viewfails deterministically in the diagnostics build:The code is right and the test is stale:
95f6ef0f(Nov 26), "Two planes: read sRGB planes as plain UNORM so the scene's bytes reach the screen unchanged", madeview()map sRGB planes to their plain UNORM view (27 | 29,90 | 91).29473fb(Nov 28), "Compose BGRX scene planes through their legal sampled views", added BGRX and this test on a base without that rule, so the test expected the sRGB view to be kept (93 => 93).7bd42af) gave BGRX the same rule as the others (92 | 93 => B8G8R8X8_UNORM), and the doc comment onview()says so, but the test kept its old expectation.The module's tests are
#[cfg(all(test, feature = "diagnostics"))]and the diagnostics build has not compiled since the wave merges (#2048, #2208), so nobody saw the failure. The test now expects the rule, and checks the BGRA and RGBA sRGB planes too, so the rule is pinned for all three. Test-only.How it was tested
cargo test -p victory-gpu --lib --features diagnostics -- compose::failsbgrx_plane_selects_a_typed_viewcargo testpassed for the crates it touches: yes, as above. CI does not run the diagnostics tests.Checked for overlap
compose.rsbut notview()or this test.95f6ef0f7d78d439dagithub-bot referenced this pull request2026-11-29 20:00:12 +00:00
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.