mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-16 11:03:45 +01:00
Blacklist some gpu
This commit is contained in:
1 parent
1fd6cf1cc5
commit
7500145ddf
1 file changed
+12
-3
+12
-3
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user