GPU: Keep RGB9E5 placed texture views format compatible #3537
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!3537
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3537"
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?
@GaussianGuaicai on GitHub · 2026-11-27 15:29 UTC · original
GaussianGuaicai:fix/rgb9e5-placed-views→main· +46 −15 · 2 files · 1 commits · openKeep RGB9E5 and R32_UINT placed aliases on distinct host textures to avoid an unsupported cross-format SRV. Do not inherit usage flags between the two formats, so the separate RGB9E5 read texture does not inherit UAV usage and fail creation.
The regression verifies distinct SRV/UAV resources and successful alias-copy pixel readback.
Windows validation: three D3D12 placed-view tests with diagnostics, one format-list test, and strict Clippy for
victory-gpuwith all targets and diagnostics. No game or BSOD validation.@oni-swr on GitHub · 2026-11-27 16:20 UTC · original
Independent verification of #3537 at
7197120e, base main63bcca43. Verification only, no code pushed, no game data. AI-assisted (Claude Sonnet 5.5).Setup: Windows 11 26200, WARP (
VICTORY_WARP=1,VICTORY_D3D12_WARP=1), Windows SDK 26100dxil.dll,cargo test -p victory-gpu --lib --features diagnostics,cargo clippy -p victory-gpu --all-targets -- -D warnings(with and withoutdiagnostics).63bcca437197120e-D warningsThe new
an_rgb9e5_placed_view_reads_through_distinct_host_texturespasses on WARP and asserts a D3D12 host exists, so it ran rather than skipped. Not run on a physical GPU.Diff reading: the usage-flag change only skips inheriting flags between the 42/67 pair, so I saw no regression for other formats.
Non-blocking question (unproven):
takes()changed fromfamily(c) == family(d.format)tot.castable.contains(&d.format). That reaches beyond the RGB9E5/R32_UINT pair. A typelessd.format, whichcastableexcludes, matched through its family before and no longer does, so such a texture would get its own host texture instead of sharing. Is that intended? No test fails on it and I did not construct a case.@andrewpozdnakov7-jpg on GitHub · 2026-11-27 16:41 UTC · original
I reproduced the sharing change from the review on
7197120using synthetic placed textures. With unordered access enabled,host_descmakes anR8G8B8A8_UNORM_SRGBtexture typeless. An existingR32_UINThost texture can already list both its typed view formats, but that typeless description still caused a second allocation. Review questionThe proposed follow-up uses the original sRGB format when checking that case. It reuses the host texture only when the cast list contains both the sRGB read format and the linear UAV format. Commit
72883f27197120and passed with the follow-up.The next step is for the PR author to decide whether to take the follow-up. If reusing it, please retain the Git author on cherry-pick or rebase. If folding it into another commit, please use
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>.AI-assisted with OpenAI Codex.
@futurepro62 on GitHub · 2026-11-27 20:49 UTC · original
NVIDIA full-suite run, to go with the reports above by oni-swr, since none of them names a GPU run. Tested exact head
7197120(on its base63bcca4).Tested
dxil.dllfrom Windows SDK 10.0.26100 (the loader's default), debug.cargo build --workspace --locked, thencargo test --workspace --locked --no-fail-fast -- --test-threads=4 --skip emit::memory_tests::heap_direct_texture_reads_mark_their_heap_index --skip descriptor::host::tests::dynamic_slots_are_held_until_released --skip memory::tests::lists_share_a_table_and_copies_keep_their_views --skip emit::stride_tests::a_heap_buffer_read_by_element_takes_the_views_stride --skip emit::stride_tests::a_heap_buffer_read_where_no_buffer_view_is_reads_zeros --skip emit::synthetic_tests::gathers_at_a_level_match_the_hardware: 867 passed, 0 failed, 10 ignored.an_rgb9e5_placed_view_reads_through_distinct_host_textures.--skipleaves out tests that fail on main63bcca4on this card too, not because of this PR:heap_direct_texture_reads_mark_their_heap_indexends thevictory-shadertest process with0xc0000005(#2571), so without the skip the rest of that crate never reports;dynamic_slots_are_held_until_released,lists_share_a_table_and_copies_keep_their_viewsand the twostride_testshit the 1,000,000-view heap cap of NVIDIA drivers (#1835, #2317);gathers_at_a_level_match_the_hardwarefails on lane 0 (#1744).Not tested
AI use
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.