Let the sRGB view test wait out slots held back for new textures #456
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
needs-logs
old-names
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/TaynanGT--Vice-Tay!456
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-456"
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?
@Kal0s-design on GitHub · 2026-11-29 19:16 UTC · original
Kal0s-design:fix/srgb-test-waits-out-new-textures-later→review/local-integration-20261129· +23 −0 · 2 files · 1 commits · closed without mergingAgainst #439's branch (
review/local-integration-20261129), where the test was added (a898e2e, with the deferral reporting fromf90c37e).What fails.
resource::tests::srgb_and_linear_views_of_one_texture_read_their_own_curvereads 0 through one or all three of its views in about 2 of 5 runs of the parallelvictory-gpusuite here. It never fails run alone, and never with--test-threads=1(0 of 8 full-suite runs). Two shapes of the failure, both withdeferred=false:texture 28, views 29/28/none: read [0.0, 0.0, 0.0]read [0.0, 0.5019608, 0.5019608](only the sRGB view)How it was narrowed. The test ran together with one other module at a time, 12 runs each: only
shadow::(5/12) andresource::(7/12) made it fail. Insideshadow::it came down to a single test: paired withshadow::loose_allocation_tests::loose_reselects_concurrent_wider_tail_or_holder_and_gpu_readback_sees_live_bytes, it failed 8 of 12, and 0 of 12 with each of the other fourloose_allocation_tests.Cause. Probes in the test showed:
upload_fromrecords the upload (fresh staging,dirty), and the refresh at submission reads it as committed.So the texture is on the card; what reads 0 is the slot. A texture made while a submission begun before it may still run is shown only once that submission has finished (
show_new_later). Until then its slots hold the neutral texture, and the runtime flips them at its next pass (HostHeap::texture_slots_flip). In the parallel suite the other test's GPU readback is such a submission, and the test never reaches a pass. Confirmed with the switch on the pair: 11 of 30 failed by default, 0 of 30 withVICTORY_SHOW_NEW_LATER=0.Change (test only). Before dispatching, the test does what that pass does: while a slot of its heap is held back,
heap.texture_slots_flip(), with a 10 s deadline that fails with a message naming the texture.HostHeap::holds_backis a#[cfg(test)]helper overFLIPS. There's no retry and no sleep, and the assertions are unchanged; the runtime's behaviour is untouched.Checked here:
cargo test -p victory-gpu --all-features -- --test-threads=1passes (624).cargo check --profile diag --all-featuresandcargo xtask policypass.victory-gpu. The workspace clippy run still fails on the base's ownundocumented_unsafe_blocksandwater_tile_slotsitems, which #442 fixes.Whether CI's runner executes this test at all (it needs fully typed format casting) I haven't checked.
AI-assisted: yes
🤖 Generated with Claude Code
@TaynanGT on GitHub · 2026-11-30 17:05 UTC · original
mainhas moved to a new line of the code and everything is now named Vice-Tay, so this PR no longer applies as it is (details in #468). If you'd like this change in, please rebuild it on the currentmainand open a new PR; I'll review it there.Pull request closed