mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-01 02:03:47 +01:00
Seems Need for Speed: Shift has exactly the same lens flare, enable the same compat settings.
This commit is contained in:
1 parent
a208afb7b8
commit
9c2bfad749
2 files changed
+24
-3
No files matched your search
@@ -1203,7 +1203,7 @@ void TextureCacheCommon::LoadClut(u32 clutAddr, u32 loadBytes) {
|
||||
|
||||
// Is this inside the framebuffer at all? Note that we only check the first line here, this should
|
||||
// be changed.
|
||||
bool matchRange = offset >= 0 && offset < framebuffer->fb_stride * fb_bpp;
|
||||
bool matchRange = offset >= 0 && offset < (int)(framebuffer->fb_stride * fb_bpp);
|
||||
if (matchRange) {
|
||||
// And is it inside the rendered area? Sometimes games pack data in the margin between width and stride.
|
||||
// If the framebuffer width was detected as 512, we're gonna assume it's really 480.
|
||||
@@ -1212,12 +1212,12 @@ void TextureCacheCommon::LoadClut(u32 clutAddr, u32 loadBytes) {
|
||||
fbMatchWidth = 480;
|
||||
}
|
||||
bool inMargin = ((offset / fb_bpp) % framebuffer->fb_stride) == fbMatchWidth;
|
||||
if (matchRange && !inMargin && offset < clutRenderOffset_) {
|
||||
if (matchRange && !inMargin && offset < (int)clutRenderOffset_) {
|
||||
WARN_LOG_N_TIMES(clutfb, 5, G3D, "Detected LoadCLUT(%d bytes) from framebuffer %08x (%s), byte offset %d", loadBytes, fb_address, GeBufferFormatToString(framebuffer->fb_format), offset);
|
||||
framebuffer->last_frame_clut = gpuStats.numFlips;
|
||||
framebuffer->usageFlags |= FB_USAGE_CLUT;
|
||||
clutRenderAddress_ = framebuffer->fb_address;
|
||||
clutRenderOffset_ = offset;
|
||||
clutRenderOffset_ = (u32)offset;
|
||||
if (offset == 0) {
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -1156,6 +1156,13 @@ ULKS46087 = true
|
||||
ULUS10236 = true
|
||||
ULES00703 = true
|
||||
|
||||
# Need for Speed - Shift (same as Burnout Dominator)
|
||||
ULUS10462 = true
|
||||
ULES01275 = true
|
||||
ULJM05494 = true
|
||||
NPJH50143 = true
|
||||
ULJM05738 = true
|
||||
|
||||
[DisableFirstFrameReadback]
|
||||
# Wipeout Pure: Temporary workaround for lens flare flicker. See #13344
|
||||
UCUS98612 = true
|
||||
@@ -1309,6 +1316,13 @@ ULKS46087 = true
|
||||
ULUS10236 = true
|
||||
ULES00703 = true
|
||||
|
||||
# Need for Speed - Shift (same as Burnout Dominator)
|
||||
ULUS10462 = true
|
||||
ULES01275 = true
|
||||
ULJM05494 = true
|
||||
NPJH50143 = true
|
||||
ULJM05738 = true
|
||||
|
||||
[AllowDownloadCLUT]
|
||||
# Temporary compatibility option, while developing a GPU CLUT-from-framebuffer path.
|
||||
|
||||
@@ -1321,3 +1335,10 @@ ULES00703 = true
|
||||
# We need a preinitialized depth buffer
|
||||
ULUS10236 = true
|
||||
ULES00703 = true
|
||||
|
||||
# Need for Speed - Shift (same as Burnout Dominator)
|
||||
ULUS10462 = true
|
||||
ULES01275 = true
|
||||
ULJM05494 = true
|
||||
NPJH50143 = true
|
||||
ULJM05738 = true
|
||||
Reference in new issue
Block a user