User talk:Kozarovv: Difference between revisions

From PS4 Developer wiki
Jump to navigation Jump to search
(13 intermediate revisions by 3 users not shown)
Line 3: Line 3:
==psfour2pstwo==
==psfour2pstwo==


====gs====
====idle detect====
 
* --gs-kernel-cl="DarkCloud2"
* --gs-kernel-cl="fantavision"
 
Special case kernel plugins?
 
====possible speed/comp hacks====


* --detect-idle-vif
* --detect-idle-vif
Line 18: Line 11:
* --detect-idle-chcr
* --detect-idle-chcr


====GS handling switches====
====other====


* --threaded-gs
* --force-point-sampling
* --gpugs
* Project Snowblind US mipmap offset 0019506C  bc1f    loc_19508C
'''Reminder''' (different upscaler modes for gpugs 0x325962)


====Sound - SPU2 behavior====
====vu====


* --spu2-update-deferral
Looks like VU sync always(?), not like ps2.
* --spu2-reverb
* --spu2-c0-memin-to-bgm
* --spu2-c1-memin-to-bgm
* --spu2Trace


====other====
====todo====
 
seems to be like internal threads, not real threads. Emu print with that.
<pre>_____________________________________________________________________________
| Emotion Engine:      | Input Output Processor (iop)  | x Extra?          |
|-----------------------|-------------------------------|-------------------|
| e-dbg                | i-fw                          | x-stdlib          |
| e-r59                | i-debug                      | x-emu            |
| e-mem                | i-cdvd                        | x-lpnr            |
| e-dmac                | i-dmac                        | x-cdvd            |
| e-timer              | i-gmif                        | x-isofs          |
| e-sio                | i-intc                        | x-log            |
| e-dramc              | i-mem                        | x-mcd            |
| e-intc                | i-memcard                    | x-replay          |
| e-sif                | i-mtap                        | x-rtc            |
| e-gif                | i-pad                        | x-save            |
| e-vif0                | i-pif                        | x-osd            |
| e-vif1                | i-sched                      | x-snap            |
| e-ipu                | i-sif                        | x-host            |
| e-jit                | i-sio2                        | x-trphy          |
| e-hook                | i-timer                      | x-audio          |
| e-Lua                | i-usb                        | x-pad            |
| e-gs                  | i-spu2                        | x-srvc            |
| e-sched              | i-EndSlice                    | x-dialog          |
|                      | i-r30                        | x-dlc            |
|                      | i-jit                        | x-stream          |
|                      | i-Lua                        | x-mem            |
|                      | i-thread                      | x-core            |
|-----------------------|-------------------------------|-------------------|</pre>
 
==Shaders==


* --force-point-sampling
===SB header===
* Project Snowblind US mipmap offset 0019506C bc1f    loc_19508C
{| border="1" cellspacing="0" cellpadding="5" border="#999" class="wikitable" style="border:1px solid #999; border-collapse: collapse;"
|- bgcolor="#cccccc"
! Offset !! Size !! Description !! Example
|-
| 0x00 || 2 bytes || SB Version || 00 04 (00.04)
|-
| 0x02 || 2 bytes || Compiler Version || F9 F1 (63985)
|-
| 0x04 || 8 bytes || Association Hash || B2 09 E0 A5 00 00 00 00
|-
| 0x0C || 1 byte || Shader Type || 02
|-
| 0x0D || 1 byte || Code Type || 01
|-
| 0x0E || 1 byte || UseShaderResourceTable || 00/01 (true/false)
|-
| 0x0F || 1 byte || Compiler Type || 03
|-
| 0x10 || 4 bytes || Code Size || E8 00 00 00 (232)
|-
| 0x14 || 4 bytes || ? || 00 00 00 00
|-
| 0x18 || 12 bytes? || System Attribute Info - Num Threads || 40 00 01 00 01 00 00 00  00 00 00 00
|-
|}
<pre>
'''Shader Type'''


=====Disc patch=====
*(unknown)            0
*kShaderTypeVsShader  1
*kShaderTypeFsShader  2
*kShaderTypeCsShader  3
*kShaderTypeGsShader  4
*kShaderTypeHsShader  5
*kShaderTypeDsShader  6


(important! 50% ps2_netemu fixes!)


MechaSetPatch (sector, offset, size) Data?
'''Code type'''


MECHA_SET_PATCH : sec=%d offset=%d size=%d
*kCodeTypeIl  0
<br>MECHA PATCH : sec=%d(%x), ofs=%d(%x) size=%s
*kCodeTypeIsa  1
*kCodeTypeScu  2


====IEEE 754====


https://gist.github.com/masterzorag/06cadbc5fbe7d3375704fc52518f434e
'''UseShaderResourceTable'''


====vu====
*false  0
*true  1


Looks like VU sync always(?), not like ps2.


== God of war Patch ==
'''Compiler Type'''


So how to define GOW new patched pkg. Do you have the config details yet? As i have changed the status of the game as Playable. Just to update the config file on talk page pls?
[[User:SalmanKhan|SalmanKhan]] ([[User talk:SalmanKhan|talk]]) 20:19, 9 July 2019 (UTC)
*kCompilerTypeUnspecified 0
*kCompilerTypeOrbisPsslc  1
*kCompilerTypeOrbisEsslc  2
*kCompilerTypeOrbisWave  3
*kCompilerTypeOrbisCuAs  4</pre>


