Repository navigation
Conversation
catminou4
left a comment
There was a problem hiding this comment.
B4G4R4A4_UNORM stands in as B5G5R5A1_UNORM on hosts where NVIDIA's view creation removes the device (#1952); colors shift rather than vanish. Static review only: victory-gpu/victory-hle are Windows-only (D3D12/windows-sys); not compiled or tested on this macOS arm64 host. rustc 1.98.1. Same #1952 cluster as #2305/#2319.
|
Tested on Windows 11 with an AMD RX 9070 XT — cargo test --workspace (including victory-gpu and victory-shader) compiled cleanly and passed with 0 failures! |
|
Tested the format-86 fallback on an RTX 5080 (621.40) and built-in Microsoft WARP (10.0.26100.10068), Windows 11 build 26300.10075. On
Alpha changed in 10/16 pixels on each adapter in both format-86 cases. The distinction between uploaded bytes and rendered colors is visible on For anyone adding a test, all 16 cleared pixels on WARP matched the 5-bit RGB code divided by 31. The RTX readbacks matched expanding each 5-bit code to 8 bits with |
|
Automated triage for the maintainers. Thanks for the rebase. Reviewed at The change maps format 115 (
To move forward, gate the stand-in on the host's format support (render target and typed UAV), and show it beats widening. Otherwise, consider joining one of the widening PRs. Verdict: needs work. CI: passing. Generated by Claude Code |
RTX 4060 Laptop: in the world, this removes the format-115 device removal (render-target path only; colours not checked)Machine: RTX 4060 Laptop 8 GB (driver 617.14, 32-lane waves), i7-13650HX, 32 GB RAM, Windows 11 26300. Series X mode, title 1.0.2.1. Diagnostics build, shader cache filled with Tree:
The message also stayed at 0 in five more runs with this PR that reached the world with other wave64 settings. Those runs ended for other reasons: once on a hang in the BVH builder, once stopped by hand, three times on the title's watchdog (#1118). The other debug-layer messages in the run with this PR come from elsewhere: ID 527 (497 times, buffer states, see #334), ID 971 (pipeline library misses), and a few IDs 538, 599, 645, 679, 680, 820 and 1419. What this does not show:
Happy to run a narrowed version (render targets only, or a colour-keeping stand-in) on this card in the same world scene. One run per configuration. Counts and messages only, no game data. AI-assisted (Claude Code). |
|
RTX 4060 Laptop (610.47), merged onto main 13f91ca (adjacent-line conflict in |
0e350ab to
7eaaffb
Compare
…ands in as B5G5R5A1
(cherry picked from commit 44638a8)
…the host takes it
44638a8 to
3184820
Compare
|
The stand-in is now conditional on the host, and it carries the view guard with it Head
Consolidation: #2305 was the same cluster and is closed into this branch, so there is one place that decides what a refused target is made as ( Measured: Written with an AI assistant. |
…e stand-in cannot be a typed UAV
|
KainanP's UAV half is now handled where it belongs: the stand-in is skipped for textures written through a UAV Head
Measured: Still true from before: where a host renders to 4-4-4-4 natively, none of this runs and the colours are unchanged. Written with an AI assistant. |
The console's packed 4-bit colour target has no PC render target on NVIDIA; it stands in as the same two bytes
Format 115 (
B4G4R4A4_UNORM) is what the title asks for its 2560×1440 target, and NVIDIA reports it as a render target and then refuses the view — an illegal call that removes the device (issue #1952, with the debug layer naming it).pc_formatmaps the console's 16-bit depth formats (118/119/120) to PC ones and leaves everything else alone, so 115 reached the host as itself.Change:
pc_format(115) = 86(B5G5R5A1_UNORM), and the choice is not aesthetic:R8G8B8A8_UNORM(28), would double the resource and every copy of it;host_desc,view_format, the descriptor tables, the twin path, the pipeline's render-target formats — because they all callpc_format, so the stand-in cannot be applied to the resource but not to a view of it (which would move the illegal call to the sampling view instead of removing it).The cost, stated plainly: the title writes 4-4-4-4 and reads 5-5-5-1, so colours through that target are reinterpreted. A shifted picture instead of no picture, and the step to take before
R8G8B8A8precision would be needed. If 86 ever turns out to be refused on another vendor, 85 (B5G6R5_UNORM) is the next two-byte candidate.Measured (RTX 4090,
32.0.16.2124, diag build with the debug layer, session 1, empty cache, 330 s, this change with #1630 + #1832 + #1778):So the target is created, the illegal call is gone, and the run survives to 8,192 frames. What is not verified: that the world now draws. The run stayed on the setup screens (no keys scripted), and "the world is no longer black" is a claim I am not making — it needs a run that reaches the world, which is the next measurement.
No game data is involved: format numbers, counts and log text.
Written with an AI assistant.