Repository navigation
Conversation
s_buffer_load_dword* through a table's UAV took the constant buffer path: a CBV handle at the heap index of a UAV. Reading through it removes the device (WARP: "The GPU device instance has been suspended"). Such a load now reads the UAV raw, as a raw SRV is read and as vector buffer accesses read a UAV. The test writes a value to the VALU tests' raw UAV, reads it back with a scalar buffer load and stores that; it removed the WARP device before this change and passes on the hardware GPU and WARP after. 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. |
|
Thanks — that is the second independent environment (Wine 11.22, RTX 5090, vkd3d-proton) on this branch, and the 342/5/6 line matches the baseline failures one for one, so the fix costs nothing elsewhere. One thing would close this completely, and it is the half you flagged: the red side. The test asserts the load succeeds; the bug it fixes is the device, so the evidence that matters is that the same program on unfixed |
|
This PR has no CI run yet, so I ran the CI's checks at head
Like you, I did not run the unfixed program on the hardware device. |
|
Thanks — that is the native-Windows/AMD half of the evidence the Wine run could not give, and it matches the other two environments (343 passed / 0 failed with the new regression, clippy and |
catminou4
left a comment
There was a problem hiding this comment.
Scalar buffer loads through a UAV descriptor now use a raw buffer view (props 11|0x1000) instead of being refused/mistyped; the comment correctly notes the reverse case (UAV read via CBV handle removes the device). Complements #1015 (heap SRV inference) — note both touch the same ResourceType::Srv hunk in lower.rs, so whichever lands second will need a small rebase. Local verification: macOS arm64, rustc 1.98.1, PR head merged into main ffe310e, cargo test -p <crate> --locked. Shader execution tests (valu_tests/host) are #[cfg(all(test, windows))], so macOS covers lowering/decode/unit tests only. victory-shader: 96 passed, 0 failed (the new valu test is Windows-gated).
|
Thanks for the RDNA3 run @Zipettte — 121 passed / 0 failed at |
The first commit left a heap descriptor of no listed kind that a vector buffer store or atomic also uses on the constant buffer path, which is a CBV handle on the UAV the title made. Scalar loads through it now read a raw UAV (11 | 0x1000), as Marvisak#1055 does for a table's UAV; read-only use stays a raw SRV. The test's store case now expects no CBV handle. In the title's shaders.rpf no program has this case (all 38,829 changed loads are the read-only one); emit and validation counts are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Heads-up: this PR and #1015 both change the raw-view choice for a scalar buffer load of a descriptor in |
A UAV read through a constant buffer handle removes the device. Adapted from Marvisak#1055 (head 21d1b46) onto the rewritten scalar buffer load: that path now has `raw_view` and a root-memory case, so the UAV arm is added beside them with props (11 | 0x1000, 0), leaving the read-only and root-memory arms at (11, 0). The PR's regression test is taken unchanged. Refs: Marvisak#1055 head 21d1b46 (cherry picked from commit b19c8b4e24918cef557672bd272eb5a7b8f4cff0)
|
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
Lower::smemreads a scalar buffer load (s_buffer_load_dword*) through a raw handle when the descriptor's range is an SRV. Any other kind took the constant-buffer path (handle(.., (13, 0x1_0000)), thencbufferLoadLegacy), a table's UAV included. That is a CBV handle at the heap index where the host has a UAV.A scalar buffer load from a UAV now reads it raw. It uses a handle with UAV properties
(11 | 0x1000, 0), which is how a raw SRV is read here and how vector buffer accesses read a UAV, so all of a load site's accesses share one handle. Root UAVs are unchanged; they are still refused with "a root UAV or typed root view".Why
Reading a UAV through a CBV handle removes the device. On
main(ffe310e) withVICTORY_WARP=1, the test below fails with "The GPU device instance has been suspended". I did not run the unfixed program on hardware, because it is undefined behaviour there.How often the title does this is unknown. A translation census can't show it, since these programs translate. Any program that does would remove the device, so this may be one cause of device-removal reports such as #653.
Related: #1015 fixes the neighbouring case, a heap descriptor with no listed kind that vector loads also read. This PR covers a descriptor whose listed kind is a UAV. The two touch the same lines of
smem, so whichever lands second needs a small rebase.Test
scalar_buffer_loads_read_a_uav_through_its_table(emit/valu_tests.rs) usesbuild_valu_cs, whose output UAV is a raw UAV in a table. The program:s_buffer_load_dword;The test removed the WARP device before this change. With the change it passes on an RTX 4060 Ti and on WARP.
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