1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-07 03:13:49 +00:00
Commit Graph

2504 Commits

Author SHA1 Message Date
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
Sergey Lipskiy
3b9f16e8dd Fix regression with blending in A Bug's Life, #1488
Hack alert:
The problem blender is used in two cycles mode, but both cycles are the same:
c_in*a_in + c_mem * 1ma
I have no access to c_mem from shader. Therefore, I use c_in instead of c_mem in the first cycle.
Result of the second cycle will be blended with c_mem by GL blender, as usual.
This is pretty good approximation, no problems noticed.
2017-07-30 22:50:39 +07:00
Sergey Lipskiy
aa2a12b32d Print K4 and K5 in debugger. 2017-07-30 21:21:52 +07:00
Michael Maltese
a09a1f02c4 CMake: fix 'UNIX build requires MUPENPLUSAPI' message 2017-07-23 19:54:53 -07:00
Michael Maltese
df5fc37630 TxInternal: fix include typo on macOS 2017-07-19 19:18:03 -07:00
Stefan
92f5246eb6 armv8 crc32: add license information 2017-07-18 06:26:54 +02:00
Sergey Lipskiy
5691fcbc23 Implement F3DAM ucode.
Decoded by olivieryuyu

Fixed #97 hey you pikachu:hilarious texture bug
2017-07-17 23:08:26 +07:00