From 7500145ddf02bf46ddb039cd6dbd82843ab1cb99 Mon Sep 17 00:00:00 2001 From: sum2012 Date: Sun, 6 Sep 2015 17:33:29 +0800 Subject: [PATCH] Blacklist some gpu --- GPU/GLES/GLES_GPU.cpp | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/GPU/GLES/GLES_GPU.cpp b/GPU/GLES/GLES_GPU.cpp index 52686ef8e1..07c102d11b 100644 --- a/GPU/GLES/GLES_GPU.cpp +++ b/GPU/GLES/GLES_GPU.cpp @@ -56,6 +56,13 @@ enum { FLAG_DIRTYONCHANGE = 64, }; +static const char *BlacklistGPUNames[] = { + // Blacklist Tegra 3, doesn't work very well. + "NVIDIA Tegra 3", + "PowerVR Rogue G6430", + "PowerVR SGX 540", +}; + struct CommandTableEntry { u8 cmd; u8 flags; @@ -490,9 +497,11 @@ void GLES_GPU::CheckGPUFeatures() { // Tales of Destiny 2 has been reported to display green. if (gl_extensions.EXT_shader_framebuffer_fetch || gl_extensions.NV_shader_framebuffer_fetch || gl_extensions.ARM_shader_framebuffer_fetch) { features |= GPU_SUPPORTS_ANY_FRAMEBUFFER_FETCH; - // Blacklist Tegra 3, doesn't work very well. - if (strstr(gl_extensions.model, "NVIDIA Tegra 3") != 0) { - features &= ~GPU_SUPPORTS_ANY_FRAMEBUFFER_FETCH; + for (size_t i = 0; i < ARRAY_SIZE(BlacklistGPUNames); i++) { + if (strstr(gl_extensions.model, BlacklistGPUNames[i]) != 0) { + features &= ~GPU_SUPPORTS_ANY_FRAMEBUFFER_FETCH; + break; + } } }