mirror of
https://github.com/ARMSX2/ARMSX2.git
synced 2026-08-24 16:50:16 -07:00
GameDB: Adjust mipmap and trilinear behavior.
This commit is contained in:
+6
-14
@@ -370,13 +370,13 @@ static const char* s_gs_hw_fix_names[] = {
|
||||
"textureInsideRT",
|
||||
"alignSprite",
|
||||
"mergeSprite",
|
||||
"mipmap",
|
||||
"wildArmsHack",
|
||||
"bilinearUpscale",
|
||||
"nativePaletteDraw",
|
||||
"estimateTextureRegion",
|
||||
"PCRTCOffsets",
|
||||
"PCRTCOverscan",
|
||||
"mipmap",
|
||||
"trilinearFiltering",
|
||||
"skipDrawStart",
|
||||
"skipDrawEnd",
|
||||
@@ -621,7 +621,7 @@ bool GameDatabaseSchema::GameEntry::configMatchesHWFix(const Pcsx2Config::GSOpti
|
||||
return (static_cast<int>(config.PCRTCOverscan) == value);
|
||||
|
||||
case GSHWFixId::Mipmap:
|
||||
return (config.HWMipmap == HWMipmapLevel::Automatic || static_cast<int>(config.HWMipmap) == value);
|
||||
return (static_cast<int>(config.HWMipmap) == value);
|
||||
|
||||
case GSHWFixId::TrilinearFiltering:
|
||||
return (config.TriFilter == TriFiltering::Automatic || static_cast<int>(config.TriFilter) == value);
|
||||
@@ -775,16 +775,8 @@ void GameDatabaseSchema::GameEntry::applyGSHardwareFixes(Pcsx2Config::GSOptions&
|
||||
break;
|
||||
|
||||
case GSHWFixId::Mipmap:
|
||||
{
|
||||
if (value >= 0 && value <= static_cast<int>(HWMipmapLevel::Full))
|
||||
{
|
||||
if (config.HWMipmap == HWMipmapLevel::Automatic)
|
||||
config.HWMipmap = static_cast<HWMipmapLevel>(value);
|
||||
else if (config.HWMipmap == HWMipmapLevel::Off)
|
||||
Console.Warning("[GameDB] Game requires mipmapping but it has been force disabled.");
|
||||
}
|
||||
}
|
||||
break;
|
||||
config.HWMipmap = (value > 0);
|
||||
break;
|
||||
|
||||
case GSHWFixId::TrilinearFiltering:
|
||||
{
|
||||
@@ -792,8 +784,8 @@ void GameDatabaseSchema::GameEntry::applyGSHardwareFixes(Pcsx2Config::GSOptions&
|
||||
{
|
||||
if (config.TriFilter == TriFiltering::Automatic)
|
||||
config.TriFilter = static_cast<TriFiltering>(value);
|
||||
else if (config.TriFilter == TriFiltering::Off)
|
||||
Console.Warning("[GameDB] Game requires trilinear filtering but it has been force disabled.");
|
||||
else if (config.TriFilter > TriFiltering::Off)
|
||||
Console.Warning("[GameDB] Game requires trilinear filtering to be disabled.");
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -53,6 +53,7 @@ namespace GameDatabaseSchema
|
||||
TextureInsideRT,
|
||||
AlignSprite,
|
||||
MergeSprite,
|
||||
Mipmap,
|
||||
WildArmsHack,
|
||||
BilinearUpscale,
|
||||
NativePaletteDraw,
|
||||
@@ -61,7 +62,6 @@ namespace GameDatabaseSchema
|
||||
PCRTCOverscan,
|
||||
|
||||
// integer settings
|
||||
Mipmap,
|
||||
TrilinearFiltering,
|
||||
SkipDrawStart,
|
||||
SkipDrawEnd,
|
||||
|
||||
Reference in New Issue
Block a user