shader: support FP64 conversions used by FighterZ #884
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!884
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/884/head"
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?
@gohansharma79-svg on GitHub · 2026-09-28 04:54 UTC · original
gohansharma79-svg:fighterz-fp64-conversions→main· +104 −3 · 9 files · 1 commits · merged 2026-09-28 13:39 UTCTitle: Dragon Ball FighterZ,
PPSA09790; game version observed locally:01.000.010.0x10(V_CVT_F64_F32) at shader PC0x7e0, then opcode0x16(V_CVT_F64_U32) at PC0x2e0after the first change. Both are implemented in patch 01.@gohansharma79-svg on GitHub · 2026-09-28 04:59 UTC · original
I also have a patch for prince of persia lost crown that can make the game run 60 fps please contact i dont know much about github i need guidence
@coderabbitai[bot] on GitHub · 2026-09-28 05:01 UTC · original · edited 2026-09-28 05:06 UTC
Navigate logical layers of code changes, visualize relationships, and explore their blast radius.
📝 Walkthrough
Walkthrough
The change adds
V_CVT_F64_U32andV_CVT_F64_F32across vector decoding, IR translation, and SPIR-V emitter declarations. It also changes the FP64 module check so thatfloat_modeis validated only for compute shaders.Suggested reviewers:
nmzikPriority: ➖ Normal
Change: Feature
Merge Risk: 🔵 Low · up to
cb88fPixel shaders using non-default FP64 rounding can produce incorrect results. Validate or reject their mode before merging, or accept this bounded limitation explicitly.
Security Architecture Review
Security architecture risk: 🟡 Moderate · up to
cb88fGraphics shaders that previously stopped at FP64 compilation can now reach GPU module creation. Existing checks remain, but the graphics-stage rounding assumption and the trust level of shader inputs are not fully established.
Retained concerns
No architecture-level concerns identified.
Security review details
Security Blast Radius
Trust Boundaries and Controls
Hardening Proposals
🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring Coverage
Explanation
Docstring coverage is 16.67% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 6 functions across 6 files. (1 skipped: 1 unsupported.)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment
@coderabbitai helpto get the list of available commands.@coderabbitai[bot] on GitHub · 2026-09-28 05:01 UTC · original
On
src/graphics/shader/recompiler/backend/spirv/spirvEmitterModule.cppline 689 (outdated):🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 25213
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 40236
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 41985
🌐 Web query:
AMD RDNA2 ISA float_mode 0xc0 FP64 rounding denormal semantics💡 Result:
🌐 Web query:
site:amd.com RDNA2 shader instruction set architecture MODE FP64 denormal rounding field 0x04 0x00💡 Result:
Reject graphics FP64 with an unvalidated
float_mode.SPI_SHADER_PGM_RSRC1_PS.FLOAT_MODEcan be0x04, but the graphics checks are disabled and the value is not propagated to the emitter. A pixel shader with FP64 instructions can therefore receive the fixed controls forMODE=0xc0. RDNA2 defines0x04as round-toward-positive-infinity for FP64, so the generated shader can produce incorrect FP64 results.Suggested fix
📝 Committable suggestion
@coderabbitai[bot] on GitHub · 2026-09-28 05:01 UTC · original · reviewed
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml
Review profile: CHILL
Plan: Advanced
Run ID:
d21e5fe2-383c-4c9a-b4b2-2a56321b45bd📥 Commits
Reviewing files that changed from the base of the PR and between
421684e75fand cb88f8587790bb901a113dc423fa013d41ce5773.📒 Files selected for processing (7)
src/graphics/shader/recompiler/backend/spirv/spirvEmitterInstructions.hsrc/graphics/shader/recompiler/backend/spirv/spirvEmitterModule.cppsrc/graphics/shader/recompiler/frontend/decode/ShaderDecoder.hsrc/graphics/shader/recompiler/frontend/decode/VectorAluOps.cppsrc/graphics/shader/recompiler/frontend/translate/Translate.cppsrc/graphics/shader/recompiler/frontend/translate/Vector.cppsrc/graphics/shader/recompiler/ir/opcodes/ValueOpcodes.incIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.
@gohansharma79-svg on GitHub · 2026-09-28 09:18 UTC · original
@Nmzik
@Nmzik on GitHub · 2026-09-28 13:39 UTC · original
@gohansharma79-svg Other changes needed in-game are related to another PR, #780. Approved.