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

266 Commits

Author SHA1 Message Date
Sergey Lipskiy
9705f5d520 Implement FXAA 2018-09-09 16:36:09 +07:00
Sergey Lipskiy
15188dad16 Fix destX calculation in FrameBufferList::renderBuffer()
Fixed black boarders size in Banjo-Kazooie.
2018-09-08 00:13:43 +07:00
Sergey Lipskiy
be49e9e2e9 Correct check for side-by-side buffers in FrameBufferList::renderBuffer()
Fixed Kirby 64 - screen jumps in full screen. #1750
2018-09-07 23:00:45 +07:00
Sergey Lipskiy
b3068d9536 Fix OverscanBuffer::getScaleX() 2018-08-28 20:57:50 +07:00
Sergey Lipskiy
2a677a23a8 Implement left offset for source image when VI_ORIGIN address points on non-zero position in scan-line.
Fixed PAL version of International Superstar Soccer 98, #1845
2018-06-23 21:56:10 +07:00
Sergey Lipskiy
2322f5f53f Implement Overscan feature.
Remove Crop feature.
Change settings save-load when "per game settings" enabled:
    * When config dialog opens, show custom settings for the running game. If no game run yet, show main settings.
    * When user press OK button, save settings to the custom ini file and to the main ini file.
2018-06-17 20:04:45 +07:00
Logan McNaughton
e80577e105 Allow non-0 default framebuffer 2018-05-22 08:25:24 -06:00
Sergey Lipskiy
6725ad474a Fix warnings of 64bit compiler. 2018-05-06 15:54:12 +07:00
Sergey Lipskiy
2e7c0ecee2 Add forceDepthBufferClear config option.
Enable it for Eikou no Saint Andrews (J) in custom settings.

Fixed Eiko St Andrews: wrong 3d #161
2018-05-01 19:21:30 +07:00
Logan McNaughton
9bda0568a8 Copy FBO texture if glTextureBarrier is unsupported 2018-04-20 22:56:17 +07:00
Logan McNaughton
7bad64ce70 Only call texture barrier if we are sampling from current FB 2018-04-16 11:35:15 +07:00
Logan McNaughton
c9cf91e8da Add support for ext_shader_framebuffer_fetch 2018-04-16 11:32:35 +07:00
Logan McNaughton
c01c0d5166 use gl_LastFragDepthARM and glTextureBarrier 2018-04-13 21:24:56 +07:00
Logan McNaughton
18e9a73eba Cache SpecialFeatures check 2018-04-07 11:30:33 +07:00
Logan McNaughton
9c73fb27b1 Remove Image Texture requirement for some shaders 2018-04-07 11:30:33 +07:00
Sergey Lipskiy
ed21ec774b Fix TexrectDrawer when frame buffer emulation disabled. 2018-03-21 21:20:57 +07:00
Logan McNaughton
cb90bb95ed Cleanup FB Texture caching code 2018-02-26 21:15:51 +07:00
Sergey Lipskiy
b18ae00bfd Correct next buffer detection in FrameBufferList::renderBuffer().
Fixed flickering in WDC.
2018-02-18 15:33:21 +07:00
Sergey Lipskiy
9b2f50ca67 Fix rendering in widescreen resolutions when fb emulation disabled, #1700 2018-01-05 15:27:19 +07:00
Sergey Lipskiy
fbd4a9a016 Unbind FBO before clearing frame buffers list.
Fixed memory leak on graphics context destroy.
2017-11-19 19:55:13 +07:00
Sergey Lipskiy
26623cec1f Code cleanup: fix issues in GLideN64 found by static code analyser. 2017-11-18 22:07:27 +07:00
Sergey Lipskiy
5a037474a2 Code cleanup: fix compilation warnings. 2017-11-15 15:07:52 +07:00
Sergey Lipskiy
bc1f2d37d4 Code cleanup: remove commented code for blur post filter.
It will not be refactored.
2017-10-24 20:36:08 +07:00
Sergey Lipskiy
70c540b073 Rewrite fix for #1539 : keep in tile descriptor start address of frame buffer, not pointer on it.
Should be more safe.
2017-09-29 22:25:56 +07:00
Sergey Lipskiy
203c53307d Reset gDPTile::frameBuffer if it points to removed buffer.
Fixed Paper Mario: Red Station Crashing #1539
2017-09-29 17:20:07 +07:00
Sergey Lipskiy
57da925a14 Check for overlapping frame buffers in FrameBufferList::removeIntersections()
Fixed Mario Tennis - missing bottom half of scoreboard #1564