[[User:SalmanKhan|SalmanKhan]] You can ask pkg author to share config files he used, or extract/dump them by yourself from ps4 (using game dump payload). Then you can post config files on psdevwiki. So anyone can create pkg using game he own.
===GNM Header===
Files inside pkg that store configs are:
* config-emu-ps4.txt
* XXXX-YYYYY_cli.conf
* XXXX-YYYYY_config.lua
* XXXX-YYYYY_features.lua


If you need any help with posting extracted config files, feel free to contact me here. I will help you. I'm answering when i can.  
{| border="1" cellspacing="0" cellpadding="5" border="#999" class="wikitable" style="border:1px solid #999; border-collapse: collapse;"
Posting links to full games, or any copyrighted materials is prohibited on psdevwiki. [[User:-- kozarovv]]
|- bgcolor="#cccccc"
! Offset !! Size !! Description !! Example
|-
| 0x00 || 4 bytes || Magic || 72 64 68 53 Shdr
|-
| 0x04 || 4 bytes || Version || 00 07 00 02 (0007.0002)
|-
| 0x08 || 1 byte || Shader type || 04 (Compute)
|-
| 0x09 || 1 byte || Shader header size in DW || 0D (13)
|-
| 0x0A || 1 byte || Has shader aux data || 00/01 ? 
|-
| 0x0B || 1 byte || Target GPU types || 03 (Base|NEO)
|-
| 0x0C || 4 bytes || padding || 00 00 00 00
|-
|}

Revision as of 18:03, 30 September 2019

Rough draft

psfour2pstwo

idle detect

  • --detect-idle-vif
  • --detect-idle-ee
  • --detect-idle-iop
  • --detect-idle-intc
  • --detect-idle-chcr

other

  • --force-point-sampling
  • Project Snowblind US mipmap offset 0019506C bc1f loc_19508C

vu

Looks like VU sync always(?), not like ps2.

todo

seems to be like internal threads, not real threads. Emu print with that.

_____________________________________________________________________________
| Emotion Engine:       | Input Output Processor (iop)  | x Extra?          |
|-----------------------|-------------------------------|-------------------|
| e-dbg                 | i-fw                          | x-stdlib          |
| e-r59                 | i-debug                       | x-emu             |
| e-mem                 | i-cdvd                        | x-lpnr            |
| e-dmac                | i-dmac                        | x-cdvd            |
| e-timer               | i-gmif                        | x-isofs           |
| e-sio                 | i-intc                        | x-log             |
| e-dramc               | i-mem                         | x-mcd             |
| e-intc                | i-memcard                     | x-replay          |
| e-sif                 | i-mtap                        | x-rtc             |
| e-gif                 | i-pad                         | x-save            |
| e-vif0                | i-pif                         | x-osd             |
| e-vif1                | i-sched                       | x-snap            |
| e-ipu                 | i-sif                         | x-host            |
| e-jit                 | i-sio2                        | x-trphy           |
| e-hook                | i-timer                       | x-audio           |
| e-Lua                 | i-usb                         | x-pad             |
| e-gs                  | i-spu2                        | x-srvc            |
| e-sched               | i-EndSlice                    | x-dialog          |
|                       | i-r30                         | x-dlc             |
|                       | i-jit                         | x-stream          |
|                       | i-Lua                         | x-mem             |
|                       | i-thread                      | x-core            |
|-----------------------|-------------------------------|-------------------|

Shaders

SB header

Offset Size Description Example
0x00 2 bytes SB Version 00 04 (00.04)
0x02 2 bytes Compiler Version F9 F1 (63985)
0x04 8 bytes Association Hash B2 09 E0 A5 00 00 00 00
0x0C 1 byte Shader Type 02
0x0D 1 byte Code Type 01
0x0E 1 byte UseShaderResourceTable 00/01 (true/false)
0x0F 1 byte Compiler Type 03
0x10 4 bytes Code Size E8 00 00 00 (232)
0x14 4 bytes ? 00 00 00 00
0x18 12 bytes? System Attribute Info - Num Threads 40 00 01 00 01 00 00 00 00 00 00 00
'''Shader Type'''

*(unknown)             0
*kShaderTypeVsShader   1
*kShaderTypeFsShader   2
*kShaderTypeCsShader   3
*kShaderTypeGsShader   4
*kShaderTypeHsShader   5
*kShaderTypeDsShader   6


'''Code type'''

*kCodeTypeIl   0
*kCodeTypeIsa  1
*kCodeTypeScu  2


'''UseShaderResourceTable'''

*false  0
*true   1


'''Compiler Type'''

 
*kCompilerTypeUnspecified 0
*kCompilerTypeOrbisPsslc  1
*kCompilerTypeOrbisEsslc  2
*kCompilerTypeOrbisWave   3
*kCompilerTypeOrbisCuAs   4

GNM Header

Offset Size Description Example
0x00 4 bytes Magic 72 64 68 53 Shdr
0x04 4 bytes Version 00 07 00 02 (0007.0002)
0x08 1 byte Shader type 04 (Compute)
0x09 1 byte Shader header size in DW 0D (13)
0x0A 1 byte Has shader aux data 00/01 ?
0x0B 1 byte Target GPU types NEO)
0x0C 4 bytes padding 00 00 00 00