GS-HW: Assume points of right size are paletted, regardless of Z writes.

Adds Clannad CLUT setting in the gamedb.
This commit is contained in:
refractionpcsx2 2022-11-08 19:15:38 +00:00
parent 212b2aea16
commit e9ec9e79ac
2 changed files with 4 additions and 4 deletions

View File

@ -30954,7 +30954,7 @@ SLPM-66302:
name: "Clannad" name: "Clannad"
region: "NTSC-J" region: "NTSC-J"
gsHWFixes: gsHWFixes:
pointListPalette: 1 cpuCLUTRender: 1 # Fixes colours.
SLPM-66307: SLPM-66307:
name: "Sengoku Musou 2" name: "Sengoku Musou 2"
region: "NTSC-J" region: "NTSC-J"
@ -32100,7 +32100,7 @@ SLPM-66611:
name: "Tomoyo After - It's Wonderful Life [CS Edition]" name: "Tomoyo After - It's Wonderful Life [CS Edition]"
region: "NTSC-J" region: "NTSC-J"
gsHWFixes: gsHWFixes:
pointListPalette: 1 cpuCLUTRender: 1 # Fixes Colours.
SLPM-66612: SLPM-66612:
name: "School Love [Limited Edition]" name: "School Love [Limited Edition]"
region: "NTSC-J" region: "NTSC-J"

View File

@ -3904,8 +3904,8 @@ bool GSRendererHW::PossibleCLUTDraw()
// Keep the draws simple, no alpha testing, blending, mipmapping, Z writes, and make sure it's flat. // Keep the draws simple, no alpha testing, blending, mipmapping, Z writes, and make sure it's flat.
const bool fb_only = m_context->TEST.ATE && m_context->TEST.AFAIL == 1 && m_context->TEST.ATST == ATST_NEVER; const bool fb_only = m_context->TEST.ATE && m_context->TEST.AFAIL == 1 && m_context->TEST.ATST == ATST_NEVER;
// No Z writes. // No Z writes, unless it's points, then it's quite likely to be a palette and they left it on.
if (!m_context->ZBUF.ZMSK && !fb_only) if (!m_context->ZBUF.ZMSK && !fb_only && !(m_vt.m_primclass == GS_POINT_CLASS))
return false; return false;
// Make sure it's flat. // Make sure it's flat.