Francisco Zurita
3790dbe1ed
Fix build error in Android build
2017-09-25 00:48:49 -04:00
Sergey Lipskiy
7ae98a2bf9
Optimize TriGen functions in F3DSWRS ucode.
2017-09-25 11:37:57 +07:00
Sergey Lipskiy
597f7a25cf
Revert "Remove "Animal Forest" ucodes from specialMicrocodes list. These ucodes successfully detected by ucode string."
...
This reverts commit 67379aa0fc
.
2017-09-24 22:09:06 +07:00
Sergey Lipskiy
497b8dd709
Use legacy blending for DepthFogCombiner.
...
Fix regression in Beetle Adventure Racing! snow is grey! #1587
2017-09-24 18:55:01 +07:00
Sergey Lipskiy
1266ced083
Code cleaup: remove unused MonochromeCombiner.
2017-09-24 18:51:02 +07:00
Sergey Lipskiy
7ba58fe5b6
Implement CombinerKey() ctor
2017-09-24 18:36:07 +07:00
Sergey Lipskiy
c67e017772
Correct Tri commands for F3DSWRS ucode.
...
Fixed Star Wars: Rogue Squadron HLE glitches. #1584
2017-09-22 22:39:30 +07:00
Sergey Lipskiy
81cc0854dc
Fix blending when CLR_ON_CVG flag is on.
...
Remove hack for Pilot Wings.
2017-09-21 23:18:35 +07:00
Sergey Lipskiy
a70bc7411b
Fix glError in screenshot functions.
2017-09-21 23:18:32 +07:00
Sergey Lipskiy
67379aa0fc
Remove "Animal Forest" ucodes from specialMicrocodes list. These ucodes successfully detected by ucode string.
2017-09-21 23:18:29 +07:00
Sergey Lipskiy
231463e368
Optimize blender shaders. Thanks to Logan McNaughton aka loganmc10 and standard-two-simplex for the new code.
2017-09-21 23:18:11 +07:00
Sergey Lipskiy
a2a96f3d92
Set CHANGED_LIGHT|CHANGED_LOOKAT bits when index in modelview stack changes.
...
Fixed #1417 [HLE] Lighting issue
2017-09-21 21:33:08 +07:00
Sergey Lipskiy
21af2d8ea7
Rename F3DEX2MM ucode to F3DZEX2. Zelda games use modifications of this ucode.
...
Fixed Zelda: OoT missing fences #1575
2017-09-21 21:33:08 +07:00
Sergey Lipskiy
da2becd57e
Fix ShaderBlender1::write method. Up ShaderStorage version.
...
Fixed #1553 Resetting once breaks rendering via transparency of many textures.
Thanks Logan McNaughton for finding the root of the problem.
2017-09-21 21:33:08 +07:00
Sergey Lipskiy
d4dbe7c094
Correct blending when FORCE_BL flag is off. Up shader storage version.
...
Fixed F-Zero X wrong borders #639
2017-09-21 21:33:08 +07:00
Sergey Lipskiy
41aa06523e
Move ucodes source files to uCodes folder.
2017-09-21 21:33:08 +07:00
Sergey Lipskiy
47d718f287
Add F3DFLX2 ucode for F-Zero. Implement F3DFLX2 lighting method.
2017-09-21 21:33:08 +07:00
Sergey Lipskiy
ef6f470df7
Revert "Fix implementation of 0xD5 (Special_1) command for F3DEX2 ucode."
...
This reverts commit 8985e38bc0
.
2017-09-16 18:44:40 +07:00
Sergey Lipskiy
8985e38bc0
Fix implementation of 0xD5 (Special_1) command for F3DEX2 ucode.
...
olivieryuyu found that 0xD5 command, when presents in ucode, updates combined matrix.
I could not remeber, which game uses implementation of F3DEX2_Special_1 with gSPDlistCount call.
Probably such game does not exists and this code was added by mistake. I removed it.
2017-09-13 18:01:15 +07:00
Sergey Lipskiy
187f9ef390
Fix Zelda ucodes detection.
...
Zelda OOT ucode string:
"RSP Gfx ucode F3DZEX.NoN fifo 2.06H Yoshitaka Yasumoto 1998 Nintendo."
Zelda MM ucode string:
"RSP Gfx ucode F3DZEX.NoN fifo 2.08I Yoshitaka Yasumoto/Kawasedo 1999."
2017-09-13 18:01:07 +07:00
Logan McNaughton
528744de19
Init mupen64plus config at PluginStartup
2017-09-13 15:22:29 +07:00
Logan
f567186e01
Only use XXH32 in CRC_OPT
2017-09-13 15:20:39 +07:00
Sergey Lipskiy
21e7cae6aa
Implement F3DEX2_Special_1 command for F3DEX 2.0XH ucodes.
...
Fixed #1562 Pokemon Snap/Kirby 64/Super Smash Bros. unimplemented command
2017-09-12 21:06:38 +07:00
Sergey Lipskiy
9874fa641c
Code cleanup: remove unused function from gSP.h
2017-09-12 21:06:38 +07:00
Sergey Lipskiy
6ecdd82ee7
Code cleanup: better names for variables in F3DSWRS.cpp
2017-09-12 15:22:58 +07:00
Sergey Lipskiy
b4400c1d24
Correct next command calculation for F3DSWRS_Tri1 and F3DSWRS_Tri2
...
Fixed Star Wars Rouge Squadron gfx bug #1546
2017-09-12 15:22:54 +07:00
Francisco Zurita
16d1aa6761
Fix possible memory corruption when reading pixels for G_IM_SIZ_8b
...
buffers.
Also, improve variable naming.
2017-09-11 10:26:49 +07:00
Francisco Zurita
c5b5364299
Better check when deciding to create a new color buffer texture.
2017-09-11 10:26:49 +07:00
Francisco Zurita
8fbd1d030b
Fix memory corruption in Banjo-Tooie
2017-09-11 10:26:49 +07:00
Sergey Lipskiy
1035a0d432
Enable WPO for windows release build.
2017-09-08 20:55:14 +07:00
Logan McNaughton
23642624d4
Enable IPO for Release build
2017-09-06 20:48:11 -06:00
Sergey Lipskiy
bbc7131655
Rewrite TriGen02_PrepareVtxData
2017-08-11 12:23:39 +07:00
Sergey Lipskiy
f95d819a47
Up shader storage version.
2017-08-11 12:23:39 +07:00
Sergey Lipskiy
19b2ed6957
Star Wars Rogue Squadron ucode : code cleanup
2017-08-11 12:23:39 +07:00
Sergey Lipskiy
f0eef7ab31
Implement command 0xBD This command generates texrects for explosions.
2017-08-11 12:23:39 +07:00
Sergey Lipskiy
62eb76e7d9
Correct DebugMsg for gSPMatrix
2017-08-11 12:23:39 +07:00
Sergey Lipskiy
84cf648089
Always call frameBufferList().saveBuffer() from gDPSetColorImage, even if buffer data not changed.
...
Fixed fb-related issues with Star Wars - Rogue Squadron
2017-08-11 12:23:39 +07:00
Sergey Lipskiy
20c2fb9b5e
Fix gSPSWVertex for __VEC4_OPT
2017-08-11 12:23:39 +07:00
Sergey Lipskiy
d37903461c
Fix RSP commands dump.
2017-08-11 12:23:39 +07:00
Sergey Lipskiy
1bb170a3c4
Implement command 0x05. This command generates polygons for terrain geometry.
...
Very large and complex.
2017-08-11 12:23:39 +07:00
Sergey Lipskiy
1fb8653dae
Rewrite DL commands.
2017-08-11 12:23:39 +07:00
Sergey Lipskiy
0f99077724
Log SWRS commands
2017-08-11 12:23:39 +07:00
Sergey Lipskiy
e56e45e2da
Command 05 - 02 WIP debug
2017-08-11 12:23:39 +07:00
Sergey Lipskiy
02e84b90f2
Command 05 - 02 WIP
2017-08-11 12:23:39 +07:00
Sergey Lipskiy
f0bbfbc84e
Add F3DSWRS_SetOtherMode_L_EX command
2017-08-11 12:23:39 +07:00
Sergey Lipskiy
089dd2df0e
Fix fog for F3DSWRS
2017-08-11 12:23:39 +07:00
Sergey Lipskiy
a0c2b39a65
Fix texture scale load.
...
Explanation from olivieryuyu:
1. I do believe that RS ucode has no lighting as I cannot see any code for it! I guess that it was done on the purpose to save power for other matters.
2. G_TEXTURE (command BB) does not set the texture s and t scale. Command BB is composed of two 32 bits words (as for FAST3D) but RS ucode does not use the 2nd 32 bits word. This latter seems to be always nil and should be considered as padding.
3. Movemen (command 0x03) case 82 does not concern light (because there is no light!!!). Actually this case of movemen seems to set the texture s and t scale which is then retrieved by the B4 command and combined with the texture coordinates.
2017-08-11 12:23:39 +07:00
Sergey Lipskiy
a9248c5a26
Port of Lemmy's implementation of SWRS ucode.
2017-08-11 12:23:39 +07:00
Sergey Lipskiy
6bfe0adf0a
Fix triangle index calculation for flat shading.
2017-08-11 12:23:39 +07:00
Sergey Lipskiy
24b041b86e
Set fullscreen scissor at the end of FrameBufferList::renderBuffer()
...
Fixed clipped screen issue with OBS studio, #1515
2017-08-08 22:49:28 +07:00