Problem:
Top Gear Hyper Bike has overlapping frame buffers.
That is start address of a buffer points on last line in previous buffer.
When new buffer intersects with prevois one, plugin removes old buffer.
That causes black screen in case of Top Gear Hyper Bike.

FrameBuffer::updateEndAddress() was modified in commit 17eb8696ea to fix it.
It sets buffer end address using buffer height - 1.
This fix causes issue with Mario Tennis scoreboard #1564
HW buffer is not detected because end address is wrong.

Solution:
Add another test for intersecting buffers.
It checks that the buffers are not just arbitrary intersected ones,
but it is sequence of two slighly overlapping buffers.
In that case buffer is not removed, but its end address is corrected,
because buffers address space must not intersect.
2017-09-26 16:31:24 +07:00
Sergey Lipskiy
032da85357 Reset m_cleared and m_RdramCopy for depth buffer after software render.
Fixed #1594 Mario Tennis VS screen: line flickers
2017-09-26 15:23:07 +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
c907c3013a Implement Debugger. 2017-06-25 15:35:48 +07:00
Sergey Lipskiy
ee60040a78 Rewrite debug logging 2017-06-25 15:02:36 +07:00
Sergey Lipskiy
e9436b7136 FrameBufferList::renderBuffer() : correct Y offset in source buffer.
Fixed screen shake in Lode Runner 3D #301

The game uses weird way to work in interlaced mode.
2017-04-12 15:32:01 +07:00
Sergey Lipskiy
175c733d56 Code cleanup: remove unused variables. 2017-04-12 15:27:24 +07:00
Sergey Lipskiy
5e51b386f1 Make Resident Evil 2 playable. 2017-04-02 12:02:38 +07:00
Sergey Lipskiy
4f5759ef46 Fix validity check for depth buffer.
Fixed Pokemon Stadium Menu Items Missing (Regression) #1446
2017-03-29 17:01:59 +07:00
Sergey Lipskiy
8a1f7f1067 Revert commit 210c9ea.
Fixed Majora's Mask Flickering #1434
2017-03-28 15:16:42 +07:00
Sergey Lipskiy
bce9698958 Correct FrameBuffer::init 2017-03-18 20:09:10 +07:00
Sergey Lipskiy
21d64691cf Correct chained buffers detection in FrameBufferList::renderBuffer() 2017-03-16 18:50:15 +07:00
Sergey Lipskiy
cb1f6e78e3 FrameBufferList::saveBuffer do not create frame buffer if buffer width is too large. 2017-03-16 18:50:15 +07:00
Sergey Lipskiy
c53bca1e2e Correct vOffset in FrameBufferList::renderBuffer(). 2017-03-16 18:50:15 +07:00
Sergey Lipskiy
7b3e700eed Fix FrameBufferList::renderBuffer() when MSAA enabled. 2017-03-16 18:50:15 +07:00
Sergey Lipskiy
0775d28065 Remove FrameBuffer::m_scaleY 2017-03-16 18:50:15 +07:00
Sergey Lipskiy
b00a593da0 Correct GraphicsDrawer::copyTexturedRect.
Fixed slide effect in BAR
2017-03-16 18:50:15 +07:00
Sergey Lipskiy
9acffe1adc Correct FrameBufferList::renderBuffer()
Fixed screen shrink effect in Mia Hamm Soccer
2017-03-16 18:50:15 +07:00
Sergey Lipskiy
456459be68 Add FrameBuffer::m_isMainBuffer flag. 2017-03-16 18:50:14 +07:00
Sergey Lipskiy
a28ca93ada Rewrite FrameBufferList::_findBuffer 2017-03-16 18:50:14 +07:00
Sergey Lipskiy
811dea1d77 Rewrite viewport for polygons with screen coords. 2017-03-16 18:50:14 +07:00
Sergey Lipskiy
5f4d03fe21 Rewrite FrameBufferList::renderBuffer() 2017-03-16 18:50:14 +07:00
Sergey Lipskiy
17eb8696ea Correct FrameBuffer::updateEndAddress()
Solved problem with Top Gear Hyper Bike
2017-03-16 18:50:14 +07:00
Sergey Lipskiy
dd11326115 Rewrite buffer height calculation. 2017-03-16 18:50:14 +07:00
Sergey Lipskiy
e6811b4d4f Move gDP.colorImage.height update to FrameBufferList::setBufferChanged. 2017-03-16 18:50:14 +07:00