Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

[android] Disable program caching on Adreno 3xx, 4xx, and 5xx GPUs due to known bugs #9574

Merged
merged 1 commit into from
Jul 21, 2017

Conversation

jfirebaugh
Copy link
Contributor

Speculative fix for #9473.

@Guardiola31337, can you test this on the Nexus 5 and Moto X?

Copy link
Contributor

@Guardiola31337 Guardiola31337 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It works on both 🎉
No artefacts at all 🚀

// Blacklist Adreno 3xx, 4xx, and 5xx GPUs due to known bugs:
// https://bugs.chromium.org/p/chromium/issues/detail?id=510637
// https://chromium.googlesource.com/chromium/src/gpu/+/master/config/gpu_driver_bug_list.json#2316
std::string renderer = reinterpret_cast<const char*>(glGetString(GL_RENDERER));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const

if (renderer.find("Adreno (TM) 3") != std::string::npos
|| renderer.find("Adreno (TM) 4") != std::string::npos
|| renderer.find("Adreno (TM) 5") != std::string::npos)
return false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we please add braces around complex if statements?

@kkaefer kkaefer added the Core The cross-platform C++ core, aka mbgl label Jul 21, 2017
@jfirebaugh jfirebaugh merged commit cebc3c8 into master Jul 21, 2017
@jfirebaugh jfirebaugh deleted the fix-9473 branch July 21, 2017 16:31
@Guardiola31337 Guardiola31337 added this to the android-v5.2.0 milestone Oct 6, 2017
@Guardiola31337 Guardiola31337 mentioned this pull request Oct 6, 2017
20 tasks
@Guardiola31337 Guardiola31337 mentioned this pull request Oct 19, 2017
20 tasks
@Guardiola31337 Guardiola31337 mentioned this pull request Oct 26, 2017
20 tasks
@tobrun tobrun mentioned this pull request Nov 3, 2017
21 tasks
This was referenced Nov 14, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Core The cross-platform C++ core, aka mbgl
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants