GSdx: minor fixes, ar tonelico 2 shadows in sw mode, lamune palette problems in hw mode

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1384 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
gabest11 2009-06-18 01:07:28 +00:00
parent 378489fa1e
commit af0b33c7b5
4 changed files with 11 additions and 10 deletions

View File

@ -28,6 +28,7 @@ CRC::Game CRC::m_games[] =
{0x2113EA2E, MetalSlug6, Unknown},
{0x42E05BAF, TomoyoAfter, JP},
{0x7800DC84, Clannad, JP},
{0xA6167B59, Lamune, JP},
{0xa39517ab, FFX, EU},
{0xa39517ae, FFX, FR},
{0x941bb7d9, FFX, DE},

View File

@ -30,6 +30,7 @@ public:
MetalSlug6,
TomoyoAfter,
Clannad,
Lamune,
FFX,
FFX2,
FFXII,

View File

@ -707,18 +707,17 @@ void GSDrawScanlineCodeGenerator::TestZ(const Xmm& temp1, const Xmm& temp2)
switch(m_sel.ztst)
{
case ZTST_GEQUAL:
// test |= zso < zdo;
// test |= zso < zdo; // ~(zso >= zdo)
pcmpgtd(xmm1, xmm0);
por(xmm7, xmm1);
break;
case ZTST_GREATER:
// test |= zso <= zdo;
movdqa(xmm4, xmm1);
pcmpgtd(xmm1, xmm0);
por(xmm7, xmm1);
pcmpeqd(xmm4, xmm0);
por(xmm7, xmm1);
case ZTST_GREATER: // TODO: tidus hair and chocobo wings only appear fully when this is tested as ZTST_GEQUAL
// test |= zso <= zdo; // ~(zso > zdo)
pcmpgtd(xmm0, xmm1);
pcmpeqd(xmm4, xmm4);
pxor(xmm0, xmm4);
por(xmm7, xmm0);
break;
}

View File

@ -494,9 +494,9 @@ protected:
#pragma endregion
#pragma region tomoyo after, clannad (palette uploaded in a point list, pure genius...)
#pragma region tomoyo after, clannad, lamune (palette uploaded in a point list, pure genius...)
if(m_game.title == CRC::TomoyoAfter || m_game.title == CRC::Clannad)
if(m_game.title == CRC::TomoyoAfter || m_game.title == CRC::Clannad || m_game.title == CRC::Lamune)
{
if(prim == GS_POINTLIST && !PRIM->TME)
{