fix: lower what the Series S upscaler's passes use (int8 dots, v_pk_fmac_f16, src_scc, ...) #387
No reviewers
Labels
No labels
accessibility
bloqué : binaire console
bug
chargeur
console-dll
cpu
documentation
duplicate
enhancement
good first issue
gpu
help wanted
invalid
performance
question
runtime-gdk
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LooperSalty--AnyXboxX!387
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-387"
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?
@Skyfrye on GitHub · 2026-11-26 15:10 UTC · original
Skyfrye:nep/shader-fsr-passes→main· +352 −12 · 7 files · 2 commits · merged 2026-11-26 18:03 UTCSummary
As a Series S, the title has the console's AMD FidelityFX upscaler library (
amd_fidelityfx_upscaler_xbox.dll) build the 1920x1080 picture from the 1280x720 scene. The upscaler's 29 compute passes come inACCCcontainers. WithVICTORY_WAVE32_NVIDIA=1the translator reads those containers (#377), but none of the 29 translated:Their dispatches were dropped, so in Series S mode the 3D picture stayed black under the UI (
--console series-s).This PR lowers what those passes use. With
VICTORY_WAVE32_NVIDIA=1(required: without it, ACCC containers are not read at all, as #377 decided), all 29 now translate, validate and get pipelines, and the Series S picture appears.What is lowered
resource.rs,made_raw).v_dot4c_i32_i8(VOP2)v_dot4_i32_i8,v_dot4_u32_u8(VOP3P)dot4AddPacked(SM 6.4), wrapping as the hardware does. Each byte source is two 16-bit halves that op_sel picks, as packed integer operations already do here.v_pk_fmac_f16(VOP2)src_sccas an operandimage_atomic_*with 16-bit coordinates (a16)image_storeof the first 1 to 3 channelsv_readlane_b32right after the whole-wave section restores EXEC; the section's simulation now follows such constant-lane reads (wave.rs,Section::after). The three wave64 model passes then translate in the paired form on 32-lane hosts.victory translateandvictory shader-infoKnown gaps (not in this PR)
0x58and command list slot0x1a8(probablyClearUnorderedAccessViewUint). They are logged once each. The picture looks right without them.VICTORY_FSR_DLLpointed at AMD's PC upscaler DLL.fidelityfx.rsalready redirects the title's upscaler to it. This PR is the route that needs no outside DLL: the console library's own passes run.Verification
Machine: RTX 5080, Windows 11. Branch rebased on upstream
65c28e3. The checks below ran on341e299; the merges since then do not touchvictory-shaderor thetranslate/shader-infocommands.Offline translation of the upscaler library. Command (CPU, plus
--pipelineson the card):VICTORY_WAVE32_NVIDIA=1 VICTORY_HOST_MAX_WAVE=32 victory translate --validate --pipelines --list amd_fidelityfx_upscaler_xbox.dll341e299translatedoes not read ACCC, so for this count it was patched locally the same way this PR does.dxil.dll10.0.26100), 29 pipelines created on the cardWithout the switch, both builds report "no DXIL part", as before.
Whole archive.
victory translate --validate --list shaders.rpfwithVICTORY_HOST_MAX_WAVE=32, switch off:Tests.
cargo test --locked -p victory-shaderon the RTX 5080 (hardware and WARP legs): 257 passed, 0 failed, 2 ignored. Each new test fails on upstream without its change:dot4_of_bytes_wraps_into_the_accumulatorlowerpacked_fmac_f16_accumulates_each_half_into_its_ownlowersrc_scc_reads_scc_as_a_numberlowera_buffer_descriptor_made_raw_is_the_descriptor_loadedpaired_lanes_read_a_wave_or_from_lane_63_after_the_restorecargo test --locked -p victory-gpu --lib:spans_say_the_next_start_and_the_lowest_level_viewed,warp_card_fetch_copies_flagged_pieces_to_their_slots,warp_card_patch_writes_the_masked_bytes_and_no_others);cargo xtask policy: ok.In game (Series S). Diagnostics builds with
VICTORY_CAPTURE(presented frames saved from the GPU),--console series-s,VICTORY_INDIRECT_RAW=3.VICTORY_WAVE32_NVIDIA=1, runsd-fsr2-after; an earlier form of the same lowering, runsd-fsr-fix, looked the same):Notes
AI assistance: Claude Opus 5.5 (subagent).
🤖 Generated with Claude Code