Commit Graph

183 Commits

Author SHA1 Message Date
Jean-Philip Desjardins
11fe116f90 Print COLCLAMP's contents. 2017-09-04 18:39:39 -04:00
Jean-Philip Desjardins
385e7c3d12 Print HWREG's contents. 2017-09-04 18:39:39 -04:00
Jean-Philip Desjardins
049e6ec825 Cleanup. 2017-08-09 23:05:15 -04:00
Jean-Philip Desjardins
0c5d9eac8a Use glBlendEquationSeparate instead of glBlendEquation.
Alpha must not be affected by blending equation.
2017-08-09 23:05:15 -04:00
Mahmood(Thunder07)
97c229ec98 Cleanup
Silence:"warning: '0' flag ignored with precision and ‘%X’ gnu_printf format"
2017-05-29 06:01:32 +01:00
Jean-Philip Desjardins
0712acdb3d Fix size of U and V fields. 2017-05-22 00:17:15 -04:00
Jean-Philip Desjardins
203dea5a33 Use proper color in flat mode triangle rendering. 2017-05-07 22:02:33 -04:00
Jean-Philip Desjardins
f4a3ce7924 Fix indentation. 2017-05-07 22:02:33 -04:00
Jean-Philip Desjardins
786bf0e98d Use MakeLinearCLUT in OpenGL. 2017-05-07 22:02:33 -04:00
Jean-Philip Desjardins
3d9add3caf Handle missing cases in MakeLinearClut. 2017-05-07 22:02:33 -04:00
Jean-Philip Desjardins
8f23774261 Cleanup. 2017-05-07 22:02:33 -04:00
Jean-Philip Desjardins
2fa4cd87df Remove redundant std::move. 2017-05-07 22:02:33 -04:00
Mahmood(Thunder07)
cee812eb02 Add screencapture method for OpenGL 2017-04-04 21:42:28 +01:00
Jean-Philip Desjardins
e1ae6d4843 Made few improvements to CMailBox to prevent copies. 2017-03-26 18:35:50 -04:00
Jean-Philip Desjardins
74c2342454 Limit the amount of trashed state when texture is uploaded. 2017-03-26 18:35:50 -04:00
Jean-Philip Desjardins
9682c86083 Update fog color state regardless of fog enabled state.
Would yield to incorrect results otherwise (ie.: state synced when fog is off, then fog is turned on without changing the color).
2017-03-26 18:35:50 -04:00
Jean-Philip Desjardins
47b27d51e3 Cleanup. 2017-03-26 18:35:50 -04:00
Jean-Philip Desjardins
f9ff7bbf37 Prevent binding same framebuffer twice. 2017-03-26 18:35:50 -04:00
Jean-Philip Desjardins
c038207532 Use preprocessor constant to define framebuffer height. 2017-03-26 18:35:49 -04:00
Jean-Philip Desjardins
c631b946fa Initialize variable on reset. 2017-02-24 00:39:01 -05:00
Jean-Philip Desjardins
cb7b65d338 Use move semantics to remove copy when sending GS packet. 2017-02-24 00:38:42 -05:00
Mahmood(Thunder07)
75f7d0792b Cleanup
Replace WIN32 preprocessor with _WIN32
2017-02-21 15:47:18 +00:00
Jean-Philip Desjardins
43eb9ec6fd Clear dirty pages when texture is reset. 2017-01-29 21:12:56 -05:00
Jean-Philip Desjardins
ae30df7683 Use GsTextureCache in OpenGL GS handler. 2017-01-29 21:12:56 -05:00
Jean-Philip Desjardins
c9df382661 Changed GsTextureCache interface to allow to work with uniquely owned objects. 2017-01-29 21:12:56 -05:00
Jean-Philip Desjardins
76b9142e9a Got rid of texture uploaders. 2017-01-29 21:12:56 -05:00
Jean-Philip Desjardins
db34f8193c Use dirty rects to update textures more efficiently. 2017-01-29 21:12:56 -05:00
Jean-Philip Desjardins
02455d8214 Add tests for dirty rect stuff. 2017-01-29 21:12:55 -05:00
Jean-Philip Desjardins
4d7166d69e Add way to obtain a dirty rect in cached area and to clear it. 2017-01-29 21:12:55 -05:00
Jean-Philip Desjardins
82db3f5906 Make sure Invalidate doesn't mark pages outside of area. 2017-01-29 21:12:55 -05:00
Jean-Philip Desjardins
b150e8431b Clarify page rect business. 2017-01-29 21:12:55 -05:00
Jean-Philip Desjardins
46aa19421c Disable depth writes when copying to FB. 2017-01-29 21:12:55 -05:00
Jean-Philip Desjardins
91831baf91 Make sure depth test state isn't clobbered. 2017-01-29 21:12:55 -05:00
Jean-Philip Desjardins
4fcaed8b1e Cleanup. 2017-01-29 21:12:55 -05:00
Jean-Philip Desjardins
5daf12d81a Mask CSA value to prevent out of bounds access.
Was occuring in Kingdom Hearts.
2017-01-06 19:18:28 -05:00
Jean-Philip Desjardins
83c5381854 Add support for PSMCT16S CLUTs. 2016-11-26 20:29:51 -05:00
Jean-Philip Desjardins
c480e72ed4 Add CLUT indexed texture view. 2016-11-19 21:29:15 -05:00
Jean-Philip Desjardins
41dc6b1a70 Remove commented code. 2016-11-19 21:29:15 -05:00
Jean-Philip Desjardins
81ce19647a Allocate some more memory to prevent transfer handler from crashing. 2016-10-21 23:09:48 -04:00
Jean-Philip Desjardins
ef0b997e24 Add check to catch cases where SIGNAL would be set twice. 2016-10-11 23:12:48 -04:00
Jean-Philip Desjardins
138a8b8a8f Add PSMZ16S in switch. 2016-10-11 23:12:48 -04:00
Jean-Philip Desjardins
ed45dffd2a Add support for missing blending mode. 2016-10-11 23:12:24 -04:00
Jean-Philip Desjardins
edba00c8de Prevent heap corruption when CSA is bigger than what we expect. 2016-09-24 16:22:53 -04:00
Jean-Philip Desjardins
b13a7b66af Add PSMZ24 in switch. 2016-09-24 16:22:53 -04:00
Jean-Philip Desjardins
8415b1fb10 Fix build on clang. 2016-09-18 16:57:08 -04:00
Jean-Philip Desjardins
43581b5352 Add basic support for reading CLUT in shader. 2016-09-17 23:29:00 -04:00
Jean-Philip Desjardins
e8e06d74b4 Move texture caching stuff in a separate class. 2016-09-17 23:29:00 -04:00
Jean-Philip Desjardins
54ffc643f4 Disassemble FOG register. 2016-09-06 18:12:40 -04:00
Jean-Philip Desjardins
91ac054ed0 Fix K value representation in TEX1. 2016-08-26 12:33:11 +09:00
Jean-Philip Desjardins
866ca9dd42 Fix pointer computation in MIPTBP. 2016-08-26 12:31:22 +09:00