Compose test: an sRGB BGRX plane gets the plain UNORM view, as every sRGB plane does since 95f6ef0f #2646
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by boraswim on 2026-11-29T15:31:47Z.
Part 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.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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.