Compare commits

...
Author SHA1 Message Date
lightningterror 3206094545 GameDB: Add full mipmap and trilinear ps2 to Hard Hitter games.
Improves ground texture rendering.
2023-02-10 22:24:33 +01:00
Stenzekandrefractionpcsx2 5cfae80701 GL/OpenGL: Add a hidden [EmuCore/GS] DisableGLDownloadPBO option
.. to disable the use of PBOs when reading back.
2023-02-10 14:38:21 +00:00
JordanTheToasterandrefractionpcsx2 b4d140c6bb GameDB: Fixes for 187 Ride or Die
Add autoflush to soften bloom and HPO Special Texture to fix misaligned bloom.
2023-02-10 14:15:51 +00:00
Stenzekandrefractionpcsx2 c65eb3c3ee GS/HW: Fix crash with AVX2 due to unaligned pitch 2023-02-10 14:15:33 +00:00
Mrlinkwiiandlightningterror eec0984dbe Gamedb: remove skipdraw from Need for Speed - Undercover 2023-02-10 14:47:52 +01:00
5 changed files with 44 additions and 30 deletions
+30 -17
View File
@@ -9392,6 +9392,9 @@ SLED-53512:
SLED-53537:
name: "187 - Ride or Die [Demo]"
region: "PAL-E"
gsHWFixes:
autoFlush: 1 # Softens bloom on objects and cars.
halfPixelOffset: 2 # Fixes misalgined bloom on objects and cars.
SLED-53673:
name: "007 - From Russia with Love [Demo]"
region: "PAL-E"
@@ -10800,6 +10803,9 @@ SLES-50632:
SLES-50636:
name: "Centre Court - Hard Hitter"
region: "PAL-M3"
gsHWFixes:
mipmap: 2 # Improves ground texture rendering.
trilinearFiltering: 1
SLES-50637:
name: "Pro Rally 2002"
region: "PAL-M5"
@@ -11749,6 +11755,9 @@ SLES-51056:
SLES-51057:
name: "Hard Hitter 2"
region: "PAL-M3"
gsHWFixes:
mipmap: 2 # Improves ground texture rendering.
trilinearFiltering: 1
SLES-51058:
name: "Maken Shao - Demon Sword"
region: "PAL-E"
@@ -14327,6 +14336,9 @@ SLES-52276:
name: "187 - Ride or Die"
region: "PAL-M5"
compat: 5
gsHWFixes:
autoFlush: 1 # Softens bloom on objects and cars.
halfPixelOffset: 2 # Fixes misalgined bloom on objects and cars.
SLES-52277:
name: "Riding Spirits 2"
region: "PAL-M5"
@@ -15519,7 +15531,7 @@ SLES-52745:
region: "PAL-M4"
SLES-52746:
name: "Hugo - Cannon Cruise"
region: "PAL-M4"
region: "PAL-SC"
SLES-52747:
name: "Dukes of Hazzard, The - The Return of General Lee"
region: "PAL-E"
@@ -15705,7 +15717,7 @@ SLES-52816:
cpuCLUTRender: 1 # Fixes duplicated post processing.
SLES-52820:
name: "Incredibles, The"
region: "PAL-M4"
region: "PAL-SC"
gsHWFixes:
halfPixelOffset: 1 # Fixes offset post processing.
cpuCLUTRender: 1 # Fixes duplicated post processing.
@@ -18815,7 +18827,7 @@ SLES-54013:
region: "PAL-E"
SLES-54015:
name: "Disney-Pixar's Cars"
region: "PAL-M3"
region: "PAL-SC"
SLES-54016:
name: "AND 1 Streetball"
region: "PAL-M5"
@@ -22231,37 +22243,27 @@ SLES-55349:
region: "PAL-E"
gsHWFixes:
halfPixelOffset: 2 # Fixes blurriness.
skipDrawStart: 1 # Removes even more blurriness and garbage texture like on top left.
skipDrawEnd: 1 # Removes even more blurriness and garbage texture like on top left.
SLES-55350:
name: "Need for Speed - Undercover"
region: "PAL-F-G"
gsHWFixes:
halfPixelOffset: 2 # Fixes blurriness.
skipDrawStart: 1 # Removes even more blurriness and garbage texture like on top left.
skipDrawEnd: 1 # Removes even more blurriness and garbage texture like on top left.
SLES-55351:
name: "Need for Speed - Undercover"
region: "PAL-I-S"
gsHWFixes:
halfPixelOffset: 2 # Fixes blurriness.
skipDrawStart: 1 # Removes even more blurriness and garbage texture like on top left.
skipDrawEnd: 1 # Removes even more blurriness and garbage texture like on top left.
SLES-55352:
name: "Need for Speed - Undercover"
region: "PAL-M4"
compat: 5
gsHWFixes:
halfPixelOffset: 2 # Fixes blurriness.
skipDrawStart: 1 # Removes even more blurriness and garbage texture like on top left.
skipDrawEnd: 1 # Removes even more blurriness and garbage texture like on top left.
SLES-55353:
name: "Need for Speed - Undercover"
region: "PAL-M6"
gsHWFixes:
halfPixelOffset: 2 # Fixes blurriness.
skipDrawStart: 1 # Removes even more blurriness and garbage texture like on top left.
skipDrawEnd: 1 # Removes even more blurriness and garbage texture like on top left.
SLES-55354:
name: "Shin Megami Tensei - Persona 3 FES"
region: "PAL-E"
@@ -23238,6 +23240,9 @@ SLKA-15011:
SLKA-15013:
name: "Grand Slam 2003 Tennis" # Hard Hitter 2
region: "NTSC-K"
gsHWFixes:
mipmap: 2 # Improves ground texture rendering.
trilinearFiltering: 1
SLKA-15015:
name: "Ichigeki Sacchuu!! HoiHoi-San"
region: "NTSC-K"
@@ -24709,8 +24714,6 @@ SLPM-55127:
region: "NTSC-J"
gsHWFixes:
halfPixelOffset: 2 # Fixes blurriness.
skipDrawStart: 1 # Removes even more blurriness and garbage texture like on top left.
skipDrawEnd: 1 # Removes even more blurriness and garbage texture like on top left.
SLPM-55131:
name: "World Soccer Winning Eleven 2009"
region: "NTSC-J"
@@ -24905,8 +24908,6 @@ SLPM-55244:
region: "NTSC-J"
gsHWFixes:
halfPixelOffset: 2 # Fixes blurriness.
skipDrawStart: 1 # Removes even more blurriness and garbage texture like on top left.
skipDrawEnd: 1 # Removes even more blurriness and garbage texture like on top left.
SLPM-55245:
name: "Himawari - Pebble in the Sky"
region: "NTSC-J"
@@ -35642,6 +35643,9 @@ SLPS-20097:
SLPS-20098:
name: "Magical Sports - Hard Hitter"
region: "NTSC-J"
gsHWFixes:
mipmap: 2 # Improves ground texture rendering.
trilinearFiltering: 1
SLPS-20099:
name: "Dream Audition 3"
region: "NTSC-J"
@@ -35793,6 +35797,9 @@ SLPS-20171:
SLPS-20173:
name: "Magical Sports - Hard Hitter 2"
region: "NTSC-J"
gsHWFixes:
mipmap: 2 # Improves ground texture rendering.
trilinearFiltering: 1
SLPS-20174:
name: "Typing Renai Hakusho - Boys Be... [with Keyboard]"
region: "NTSC-J"
@@ -43196,6 +43203,9 @@ SLUS-20567:
SLUS-20568:
name: "Hard Hitter Tennis"
region: "NTSC-U"
gsHWFixes:
mipmap: 2 # Improves ground texture rendering.
trilinearFiltering: 1
SLUS-20569:
name: "All-Star Baseball 2004"
region: "NTSC-U"
@@ -45938,6 +45948,9 @@ SLUS-21116:
name: "187 - Ride or Die"
region: "NTSC-U"
compat: 5
gsHWFixes:
autoFlush: 1 # Softens bloom on objects and cars.
halfPixelOffset: 2 # Fixes misalgined bloom on objects and cars.
SLUS-21117:
name: "World Soccer - Winning Eleven 8 - International"
region: "NTSC-U"
+1 -1
View File
@@ -3116,7 +3116,7 @@ void GSTextureCache::Target::Update(bool reset_age)
}
else
{
int pitch = ((r.width()+3) & ~3) * 4;
const int pitch = Common::AlignUpPow2(r.width() * sizeof(u32), 32);
g_gs_renderer->m_mem.ReadTexture(off, r, s_unswizzle_buffer, pitch, TEXA);
t->Update(r, s_unswizzle_buffer, pitch);
+10 -9
View File
@@ -17,6 +17,7 @@
#include "GLLoader.h"
#include "GS/GS.h"
#include "Host.h"
#include "HostSettings.h"
namespace ReplaceGL
{
@@ -112,8 +113,8 @@ namespace GLLoader
bool vendor_id_amd = false;
bool vendor_id_nvidia = false;
bool vendor_id_intel = false;
bool mesa_driver = false;
bool buggy_pbo = false;
bool disable_download_pbo = false;
bool is_gles = false;
bool has_dual_source_blend = false;
@@ -131,14 +132,8 @@ namespace GLLoader
vendor_id_amd = true;
else if (strstr(vendor, "NVIDIA Corporation"))
vendor_id_nvidia = true;
#ifdef _WIN32
else if (strstr(vendor, "Intel"))
vendor_id_intel = true;
#else
// On linux assumes the free driver if it isn't nvidia or amd pro driver
mesa_driver = !vendor_id_nvidia && !vendor_id_amd;
#endif
if (GSConfig.OverrideGeometryShaders != -1)
{
@@ -225,10 +220,16 @@ namespace GLLoader
// Don't use PBOs when we don't have ARB_buffer_storage, orphaning buffers probably ends up worse than just
// using the normal texture update routines and letting the driver take care of it.
GLLoader::buggy_pbo = !GLAD_GL_VERSION_4_4 && !GLAD_GL_ARB_buffer_storage && !GLAD_GL_EXT_buffer_storage;
if (GLLoader::buggy_pbo)
buggy_pbo = !GLAD_GL_VERSION_4_4 && !GLAD_GL_ARB_buffer_storage && !GLAD_GL_EXT_buffer_storage;
if (buggy_pbo)
Console.Warning("Not using PBOs for texture uploads because buffer_storage is unavailable.");
// Give the user the option to disable PBO usage for downloads.
// Most drivers seem to be faster with PBO.
disable_download_pbo = Host::GetBoolSettingValue("EmuCore/GS", "DisableGLDownloadPBO", false);
if (disable_download_pbo)
Console.Warning("Not using PBOs for texture downloads, this may reduce performance.");
return true;
}
+1 -2
View File
@@ -29,9 +29,8 @@ namespace GLLoader
extern bool vendor_id_amd;
extern bool vendor_id_nvidia;
extern bool vendor_id_intel;
extern bool mesa_driver;
extern bool buggy_pbo;
extern bool in_replayer;
extern bool disable_download_pbo;
// GL
extern bool is_gles;
+2 -1
View File
@@ -455,7 +455,8 @@ std::unique_ptr<GSDownloadTextureOGL> GSDownloadTextureOGL::Create(u32 width, u3
{
const u32 buffer_size = GetBufferSize(width, height, format, GSTexture::GetCompressedBytesPerBlock(format));
const bool use_buffer_storage = (GLAD_GL_VERSION_4_4 || GLAD_GL_ARB_buffer_storage || GLAD_GL_EXT_buffer_storage);
const bool use_buffer_storage = (GLAD_GL_VERSION_4_4 || GLAD_GL_ARB_buffer_storage || GLAD_GL_EXT_buffer_storage) &&
!GLLoader::disable_download_pbo;
if (use_buffer_storage)
{
GLuint buffer_id;