Series S: the stretch pass builds under Wine once GetDimensions is not used (one file, patch included) #1091
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork#1091
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@YaBulochka on GitHub · 2026-11-25 19:09 UTC · original
Series S renders under Wine once the stretch pass stops calling
GetDimensionsSymptom. With
--console series-son Wine, the 3D world is black and only the 2D layer draws. The log ends the upscale with:Cause. Not the pipeline, the compiler. With
VICTORY_LOG=victory_gpu=debug,host::compilesays:Wine's
d3dcompiler_47refusesGetDimensionson a UAV texture. Windows' compiler takes it, which is why the sameover.rsworks there.Fix (one file,
crates/victory-gpu/src/over.rs).STRETCHtakes the sizes as constants instead:float2 source_size(the SRV's width and height), written byrecord_stretchas two more 32-bit constants (root constants 4 → 6,SetComputeRoot32BitConstants4 → 6);texelconstant the pass already has (uint2 size = (uint2)round(1.0 / texel);), sincetexelis1 / target size;source_size, so bothGetDimensionscalls go away.Nothing else changes: the same scale/texel maths, the same half-texel clamp.
Result.
INFO victory_gpu::over: the upscaler's output is made by a plain stretch of its colour input, and the Series S picture reaches the screen: interior, character, lamp light, HUD, at 184 ms to 3.4 s a frame on this card (scene-dependent).Setup:
maind510ee4+ #1052 + #1011 + #1010 + #1054,x86_64-pc-windows-gnu,--features diagnostics; CachyOS 7.3.5, RX 7600 XT 8 GB, RADV (Mesa 27.0.0), Wine 11.22, vkd3d-proton from master;VICTORY_INDIRECT_GATHER=1 VICTORY_HEAP_WORKER=1 VICTORY_RELAY=2 VICTORY_CARD_FETCH_INFLIGHT=1 VICTORY_TEXTURE_BUDGET_MB=4096.Happy to push a branch with the patch if you want to take it; otherwise it is this one file and I can paste the hunk.
No game files, dumps or screenshots are included.
@YaBulochka on GitHub · 2026-11-26 07:38 UTC · original
Update: this patch is no longer needed in our tree. With a
dxcompiler.dllfallback inhost::compile(compile the same source ascs_6_0whenD3DCompilefails), the unmodifiedover.rsbuilds and the Series S profile draws:the upscaler's output is made by a plain stretch. I reverted the constants change and confirmed it, so the choice is now "keep this patch" or "take the fallback", not both.The fallback also builds
vs_6_0/ps_6_0for the overlay pass without changes. Tested on CachyOS 7.3.5, RX 7600 XT 8 GB, RADV Mesa 27.0.0, Wine 11.22: Series S, 152 consecutive world frames, average 3.99 fps, median 215 ms.Details and the technique are in #1270.