Commit Graph

204 Commits

Author SHA1 Message Date
Jean-Philip Desjardins
5b9b9ed5e8 Fix IMR reset value. 2018-10-29 13:16:10 -04:00
Jean-Philip Desjardins
15d7909c9c Code style fix. 2018-09-28 17:22:08 -04:00
Jean-Philip Desjardins
4659aff384 Restrict/clarify when framebuffer's alpha can be used as indexed texture. 2018-09-28 17:17:09 -04:00
Jean-Philip Desjardins
61f4ca3d73 Allow reading from alpha as indexed texture. 2018-09-28 17:17:09 -04:00
Jean-Philip Desjardins
645c9d982e Add support for CSM2 in 8-bit CLUT. 2018-09-02 13:08:29 -04:00
Jean-Philip Desjardins
42e053c2ef No need to notify INTC if it's not bound. 2018-08-30 07:45:31 -04:00
Jean-Philip Desjardins
e08e4c8f6d Fix framebuffer smearing occuring in some games.
(ie.: Dragon Ball Z: Infinite World)
2018-08-27 12:32:43 -04:00
Jean-Philip Desjardins
7a3a52b83b Change the way GS interrupts are handled.
GS will now notify the INTC there's an interrupt when some event occurs instead of having the INTC poll the GS.
2018-08-08 12:28:06 -04:00
Jean-Philip Desjardins
a1fbc9222e Send a call when we're ready to teardown GS handler.
Instead of polling for the threadDone variable.
2018-06-06 19:00:56 -04:00
Jean-Philip Desjardins
e1c4026cdc Handle TEX0.CLD == 3 case. 2018-05-31 12:41:10 -04:00
Jean-Philip Desjardins
0f2fcc31bb Use Warn function. 2018-05-25 12:24:51 -04:00
Clang-Format
acf75535ec Clang format 2018-04-30 21:01:23 +01:00
Jean-Philip Desjardins
5ff57edcb4 Some more guards. 2018-04-30 12:00:43 -04:00
Jean-Philip Desjardins
f9d8d31af5 Take offset into account when loading PSM8 CLUT. 2018-04-07 09:59:15 -04:00
Jean-Philip Desjardins
7dc7e8a725 Be more flexible with compatible framebuffers. 2018-04-03 09:18:41 -04:00
Jean-Philip Desjardins
75a8388bac Use IsCompatibleFramebufferPSM in D3D9. 2018-04-03 09:18:41 -04:00
Jean-Philip Desjardins
c9d618ec94 Use enum instead of hardcoded value. 2018-03-20 10:57:58 -04:00
Mahmood(Thunder07)
3e8cac12e7 Add GSH_OpenGL CMakeLists.txt 2018-03-02 12:01:58 +00:00
Jean-Philip Desjardins
344c876818 Use enum instead of direct value. 2018-01-09 12:34:20 -05:00
Jean-Philip Desjardins
6cf44a39a7 Add missing blending modes. 2017-09-04 18:40:46 -04:00
Jean-Philip Desjardins
e1643e287b Add support for blending mode. 2017-09-04 18:39:39 -04:00
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