Repository navigation
Conversation
An s_load_dword* whose address is a root descriptor's, and whose result the program never uses as a descriptor, reads that buffer's data. It stopped with "a descriptor read only as data". It is now read as global loads from a root view already are: a root SRV raw, a root CBV (or a root view the used-resource list does not name) as a constant buffer. A root UAV still stops, with its own reason. Test: dwords 2 and 3 of a root SRV and of a root CBV read with one s_load_dwordx2 and stored, exact on the hardware GPU and WARP; main refuses the program. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Independent Linux/Wine validation of Full workspace unit/integration suite, all features, all 14 generated Windows MSVC test executables:
The five failures match baseline: empty pipeline library (#347), missing Wine Winsock export (#217), checksum-rejection expectation, nested Cargo fixture build, and Windows xtask attempting to launch host Git. Native Linux shader tests separately pass 96 / 0 / 1, xtask 4 / 0 / 0, and asset policy passes. Windows-target workspace Clippy with all targets/features and Environment: Rust 1.98.1, Wine 11.22, RTX 5090 / NVIDIA 620.73.04, vkd3d-proton Offline and offscreen, no game data or gameplay. No native Windows or Wine doctests. Aggregate counts include existing early-return tests without optional console compilers or the DXIL validator; the new regression executed. AI-assisted testing with Codex. |
|
This PR has no CI run yet, so I ran the CI's checks at head
|
|
Independent red/green check on RX 7900 XT / RADV 26.2.3, Wine 11.18 and vkd3d-proton 3.2.0 (cae8353): exact 417f4e3 source delta applied to ffe310e + the separate host-only copy fallback 61474f6.
Limits: dxil.dll validation was unavailable. The fixture's WARP-labelled Wine route also passed but used another hardware adapter; this is not a Windows WARP result. No title/world-rendering improvement is claimed from this synthetic check. Update 16:44 UTC: repeated the same root-load test executable with Microsoft DXIL validator release 1.7.2308 available through VICTORY_DXIL. Both SRV and CBV modules validated and the exact hardware readbacks passed. The Wine WARP-labelled path still selects hardware; this does not add native Windows WARP coverage. |
|
This is the red/green I asked for: the same fixture on the copy-only control fails before dispatch with |
|
Thanks for the RDNA3 run @Zipettte — 121 passed / 0 failed at |
|
Ran the offline corpus check on
Offline translation and validation only; no shader contents or extracted data included. AI-assisted (Claude Code); run on my machine. |
|
Thanks for the corpus check — that negative result is useful: it confirms none of the title's 394 "a descriptor read only as data" programs is a scalar load from a root view's address, so #1056 stays a correctness fix for the general case rather than a recovery for a known title program. The 0 outcome changes on 25,891 programs also matches what I measured locally on the head (unit + GPU tests green, no golden changes). |
|
Automated triage for the maintainers. Needs rebase. This PR does not merge cleanly into current The content has not been reviewed yet; it will be once the branch is rebased onto Generated by Claude Code |
What
An
s_load_dword*whose address comes from a root descriptor, and whose result the program never uses as a descriptor, reads that buffer's data. Onmainit goes todescriptor_data. That function finds no resource use of the load, so the program stops with "a descriptor read only as data". In theffe310ecensus in #293 that row has 394 programs, 305 of them compute; I can't say how many of them are this case.Such a load is now read the way global loads from a root view already are (
Lower::flat):rawBufferLoadonroot_srv_handle);cbufferLoadLegacyviacbuffer_dword);A load whose result is used as a descriptor (a descriptor stored in a root buffer) goes to
descriptor_dataas before.loads_descriptorchecks every descriptor source,LoadedandFetched, for the load site.Related, without overlap: #667 binds addresses passed in two root constants as root views. #709 reads structured buffer accesses through a root view's raw handle. Neither changes
s_loadfrom a root descriptor's address.Test
scalar_loads_read_a_root_srv_and_a_root_cbv(newemit/root_view_tests.rs) runs a synthetic program with a root view in user SGPRs 0-1 and a table holding a raw UAV. It reads dwords 2 and 3 of the view's memory with ones_load_dwordx2and stores them. The test:root_srvs/root_cbvs);The results are exact on an RTX 4060 Ti and on WARP. On
mainthe program stops with "a descriptor read only as data".Checks
cargo test --workspace --locked: 343 passed, 0 failed, 6 ignored. The GPU tests ran on an RTX 4060 Ti and WARP, with no "skipped" lines.cargo clippy --workspace --all-targets --locked -- -D warningsand the same with--all-features: clean.cargo xtask policy: ok.No title data was used.
🤖 Generated with Claude Code