pcsx2/plugins
Gregory Hainaut b34243fa7b gsdx state: TEX0 write behavior might depends on the context
Game: harley davidson
* write tex0 ctx0
* write tex0 ctx1
* draw  ctx 0

Previous GSdx behavior will load the clut every write of TEX0. In the
above case the draw will take the wrong clut.

To be honest, it could be a wrong emulation on the EE core emulation.
The hardware likely got a single clut (1KB cache is quite expensive)
So clut loading must be skipped if the context is wrong.

Next draw will use the ctx1 clut so I apply TEX0 when the context is switched

Please test harley davidson :)

v2: detect context switch from UpdateContext function
V3: always set m_env.CTXT[i].offset.tex, avoid crash (Thanks to FlatOutPS2 that spot the issue)
V4: move bad psm correction code (rebase put it in the wrong place)
2016-09-27 10:04:09 +02:00
..
CDVDiso reformat CDVDiso 2016-09-08 21:54:50 +02:00
CDVDisoEFP Clean up the type defines in pcsx2. 2014-08-25 16:16:34 +10:00
CDVDlinuz Use global compiler optimization flags instead of defining them for every plugin/binary 2015-08-08 16:25:17 +03:00
CDVDnull reformat null plugin with pointer symbol on the right 2016-09-08 21:52:49 +02:00
CDVDolio windows: Remove user.props references from all projects 2016-05-29 12:21:52 +01:00
CDVDpeops Introduce end-of-line normalization 2015-08-04 23:52:48 +02:00
FWnull reformat null plugin with pointer symbol on the right 2016-09-08 21:52:49 +02:00
GSdx gsdx state: TEX0 write behavior might depends on the context 2016-09-27 10:04:09 +02:00
GSdx_legacy windows: Don't use __declspec(dllexport) for plugin exports 2016-06-05 22:57:42 +01:00
GSnull reformat null plugin with pointer symbol on the right 2016-09-08 21:52:49 +02:00
LilyPad pcsx2: remove various unused variable 2016-09-10 00:09:05 +02:00
PadNull reformat null plugin with pointer symbol on the right 2016-09-08 21:52:49 +02:00
PeopsSPU2 Introduce end-of-line normalization 2015-08-04 23:52:48 +02:00
SPU2null reformat null plugin with pointer symbol on the right 2016-09-08 21:52:49 +02:00
SSSPSXPAD windows: Remove user.props references from all projects 2016-05-29 12:21:52 +01:00
USBnull reformat null plugin with pointer symbol on the right 2016-09-08 21:52:49 +02:00
USBqemu plugins: Tidy/standardise VS projects 2016-07-19 23:25:12 +01:00
cdvdGigaherz/src cdvdgigaherz: Fix printf sign mismatch warnings 2016-09-20 01:24:23 +01:00
dev9ghzdrk Fix warning in dev9ghz 2016-07-23 15:58:37 +02:00
dev9null reformat null plugin with pointer symbol on the right 2016-09-08 21:52:49 +02:00
onepad pcsx2: Remove == true/false for boolean logic (#1556) 2016-09-10 20:08:14 +02:00
spu2-x pcsx2:gsdx:spu2x: use parenthesis around macro parameters 2016-09-18 16:13:55 +02:00
xpad plugins: Tidy/standardise VS projects 2016-07-19 23:25:12 +01:00
zerogs windows: Remove user.props references from all projects 2016-05-29 12:21:52 +01:00
zerospu2 windows: Remove unneeded library dependencies 2016-06-04 22:55:48 +01:00
zzogl-pg/opengl glsl2h: add input files in the header 2016-08-28 16:31:35 +02:00
CMakeLists.txt cmake: add an option to build the new legacy GSdx plugin 2016-04-07 21:46:42 +02:00