GPU: publish numeric descriptor bases in 16-byte view-address records #3468
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!3468
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3468"
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?
@rezioliver-collab on GitHub · 2026-11-27 04:03 UTC · original
talleyrand222:codex/2091-descriptor-record→main· +304 −56 · 5 files · 2 commits · openThis is the runtime prerequisite for #2091. It lets a shader read a descriptor’s numeric base while preserving the existing 16-byte view-address record at
t1. Review and merge this change first.For example, guest byte address
0x12_3456_7800gives buffer word 00x34567800and image word 00x12345678. AMD specifies those address units. The four-word host table, the CBV mapping and the null-pointer convention belong to VIctory. AMD RDNA 2 ISA, §8.1.8 table 37 and §8.2.6 table 45The D3D12 slot-reuse test reads back two adjacent records after each write. The neighboring CBV must retain all four words while the first slot changes from image to clear to buffer. A separate shader test exercises numeric and pointer reads. Its DXIL container parsed on this commit on M1.
On an Apple M1 with Rust 1.98.1, the shader suite passed (175 passed, 3 ignored), as did the targeted Clippy checks and repository policy check. The workspace formatting check also fails on the upstream base.
Windows hardware verification: upipibi ran all three targeted tests on an RTX 3070 (driver 616.56) on
3c979791, whose files match PR heade9f2a68. D3D12 readback matched both adjacent 16-byte slots after image, clear and buffer writes. The shader’s numeric view-address and pointer reads matched on hardware and WARP. Independent Windows log.The earlier RTX 3070 run verified two 16-byte slots on the combined head
7a110d9. The older RTX 5080 experiment used the 8-byte staging layout from closed #2048. The validator work in #1065 remains separate.AI-assisted with OpenAI Codex.
@futurepro62 on GitHub · 2026-11-27 09:46 UTC · original
Full-suite run on NVIDIA, since this PR has no test report yet. Tested exact head
e9f2a68(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: 868 passed, 0 failed, 10 ignored.descriptor_base_word_tracks_the_guest_view_address,a_reused_title_slot_publishes_the_native_base_word.--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.