Commit Graph

181 Commits

Author SHA1 Message Date
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
Jean-Philip Desjardins
77d1385533 Reverted changes that were made to fix DQ8's display.
FindCompatibleFramebuffer was wrong and it was also wrong
to change the width of a framebuffer without invalidating its contents.
2016-01-03 21:35:16 -05:00
Jean-Philip Desjardins
578904c146 Added restriction on case where framebuffer can be used as texture with an offset. 2016-01-03 21:35:16 -05:00
Jean-Philip Desjardins
fc23b5aa9a Moved all interlaced display handling code to present phase. 2016-01-03 21:35:15 -05:00
Jean-Philip Desjardins
b6c53e69b3 Restored (Cd - 0) * As + 0 formulae. 2015-12-29 17:44:31 -05:00
Jean-Philip Desjardins
bb36b3406b Minor cleanup. 2015-12-29 17:44:31 -05:00
Jean-Philip Desjardins
30795df98b Added very basic writeback of framebuffer to GS RAM.
Only works with specific parameters to allow automatic testing.
2015-12-29 17:44:30 -05:00
Jean-Philip Desjardins
be10703e8d Simplified some alpha blending formulaes. 2015-12-29 17:44:30 -05:00
Jean-Philip Desjardins
691154cc12 Changed transfer handling functions.
Renamed ProcessImageTransfer to ProcessHostToLocalTransfer.
Added ProcessLocalToHostTransfer function.
2015-12-29 17:44:29 -05:00
Jean-Philip Desjardins
c6c10447d7 Use highp on texCoord variable to prevent precision issues. 2015-12-20 17:42:18 -05:00
Jean-Philip Desjardins
3cedec1627 Cleanup. 2015-12-20 17:42:17 -05:00
Jean-Philip Desjardins
491a723c48 Properly scale Z values for points and lines. 2015-12-20 17:42:16 -05:00
Jean-Philip Desjardins
2390f47963 Restored ReadFramebuffer's code.
Only used for movie recording on Win32 at the moment, will revisit later.
2015-12-20 17:42:15 -05:00
Jean-Philip Desjardins
783918dec8 Fixed offsetX's position in texture matrix. 2015-12-20 17:42:15 -05:00
Jean-Philip Desjardins
2e3922ccb2 Reenabled point primitive support. 2015-12-20 17:42:14 -05:00
Jean-Philip Desjardins
8bc3a76524 Use specific versions of GLSL whether we're on mobile or desktop OpenGL. 2015-12-20 17:42:14 -05:00
Jean-Philip Desjardins
cbae904b87 Pushed input color manipulation operations to shaders.
Also removed MulBy2Clamp since it's not needed anymore.
2015-12-20 17:42:13 -05:00
Jean-Philip Desjardins
2e79950800 Added piece of code that was left out in previous commit. 2015-12-20 17:42:12 -05:00
Jean-Philip Desjardins
54ef78db8c Removed code that is not compatible with GLES. 2015-12-20 17:42:12 -05:00
Jean-Philip Desjardins
2585c17463 Added support for texture clamping modes in GLES compatibility mode. 2015-12-20 17:42:12 -05:00
Jean-Philip Desjardins
abf434ad45 Added page size info for PSMZ16 texture format. 2015-12-05 19:24:46 -05:00
Jean-Philip Desjardins
260a622a18 Added missing GS image transfer handler for PSMCT16S. 2015-12-05 19:24:44 -05:00
Jean-Philip Desjardins
c0124f7a14 Removed extension query functions. 2015-11-17 22:12:53 -05:00
Jean-Philip Desjardins
bb6840c6a8 Added basic support for transfers from GS to EE memory. 2015-11-17 22:09:46 -05:00
Jean-Philip Desjardins
5f7cf8f9bd Moved GS framebuffer selection code at beginning of FlipImpl function.
GL render state is changed by CFramebuffer constructor and would potentially
cause issues if framebuffer id for frame isn't 0.
2015-11-12 23:53:35 -05:00
Jean-Philip Desjardins
5146c5d011 Merge branch 'master' into build_unix 2015-10-24 22:58:24 -04:00
Jean-Philip Desjardins
e6b5d00b2b Moved GS signaling command handling to main thread. 2015-10-04 18:38:08 -04:00
Jean-Philip Desjardins
ef0e1f886e Make sure image transfer size is a multiple of 16 bytes. 2015-10-03 22:37:58 -04:00
Jean-Philip Desjardins
89a1ed69be Merge branch 'gta' 2015-09-19 19:03:51 -04:00
Jean-Philip Desjardins
318db00257 Relaxed PSM requirement when looking for a framebuffer to display on screen. 2015-09-19 19:03:24 -04:00
Jean-Philip Desjardins
52c04ce710 Added fog support in GlEs compatibility mode. 2015-09-02 23:18:24 +01:00
Jean-Philip Desjardins
1e7d703b07 Removed some hardcoded offsets. 2015-09-01 01:07:07 +01:00
Jean-Philip Desjardins
3131b56e39 Check framebuffer format before using it. 2015-08-27 23:02:27 -04:00
Kyle McLamb
bff2643b84 Port libPlay to linux 2015-08-24 20:10:16 -04:00
Jean-Philip Desjardins
fb141c7114 Changed the way GS output is presented on GLES.
Fixes issues with some bad GLES drivers.
2015-08-23 20:29:42 -04:00
Jean-Philip Desjardins
08ceb128ba GLES: Use highp for texture coordinates.
Prevents visual issues appearing on some GPUs.
2015-08-15 02:50:02 -04:00
Jean-Philip Desjardins
89e1dfbf67 Added some missing new lines. 2015-08-08 22:16:13 -04:00
Jean-Philip Desjardins
9306483687 Merge branch 'alpha_test' 2015-08-02 01:41:35 -04:00
Jean-Philip Desjardins
038a73eef3 Use the more compatible GL_UNSIGNED_SHORT_5_5_5_1 pixel format for 16-bit textures. 2015-07-29 22:35:02 -04:00
Jean-Philip Desjardins
ed38164136 Added some more GL error checks. 2015-07-29 22:31:09 -04:00
Jean-Philip Desjardins
139efaafc5 Added some GL error checks. 2015-07-29 00:44:10 -04:00
Jean-Philip Desjardins
50d5326adc Moved alpha testing stuff to shaders so it can be used on GLES. 2015-07-28 22:25:53 -04:00
Jean-Philip Desjardins
9b06736bd8 Added missing blending mode. 2015-07-28 03:14:33 -04:00
Jean-Philip Desjardins
07ae451795 Implemented missing blending mode (inaccurate). 2015-07-27 23:23:28 -04:00
Jean-Philip Desjardins
a8d2cc564b Fixed paletted texture rendering on GLES. 2015-07-20 01:24:03 -04:00
Jean-Philip Desjardins
c7230dc067 Added missing blending functions. 2015-07-18 20:49:28 -04:00
Jean-Philip Desjardins
c6a787caac Added enum for blending function coefficients. 2015-07-18 20:48:09 -04:00
Jean-Philip Desjardins
39484117f6 Make sure blending function is not totally random when function is not recognized. 2015-07-18 20:47:49 -04:00
Jean-Philip Desjardins
47d45d8e86 Check GL errors for every state group that we change. 2015-06-30 01:03:59 -04:00
Jean-Philip Desjardins
60a0914529 Initialize filtering modes to avoid errors. 2015-06-29 23:26:05 -04:00
Jean-Philip Desjardins
a4f42a5e9c Added ability to override "display" frame buffer in OpenGL GS handler. 2015-06-26 03:37:30 -04:00
Jean-Philip Desjardins
bd245e0c5f Fixed iOS build issue. 2015-06-25 19:11:29 -04:00
Jean-Philip Desjardins
c06650b0ec Cleanup. 2015-06-14 02:07:13 -04:00
Jean-Philip Desjardins
0c526ce5c0 Added support for PSMCT24 palettes. 2015-06-13 00:40:59 -04:00
Jean-Philip Desjardins
97b57065ae Cleanup. 2015-06-08 02:05:55 -04:00
Jean-Philip Desjardins
ebd4394624 Fixed some shader compilation issues. 2015-06-06 02:38:38 -04:00
Jean-Philip Desjardins
0028f6e225 Enabled bilinear filtering support in GLES compatibility mode and fixed alpha handling. 2015-06-06 01:08:16 -04:00
Jean-Philip Desjardins
9d47cb7f80 Added support for other texture functions in GLES compatibility mode. 2015-06-05 00:37:40 -04:00
Jean-Philip Desjardins
649cbf5eb5 Fixed some paletted textures not showing up in GLES compatibility mode. 2015-06-04 03:20:24 -04:00
Jean-Philip Desjardins
93b1cfdc5b Fixed paletted textures looking crappy on Tegra. 2015-06-02 03:09:10 -04:00
Jean-Philip Desjardins
94b2d0e641 iOS build fixes. 2015-05-31 22:57:40 -04:00
Jean-Philip Desjardins
b65383a71b Removed high res mode on GLES compatibility mode for now (doesn't work on all devices). 2015-05-31 04:17:14 -04:00
Jean-Philip Desjardins
d4b5ab00bb Changed way high res mode is enabled on GLES compatibility mode. 2015-05-31 02:41:31 -04:00
Jean-Philip Desjardins
02d7fe8d05 Default to high res mode when GLES compatibility is activated. 2015-05-30 20:08:08 -04:00
Jean-Philip Desjardins
3caa537f31 Added basic draw call batching in GLES compatibility mode. 2015-05-30 20:01:20 -04:00
Jean-Philip Desjardins
528dd125f7 Fixed "half-screen" issue in GLES GS handler. 2015-05-26 23:55:12 -04:00
Jean-Philip Desjardins
c58630b16c Added some missing overrides. 2015-05-26 23:32:42 -04:00
Jean-Philip Desjardins
d2ec7d1d9b Merge branch 'master' of https://github.com/jpd002/Play- 2015-05-12 00:11:25 -04:00
Jean-Philip Desjardins
e8c63fceaf Added some missing resets in GSH_OpenGL. 2015-05-12 00:10:55 -04:00
Jean-Philip Desjardins
5801895b1d Fixed shader compilation. 2015-05-10 22:05:57 -04:00
Jean-Philip Desjardins
b712766a86 Added basic indexed texture support to GLES renderer. 2015-05-10 18:15:31 -04:00
Jean-Philip Desjardins
2a0a9a25fa Made requirements to use a framebuffer for rendering a bit less strict and allowed buffer size to change. Makes DQ8 show something, but makes UT blinky. 2015-05-09 22:53:00 -04:00
Jean-Philip Desjardins
fcf1b11f1b Moved EE and GS specific files in a separate folder. 2015-05-06 00:54:15 -04:00