Skip to content
This repository was 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
jfirebaugh merged 1 commit into
masterfrom
fix-9473
Jul 21, 2017
Merged

jfirebaugh merged 1 commit into
masterfrom
fix-9473

Conversation

@jfirebaugh

Copy link
Copy Markdown
Contributor

Speculative fix for #9473.

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

@Guardiola31337 Guardiola31337 left a comment

Copy link
Copy Markdown
Contributor

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 🚀

Comment thread src/mbgl/gl/context.cpp Outdated
// 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
Copy Markdown
Member

Choose a reason for hiding this comment

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

const

Comment thread src/mbgl/gl/context.cpp
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
Copy Markdown
Member

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
15 of 20 tasks
@Guardiola31337 Guardiola31337 mentioned this pull request Oct 19, 2017
16 of 20 tasks
@Guardiola31337 Guardiola31337 mentioned this pull request Oct 26, 2017
15 of 20 tasks
@tobrun tobrun mentioned this pull request Nov 3, 2017
17 of 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