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 |
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.