Sergey Lipskiy
ce5abcb21b
Correct FrameBuffer::isValid - do not update m_validityChecked when isValid called from VI_UpdateScreen
...
Fixed Broken Pokemon stadium 2 in-game portraits #1149
2016-10-05 15:39:41 +07:00
Sergey Lipskiy
fc8c65f81b
Code cleanup: remove unused CachedTexture::lastDList
2016-10-05 15:28:36 +07:00
Sergey Lipskiy
ff55e5bea9
Apply scissor to all input coordinates in FrameBufferList::fillRDRAM.
...
Fixed Super Smash Bros Intro not playing with Framebuffer Emulation enabled #1154
2016-10-04 21:22:20 +07:00
Sergey Lipskiy
6f4f24a812
Correct read alpha from color buffer in RDRAM
...
Undo changes from 06da08
Fixed NBA Courtside 2 - Featuring Kobe Bryant wrong intro #1138
2016-10-01 21:30:33 +07:00
Sergey Lipskiy
6694655184
Set maximal height of buffer copied to RDRAM to 480
...
Pokemon Stadium 2 (PAL) - Freeze after nintendo logo with OpenGL #1150
2016-10-01 18:34:42 +07:00
Sergey Lipskiy
0a52dae80c
Set texture level in LLE mode.
...
Fixed map-mapping in LLE mode. #1135
2016-09-29 20:53:05 +07:00
Sergey Lipskiy
8e0ba0f764
Correct gDP.changed flags in GLRender::copyTexturedRect for GLES2
2016-09-29 19:58:59 +07:00
Sergey Lipskiy
6942083612
Disable FrameBuffer::_getSubTexture for GLES2 because GLES2 implementation of OGLRender::copyTexturedRect can't be safely used here.
2016-09-29 19:58:56 +07:00
Sergey Lipskiy
966b2d0f93
Fix compare of vertex Z and test Z in gSPBranchLessZ.
...
Fixed GT64 - Championship Edition: missing polygon #151
2016-09-28 23:24:17 +07:00
Sergey Lipskiy
25aa8889a8
Do not use 8bit CI frame buffer as texture for gSpBg commands.
...
Fixed Yoshi's Story black screen in some levels if frame buffer is enabled #1143
Problem:
The game draws background with BG command.
Background texture is 8bit CI.
For some reason the game set 8bit CI at the address of the
background texture, but renders nothing to it.
Plugin uses empty frame buffer texture instead of background texture.
Solution: Do not use 8bit CI frame buffer as BG textures.
Note: probably the game rendres something to the BG texture at some point
of the game. This can't be emulated in hardware anyway.
2016-09-28 22:29:45 +07:00
Sergey Lipskiy
2bdec6f412
Fixed triple play 2000 wrong gfx in menu regression #1139
2016-09-28 17:31:35 +07:00
Sergey Lipskiy
d5412d30e1
Add support for software depth render to OGLRender::drawDMATriangles
2016-09-27 21:51:12 +07:00
Sergey Lipskiy
39da91bb93
Move gDPFillRDRAM to FrameBufferList::fillRDRAM
...
Correct FrameBuffer::isValid()
Code cleanup.
Fixed Mickey Speedway USA is broken again. #1132
2016-09-27 21:43:28 +07:00
Sergey Lipskiy
f426d61881
Correct depth buffer attachment.
...
Fixed Link's portrait is missing in the pause screen #1134
2016-09-26 17:15:47 +07:00
Sergey Lipskiy
16406bb1b0
Fixed Majora's mask in-game pictures look incorrect with software depth buffer #1131
2016-09-23 12:05:48 +07:00
Sergey Lipskiy
8ea44cac8e
Code cleanup: remove unused data fields from OGLRender::triangles
2016-09-23 11:39:21 +07:00
Sergey Lipskiy
d6dbfad902
Correct fix for #977
2016-09-23 10:57:44 +07:00
Sergey Lipskiy
3567dc6bf0
Add hack for WinBack to remove gray rectangle in HLE mode.
...
The hack removes weird texrect, which appears only in HLE mode.
Fixed The famous winback square bug #63
Fixed operation winback: sky doesn't move (regression) #578
2016-09-22 22:11:01 +07:00
Sergey Lipskiy
38ff9e97d5
Reset texture mode to normal in gSPSetSpriteTile.
...
Fixed Nushi Zuri 64 incorrect gfx #977
2016-09-22 20:50:51 +07:00
Sergey Lipskiy
3db8c102fb
Move string arrays from convert.h to convert.cpp
...
Make UnswapCopyWrap and DWordInterleaveWrap not inline.
2016-09-22 16:17:37 +07:00
Sergey Lipskiy
aadd94ccc4
Implement thick line drawing.
...
OpenGL has limitation on line thickness. N64 can use really thick lines.
Fixed Flygin dragon: wrong gfx bands and then crash under mupenplus (but not emu related bug?) #171
2016-09-21 15:27:35 +07:00
Sergey Lipskiy
91f03c70bc
Use dmaVertices when draw with drawScreenSpaceTriangle.
2016-09-21 15:24:15 +07:00
Sergey Lipskiy
77d0c9aada
Code refactor: rename drawLLETriangle to drawScreenSpaceTriangle.
2016-09-20 16:21:54 +07:00
Sergey Lipskiy
6f3f21667e
Call texrect drawer before drawing a line.
...
Fixed flickering/misssing gfx in jeremy mcgrath 2000 with render texrec in native res #1114
2016-09-19 15:33:59 +07:00
Sergey Lipskiy
b5163ca048
Drop cfb flag when buffer changed.
2016-09-19 15:32:24 +07:00
Sergey Lipskiy
8dad84cc39
Fix set current depth buffer.
...
Fixed depth issues in Toy Story 2.
2016-09-19 11:50:05 +07:00
Sergey Lipskiy
e28bebd17e
Add validity check for background fb textures.
...
Fixed Nushi Zuri 64: fb background doesn't work anymore #1115
Problem: The game normally uses color and depth buffers.
When it needs to show rectangle with text, CPU copies current color buffer
by depth buffer address. This buffer rendered as background, text rendered over.
Plugin detects buffer usage and tries to use depth buffer as background texture.
That buffer in video memory has no color information, because data copied by CPU and contained in RDRAM.
Solution: check that found frame buffer is valid.
In this case validity check will fail because RDRAM content modified by CPU,
and background will be read from RDRAM.
2016-09-16 17:09:25 +07:00
orbea
f7576185cc
Fix Texture Cache slow down and crashes
2016-09-15 15:44:55 -07:00
gizmo98
04a1faa689
Remove old arm assembler.
...
GCC replaces (value << 8) | (value >> 8) with __builtin_bswap16 if -Os,
-O1 or higher is used. __builtin_bswap16 is as fast as the assembler
declaration.
2016-09-13 09:34:01 +07:00
Logan McNaughton
6c3b3feb58
Fix Image Textures on OpenGL < 4.3
2016-09-12 09:32:26 -06:00
Sergey Lipskiy
175ab35971
VI_UpdateSize() : correct width/height calculation in interlaced mode.
...
Still hackish.
Fixed Star Wars Episode One Racer Flicker and Black Screen with Frame Buffer Emulation #1119
Fixed Top Gear Overdrive black screen #1122
2016-09-12 21:27:38 +07:00
Sergey Lipskiy
5a296525ea
FrameBufferList::renderBuffer : correct condition for Xoffset.
2016-09-12 21:26:37 +07:00
Sergey Lipskiy
9d2d8f481e
Code cleanup
2016-09-11 18:08:09 +07:00
Sergey Lipskiy
32172d30af
Fix depth buffer clear for aux buffers.
2016-09-11 18:08:03 +07:00
Sergey Lipskiy
21ef068f2a
Fix typo in FrameBuffer::getTexture
2016-09-11 15:27:59 +07:00
Sergey Lipskiy
49dd8ff796
Correct render to depth buffer when N64 depth compare enabled.
2016-09-09 21:49:52 +07:00
Sergey Lipskiy
b033cb2ecf
Fix depth buffer render when fb emulation disabled.
2016-09-09 12:39:41 +07:00
Sergey Lipskiy
06188bddd4
Force disable fragment depth write option for GLES2.
2016-09-09 10:26:20 +07:00
Logan McNaughton
926e6c9225
Changes to support mingw
2016-09-09 10:07:47 +07:00
Sergey Lipskiy
9faeb2bfb9
Force clear depth buffer for aux buffers.
...
Fixed uncleaned depth buffer problem when depth buffer cleared partially via fillrect.
2016-09-08 22:29:12 +07:00
gizmo98
a471b130e7
CRC.cpp: add ARMv8 crc intrinsics
...
Speedup:
CRC_Calculate() up to 11x
CRC_CalculatePalette() up to 4x
Will be only used if the right compiler flags are set.
rpi3: -march=armv8-a+crc -mtune=cortex-a53
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0801f/pge
1427897662265.html
If CRC32 can be replaced with CRC32C SSE4.2 CRC32C intrinsics could be
added as well.
https://github.com/gonetz/GLideN64/pull/1056#issuecomment-244530166
2016-09-07 21:34:19 +07:00
Sergey Lipskiy
4049bfc53b
Do not add blending mux variables to shader when legacy blending enabled.
2016-09-07 21:13:00 +07:00
Sergey Lipskiy
d289d4c65a
Correct conditions when render to depth buffer can be enabled.
2016-09-07 21:11:31 +07:00
Sergey Lipskiy
7dca7f8f4d
Implement depth buffer copy for Mario Golf.
...
Fix Mario Golf: Animated effects render in front of course #312
2016-09-06 19:37:11 +07:00
Sergey Lipskiy
bbcd0be949
Remove unused code.
2016-09-05 16:21:29 +07:00
Sergey Lipskiy
27cdae1e33
Correct condition for depth buffer clear again.
...
Fixed Body Harvest graphics missing (Regression) #1107
2016-09-05 12:14:51 +07:00
Sergey Lipskiy
669337f5ab
Correct condition for depth buffer rendering:
...
games may draw in depth buffer in fill mode too.
Correct condition for depth buffer clear.
Fixed Mario Tennis 64's Versus Screen Issue #771
2016-09-04 20:26:41 +07:00
Sergey Lipskiy
3794a2bf66
Fix native res texrects when uniform set is used.
...
Fixed Everything looks yellow with Native Res Texrects #1102
2016-09-04 20:21:22 +07:00
Sergey Lipskiy
50720e1dfc
Correct msvc project files.
2016-09-04 19:51:10 +07:00
Sergey Lipskiy
1a5e971eea
Minor code cleanup in gSPModifyVertex.
2016-09-02 11:05:38 +07:00