222 Commits

Author SHA1 Message Date
Jean-Philip Desjardins
c8fe28d310 Cleanup. 2016-04-22 00:50:08 -04:00
Jean-Philip Desjardins
6632ad419c Use glBufferData instead of glBufferSubData to update constant buffers.
Fixes performance issues with OpenGL driver on iOS.
2016-04-19 00:19:03 -04:00
Jean-Philip Desjardins
042e31df9b Remove CopyToFb framebuffer. 2016-04-16 23:37:55 -04:00
Jean-Philip Desjardins
81856190cc Forgot to scale destination rectangle when copying to FB. 2016-04-16 23:37:54 -04:00
Jean-Philip Desjardins
3673dbb6fc Activate CopyToFb. 2016-04-16 23:37:54 -04:00
Jean-Philip Desjardins
80cec99704 Added toggle to enable/disable "accurate alpha test". 2016-04-16 23:37:54 -04:00
Jean-Philip Desjardins
6c5cac8bfe Flush vertex buffer for every primitive if two-pass alpha testing is required.
Gives bad result if there's overlapping triangles within a batch.
2016-04-16 23:37:53 -04:00
Jean-Philip Desjardins
39f145921d Changed strategy for handling two pass alpha testing.
Previous strategy didn't work properly in cases where depth testing was enabled.
2016-04-16 23:37:53 -04:00
Jean-Philip Desjardins
32344b0c9a Added const qualifiers. 2016-04-16 23:37:52 -04:00
Jean-Philip Desjardins
e1274d63ce Added basic support for alpha testing on depth writes. 2016-04-16 23:37:52 -04:00
Jean-Philip Desjardins
25f81c815b Store depth mask in render state. 2016-04-16 23:37:51 -04:00
Jean-Philip Desjardins
cec26fb940 Fixed wrong invalidation. 2016-04-16 23:37:51 -04:00
Jean-Philip Desjardins
f065965d4f Added CopyToFb function.
Replaces glBlitFramebuffer for multisampled framebuffers.
2016-04-16 23:37:50 -04:00
Jean-Philip Desjardins
bb2dcf45c0 Store viewport params in render state. 2016-04-16 23:37:50 -04:00
Jean-Philip Desjardins
02be94723b Added basic MSAA support. 2016-04-16 23:37:49 -04:00
Jean-Philip Desjardins
c5437c1365 Invalidate texture state when enabling copy to framebuffer. 2016-04-16 23:37:49 -04:00
Jean-Philip Desjardins
6ce328bba0 Store framebuffer info in render state. 2016-04-16 23:37:48 -04:00
Jean-Philip Desjardins
380039b671 Store texture info in render state. 2016-04-16 23:37:48 -04:00
Jean-Philip Desjardins
e720fa6f37 Store color mask info in render state. 2016-04-16 23:37:47 -04:00
Jean-Philip Desjardins
8b988b4864 Invalid all states when flipping. 2016-04-16 23:37:47 -04:00
Jean-Philip Desjardins
6aa2ca5aef Delay setting of scissor and blending states. 2016-04-16 23:37:46 -04:00
Jean-Philip Desjardins
0a3a84cc90 Make sure valid GL state bits are cleared. 2016-04-16 23:37:46 -04:00
Jean-Philip Desjardins
d7c81c0c7c Removed SHADERINFO structure and added flags to track GL state. 2016-04-16 23:37:45 -04:00
Jean-Philip Desjardins
900baf044b Removed need to pass SHADERINFO structure to set uniform state. 2016-04-16 23:37:45 -04:00
Jean-Philip Desjardins
214ce5fc9c Use uniform blocks to store shader parameters. 2016-04-16 23:37:45 -04:00
Jean-Philip Desjardins
0bc706a56c Update SIGLBLID when writing to SIGNAL register. 2016-02-20 15:50:21 -05:00
Jean-Philip Desjardins
0d162e76df Update SIGLBLID when writing to LABEL register. 2016-02-20 15:50:21 -05:00
Jean-Philip Desjardins
6e46c1ba06 Added structure for LABEL register. 2016-02-20 15:50:20 -05:00
Jean-Philip Desjardins
f09f495f64 Fixed register name. 2016-02-20 15:50:20 -05:00
Jean-Philip Desjardins
5f9511573d Added structure for SIGNAL register. 2016-02-20 15:50:20 -05:00
Jean-Philip Desjardins
9ab07c5501 Added SIGLBLID register. 2016-02-20 15:50:19 -05:00
Jean-Philip Desjardins
f4ce236460 Cleanup. 2016-02-12 10:17:20 -05:00
Jean-Philip Desjardins
5d2c63eadb Generalized the way preferences are reloaded. 2016-01-25 22:59:44 -05:00
Jean-Philip Desjardins
215b4a0c10 Disable scissor test when commiting dirty framebuffer pages. 2016-01-25 22:59:43 -05:00
Jean-Philip Desjardins
1b44159d46 Fix FRAME structure layout. 2016-01-25 22:59:43 -05:00
Jean-Philip Desjardins
f10b2da704 Added high resolution mode setting toggle on Win32. 2016-01-25 22:59:40 -05:00
Jean-Philip Desjardins
44178a0128 Made high resolution mode configurable. 2016-01-25 22:59:39 -05:00
Jean-Philip Desjardins
5c38e314a8 Replaced FBSCALE define by variable. 2016-01-25 22:59:37 -05:00
Jean-Philip Desjardins
0628d01b66 PopulateFramebuffer and CommitFramebufferDirtyPages now work in HIGHRES mode. 2016-01-25 22:59:37 -05:00
Jean-Philip Desjardins
0758a6485d Local to local transfers has to take FBSCALE in consideration. 2016-01-25 22:59:36 -05:00
Jean-Philip Desjardins
ed057fd5ce Remove wireframe mode because it doesn't work anymore. 2016-01-25 22:59:35 -05:00
Jean-Philip Desjardins
dfca661b85 Reload video preferences when GS handler is reset. 2016-01-19 23:30:35 -05:00
Jean-Philip Desjardins
fe64556c77 Renamed LoadSettings to LoadPreferences for consistency. 2016-01-19 22:37:23 -05:00
Jean-Philip Desjardins
d39575eacf Added static RegisterPreferences function. 2016-01-19 22:37:23 -05:00
Jean-Philip Desjardins
71552e1a47 Made forced bilinear filtering mode work with paletted textures. 2016-01-19 22:37:20 -05:00
Jean-Philip Desjardins
a8b125fe4d Removed "fix small Z values" setting.
Not a proper fix for the issues some games have.
2016-01-19 22:37:19 -05:00
Jean-Philip Desjardins
efb08e9f5c Removed unused code. 2016-01-19 22:37:18 -05:00
Jean-Philip Desjardins
eef03fe37f Cleanup. 2016-01-19 22:37:18 -05:00
Jean-Philip Desjardins
aff6942115 Removed "render lines as quads" setting since it was not used anymore. 2016-01-19 22:37:17 -05:00
Jean-Philip Desjardins
e9bbc49df4 Equal addresses doesn't mean areas overlap. 2016-01-03 21:35:17 -05:00