Repository navigation
GPU: 16-bit float RGBA stands in for R9G9B9E5 render targets - #32
arminkhaleghirod wants to merge 2 commits into
Conversation
No PC GPU renders to R9G9B9E5, so CreateRenderTargetView on such a target removes the device. Add it to the existing stand-in table, next to the 16-bit colour formats.
|
Independent test run on commit
AI use: Antigravity (Gemini 4 Neon) ran clippy/tests locally and wrote this report. |
|
Thanks for testing. On the typed-store check: |
|
A regression report for this PR on the Series X profile (RTX 3080 10 GB, driver 616.92, this fork at
So the R9G9B9E5 → RGBA16F stand-in fixes the Series S device removal but blacks out the Series X picture on this card. One guess: views of the packed-light textures that the title places at the same addresses, which on Series X sample those textures as R9G9B9E5 ( AI-assisted (Claude Code) |
|
That fits how upstream handles it. Main keeps RGB9E5 textures as real RGB9E5 textures and makes them castable to the other 32-bit formats, so a compute pass writing the packed light as R32_UINT and a view reading it as RGB9E5 share one host texture ( Edit: The FP16 stand-in described above was removed from Marvisak/VIctory#1793. Main’s host upscaler writes RGB9E5 directly, and both the RX 9070 XT and WARP report typed UAV store support for that format. |
In its Series S mode the title renders at 1280x720 and calls the console's
FidelityFX upscaler (`ffxDispatch` of amd_fidelityfx_loader_xbox.dll) to make
the 1920x1080 output. The loader and upscaler are the title's own DLLs and
run, but the upscaler's passes are compute pipelines in a container that is
not translated ("falling back to NewBE" in the title's log), so the output
was never written: the world was black behind the interface.
The executable's import of `ffxDispatch` is now bound to ours. An upscale
dispatch (type 0x10001, the public FidelityFX API's layout) is recorded as
`victory_gpu::list::upscale_stretch` of its colour input into its output;
any other dispatch, and an upscale that could not be stretched, goes to the
title's DLL. The DLL is not registered as an HLE module: that kept the
title's own from loading and left its other three entry points missing.
Measured on an RTX 3050 8 GB, Windows 11, release build, on top of the
R9G9B9E5 stand-in (fxceless#32): the Series S world renders (opening cutscene), 0.4
to 1.2 s a frame with peaks of 3 s, the card about a quarter busy, 7 GB of
video memory, no host error in a five-minute run. Series X is not affected
in the run made (it does not dispatch the upscaler).
Not done: temporal accumulation, sharpening, use of the depth and motion
inputs. No test yet. Only the opening cutscene was looked at.
|
Thanks @HenriqueSBueno, and @AwkGrep256 for the explanation. That's it: the stand-in also caught the packed-light textures, which the title writes as R32_UINT through another view. I'm narrowing it so R9G9B9E5 gets the stand-in only when it's a render target (the Series S upscaler output). Unordered-access-only R9G9B9E5 textures keep their format, as on main. Series S still gets past the old crash here (no device loss to frame 1890). I'm checking Series X past frame 2400 now, and I'll push once it holds. |
In its Series S mode the title renders at 1280x720 and calls the console's
FidelityFX upscaler (`ffxDispatch` of amd_fidelityfx_loader_xbox.dll) to make
the 1920x1080 output. The loader and upscaler are the title's own DLLs and
run, but the upscaler's passes are compute pipelines in a container that is
not translated ("falling back to NewBE" in the title's log), so the output
was never written: the world was black behind the interface.
The executable's import of `ffxDispatch` is now bound to ours. An upscale
dispatch (type 0x10001, the public FidelityFX API's layout) is recorded as
`victory_gpu::list::upscale_stretch` of its colour input into its output;
any other dispatch, and an upscale that could not be stretched, goes to the
title's DLL. The DLL is not registered as an HLE module: that kept the
title's own from loading and left its other three entry points missing.
Measured on an RTX 3050 8 GB, Windows 11, release build, on top of the
R9G9B9E5 stand-in (fxceless#32): the Series S world renders (opening cutscene), 0.4
to 1.2 s a frame with peaks of 3 s, the card about a quarter busy, 7 GB of
video memory, no host error in a five-minute run. Series X is not affected
in the run made (it does not dispatch the upscaler).
Not done: temporal accumulation, sharpening, use of the depth and motion
inputs. No test yet. Only the opening cutscene was looked at.
In its Series S mode the title renders at 1280x720 and calls the console's
FidelityFX upscaler (`ffxDispatch` of amd_fidelityfx_loader_xbox.dll) to make
the 1920x1080 output. The loader and upscaler are the title's own DLLs and
run, but the upscaler's passes are compute pipelines in a container that is
not translated ("falling back to NewBE" in the title's log), so the output
was never written: the world was black behind the interface.
The executable's import of `ffxDispatch` is now bound to ours. An upscale
dispatch (type 0x10001, the public FidelityFX API's layout) is recorded as
`victory_gpu::list::upscale_stretch` of its colour input into its output;
any other dispatch, and an upscale that could not be stretched, goes to the
title's DLL. The DLL is not registered as an HLE module: that kept the
title's own from loading and left its other three entry points missing.
Measured on an RTX 3050 8 GB, Windows 11, release build, on top of the
R9G9B9E5 stand-in (fxceless#32): the Series S world renders (opening cutscene), 0.4
to 1.2 s a frame with peaks of 3 s, the card about a quarter busy, 7 GB of
video memory, no host error in a five-minute run. Series X is not affected
in the run made (it does not dispatch the upscaler).
Not done: temporal accumulation, sharpening, use of the depth and motion
inputs. No test yet. Only the opening cutscene was looked at.
(cherry picked from commit 19a0240)
The game renders to R9G9B9E5 (format 67). No PC GPU can, so the texture was refused and the render target view made for it removed the device: on an RTX 4080 in Series S mode that happened at the first loading screen, every run (debug layer:
CreateRenderTargetView: The format (0x43, R9G9B9E5_SHAREDEXP) cannot be used with a RenderTarget view).This adds 67 → R16G16B16A16_FLOAT to the stand-in table
target_formatalready uses for the 16-bit colour formats, so views, pipelines and clear values follow it. FP16 holds RGB9E5's precision and range.With it the same machine gets through loading into the opening cutscene. Built and
cargo test -p victory-gpupasses.Upstream has the same idea in Marvisak/VIctory#492.