mirror of https://github.com/PCSX2/pcsx2.git
GS/TextureCache: Allow tex-in-rt for 16/24/32-bit targets
Fixes swirl battle transition in Valkyrie Profile 2. Fixes top-left screen rendering in Lego Racers 2.
This commit is contained in:
parent
0a26adae76
commit
c9aba6bbe1
|
@ -1352,6 +1352,7 @@ SCAJ-20177:
|
||||||
gsHWFixes:
|
gsHWFixes:
|
||||||
halfPixelOffset: 1 # Reduces bloom misalignment.
|
halfPixelOffset: 1 # Reduces bloom misalignment.
|
||||||
roundSprite: 1 # Fixes area transition vertical lines and lessens red forest vertical lines.
|
roundSprite: 1 # Fixes area transition vertical lines and lessens red forest vertical lines.
|
||||||
|
textureInsideRT: 1 # Required for swirl battle transition.
|
||||||
SCAJ-20178:
|
SCAJ-20178:
|
||||||
name: "Ape Escape - Million Monkeys"
|
name: "Ape Escape - Million Monkeys"
|
||||||
region: "NTSC-Unk"
|
region: "NTSC-Unk"
|
||||||
|
@ -1452,6 +1453,7 @@ SCAJ-20197:
|
||||||
gsHWFixes:
|
gsHWFixes:
|
||||||
halfPixelOffset: 1 # Reduces bloom misalignment.
|
halfPixelOffset: 1 # Reduces bloom misalignment.
|
||||||
roundSprite: 1 # Fixes area transition vertical lines and lessens red forest vertical lines.
|
roundSprite: 1 # Fixes area transition vertical lines and lessens red forest vertical lines.
|
||||||
|
textureInsideRT: 1 # Required for swirl battle transition.
|
||||||
SCAJ-20198:
|
SCAJ-20198:
|
||||||
name: "Everybody's Tennis [PlayStation 2 The Best]"
|
name: "Everybody's Tennis [PlayStation 2 The Best]"
|
||||||
region: "NTSC-Unk"
|
region: "NTSC-Unk"
|
||||||
|
@ -5224,6 +5226,7 @@ SCKA-20079:
|
||||||
gsHWFixes:
|
gsHWFixes:
|
||||||
halfPixelOffset: 1 # Reduces bloom misalignment.
|
halfPixelOffset: 1 # Reduces bloom misalignment.
|
||||||
roundSprite: 1 # Fixes area transition vertical lines and lessens red forest vertical lines.
|
roundSprite: 1 # Fixes area transition vertical lines and lessens red forest vertical lines.
|
||||||
|
textureInsideRT: 1 # Required for swirl battle transition.
|
||||||
SCKA-20081:
|
SCKA-20081:
|
||||||
name: "Tekken 5 [PlayStation 2 Big Hit Series]"
|
name: "Tekken 5 [PlayStation 2 Big Hit Series]"
|
||||||
region: "NTSC-K"
|
region: "NTSC-K"
|
||||||
|
@ -10477,6 +10480,8 @@ SLES-50438:
|
||||||
SLES-50443:
|
SLES-50443:
|
||||||
name: "LEGO Racers 2"
|
name: "LEGO Racers 2"
|
||||||
region: "PAL-M8"
|
region: "PAL-M8"
|
||||||
|
gsHWFixes:
|
||||||
|
textureInsideRT: 1 # Fixes top left corner rendering.
|
||||||
SLES-50444:
|
SLES-50444:
|
||||||
name: "Portal Runner"
|
name: "Portal Runner"
|
||||||
region: "PAL-M4"
|
region: "PAL-M4"
|
||||||
|
@ -20382,6 +20387,7 @@ SLES-54644:
|
||||||
gsHWFixes:
|
gsHWFixes:
|
||||||
halfPixelOffset: 1 # Reduces bloom misalignment.
|
halfPixelOffset: 1 # Reduces bloom misalignment.
|
||||||
roundSprite: 1 # Fixes area transition vertical lines and lessens red forest vertical lines.
|
roundSprite: 1 # Fixes area transition vertical lines and lessens red forest vertical lines.
|
||||||
|
textureInsideRT: 1 # Required for swirl battle transition.
|
||||||
SLES-54645:
|
SLES-54645:
|
||||||
name: "Valkyrie Profile 2 - Silmeria"
|
name: "Valkyrie Profile 2 - Silmeria"
|
||||||
region: "PAL-F"
|
region: "PAL-F"
|
||||||
|
@ -20390,6 +20396,7 @@ SLES-54645:
|
||||||
gsHWFixes:
|
gsHWFixes:
|
||||||
halfPixelOffset: 1 # Reduces bloom misalignment.
|
halfPixelOffset: 1 # Reduces bloom misalignment.
|
||||||
roundSprite: 1 # Fixes area transition vertical lines and lessens red forest vertical lines.
|
roundSprite: 1 # Fixes area transition vertical lines and lessens red forest vertical lines.
|
||||||
|
textureInsideRT: 1 # Required for swirl battle transition.
|
||||||
SLES-54646:
|
SLES-54646:
|
||||||
name: "Valkyrie Profile 2 - Silmeria"
|
name: "Valkyrie Profile 2 - Silmeria"
|
||||||
region: "PAL-G"
|
region: "PAL-G"
|
||||||
|
@ -20399,6 +20406,7 @@ SLES-54646:
|
||||||
gsHWFixes:
|
gsHWFixes:
|
||||||
halfPixelOffset: 1 # Reduces bloom misalignment.
|
halfPixelOffset: 1 # Reduces bloom misalignment.
|
||||||
roundSprite: 1 # Fixes area transition vertical lines and lessens red forest vertical lines.
|
roundSprite: 1 # Fixes area transition vertical lines and lessens red forest vertical lines.
|
||||||
|
textureInsideRT: 1 # Required for swirl battle transition.
|
||||||
SLES-54647:
|
SLES-54647:
|
||||||
name: "Valkyrie Profile 2 - Silmeria"
|
name: "Valkyrie Profile 2 - Silmeria"
|
||||||
region: "PAL-I"
|
region: "PAL-I"
|
||||||
|
@ -20408,6 +20416,7 @@ SLES-54647:
|
||||||
gsHWFixes:
|
gsHWFixes:
|
||||||
halfPixelOffset: 1 # Reduces bloom misalignment.
|
halfPixelOffset: 1 # Reduces bloom misalignment.
|
||||||
roundSprite: 1 # Fixes area transition vertical lines and lessens red forest vertical lines.
|
roundSprite: 1 # Fixes area transition vertical lines and lessens red forest vertical lines.
|
||||||
|
textureInsideRT: 1 # Required for swirl battle transition.
|
||||||
SLES-54648:
|
SLES-54648:
|
||||||
name: "Valkyrie Profile 2 - Silmeria"
|
name: "Valkyrie Profile 2 - Silmeria"
|
||||||
region: "PAL-S"
|
region: "PAL-S"
|
||||||
|
@ -20416,6 +20425,7 @@ SLES-54648:
|
||||||
gsHWFixes:
|
gsHWFixes:
|
||||||
halfPixelOffset: 1 # Reduces bloom misalignment.
|
halfPixelOffset: 1 # Reduces bloom misalignment.
|
||||||
roundSprite: 1 # Fixes area transition vertical lines and lessens red forest vertical lines.
|
roundSprite: 1 # Fixes area transition vertical lines and lessens red forest vertical lines.
|
||||||
|
textureInsideRT: 1 # Required for swirl battle transition.
|
||||||
SLES-54653:
|
SLES-54653:
|
||||||
name: "Freak Out - Extreme Freeride"
|
name: "Freak Out - Extreme Freeride"
|
||||||
region: "PAL-M5"
|
region: "PAL-M5"
|
||||||
|
@ -25804,6 +25814,8 @@ SLPM-62203:
|
||||||
SLPM-62204:
|
SLPM-62204:
|
||||||
name: "LEGO Racers 2"
|
name: "LEGO Racers 2"
|
||||||
region: "NTSC-J"
|
region: "NTSC-J"
|
||||||
|
gsHWFixes:
|
||||||
|
textureInsideRT: 1 # Fixes top left corner rendering.
|
||||||
SLPM-62205:
|
SLPM-62205:
|
||||||
name: "Virtua Cop Re-Birth"
|
name: "Virtua Cop Re-Birth"
|
||||||
region: "NTSC-J"
|
region: "NTSC-J"
|
||||||
|
@ -32595,6 +32607,7 @@ SLPM-66419:
|
||||||
gsHWFixes:
|
gsHWFixes:
|
||||||
halfPixelOffset: 1 # Reduces bloom misalignment.
|
halfPixelOffset: 1 # Reduces bloom misalignment.
|
||||||
roundSprite: 1 # Fixes area transition vertical lines and lessens red forest vertical lines.
|
roundSprite: 1 # Fixes area transition vertical lines and lessens red forest vertical lines.
|
||||||
|
textureInsideRT: 1 # Required for swirl battle transition.
|
||||||
SLPM-66420:
|
SLPM-66420:
|
||||||
name: "Front Mission 4 [Ultimate Hits]"
|
name: "Front Mission 4 [Ultimate Hits]"
|
||||||
region: "NTSC-J"
|
region: "NTSC-J"
|
||||||
|
@ -34048,6 +34061,7 @@ SLPM-66782:
|
||||||
gsHWFixes:
|
gsHWFixes:
|
||||||
halfPixelOffset: 1 # Reduces bloom misalignment.
|
halfPixelOffset: 1 # Reduces bloom misalignment.
|
||||||
roundSprite: 1 # Fixes area transition vertical lines and lessens red forest vertical lines.
|
roundSprite: 1 # Fixes area transition vertical lines and lessens red forest vertical lines.
|
||||||
|
textureInsideRT: 1 # Required for swirl battle transition.
|
||||||
SLPM-66783:
|
SLPM-66783:
|
||||||
name: "Idol Janshi Suchie-Pai 4 [Limited Edition]"
|
name: "Idol Janshi Suchie-Pai 4 [Limited Edition]"
|
||||||
region: "NTSC-J"
|
region: "NTSC-J"
|
||||||
|
@ -40905,6 +40919,8 @@ SLUS-20042:
|
||||||
name: "LEGO Racers 2"
|
name: "LEGO Racers 2"
|
||||||
region: "NTSC-U"
|
region: "NTSC-U"
|
||||||
compat: 5
|
compat: 5
|
||||||
|
gsHWFixes:
|
||||||
|
textureInsideRT: 1 # Fixes top left corner rendering.
|
||||||
SLUS-20043:
|
SLUS-20043:
|
||||||
name: "Star Wars - Super Bombad Racing"
|
name: "Star Wars - Super Bombad Racing"
|
||||||
region: "NTSC-U"
|
region: "NTSC-U"
|
||||||
|
@ -47878,6 +47894,7 @@ SLUS-21452:
|
||||||
gsHWFixes:
|
gsHWFixes:
|
||||||
halfPixelOffset: 1 # Reduces bloom misalignment.
|
halfPixelOffset: 1 # Reduces bloom misalignment.
|
||||||
roundSprite: 1 # Fixes area transition vertical lines.
|
roundSprite: 1 # Fixes area transition vertical lines.
|
||||||
|
textureInsideRT: 1 # Required for swirl battle transition.
|
||||||
SLUS-21453:
|
SLUS-21453:
|
||||||
name: "Disney's Meet the Robinsons"
|
name: "Disney's Meet the Robinsons"
|
||||||
region: "NTSC-U"
|
region: "NTSC-U"
|
||||||
|
|
|
@ -416,7 +416,7 @@ GSTextureCache::Source* GSTextureCache::LookupSource(const GIFRegTEX0& TEX0, con
|
||||||
}
|
}
|
||||||
// Make sure the texture actually is INSIDE the RT, it's possibly not valid if it isn't.
|
// Make sure the texture actually is INSIDE the RT, it's possibly not valid if it isn't.
|
||||||
// Also check BP >= TBP, create source isn't equpped to expand it backwards and all data comes from the target. (GH3)
|
// Also check BP >= TBP, create source isn't equpped to expand it backwards and all data comes from the target. (GH3)
|
||||||
else if (GSConfig.UserHacks_TextureInsideRt && psm == PSM_PSMCT32 && t->m_TEX0.PSM == psm &&
|
else if (GSConfig.UserHacks_TextureInsideRt && psm >= PSM_PSMCT32 && psm <= PSM_PSMCT16S && t->m_TEX0.PSM == psm &&
|
||||||
(t->Overlaps(bp, bw, psm, r) || t_wraps) && t->m_age <= 1 && !found_t && bp >= t->m_TEX0.TBP0)
|
(t->Overlaps(bp, bw, psm, r) || t_wraps) && t->m_age <= 1 && !found_t && bp >= t->m_TEX0.TBP0)
|
||||||
{
|
{
|
||||||
// Only PSMCT32 to limit false hits.
|
// Only PSMCT32 to limit false hits.
|
||||||
|
|
Loading…
Reference in New Issue