dontInitializeUninitializedLocals on Qualcomm only

SH_INITIALIZE_UNINITIALIZED_LOCALS triggers a very unpredictable crash
in the shader compiler on Qualcomm Adreno (at least 4xx) on Marshmallow.

Bug: angleproject:2046
Change-Id: I9a109f7ff442b4e9d3880d137f1a55a19105bcef
Reviewed-on: https://chromium-review.googlesource.com/705930
Commit-Queue: Kai Ninomiya <kainino@chromium.org>
Reviewed-by: Jamie Madill <jmadill@chromium.org>
This commit is contained in:
Kai Ninomiya 2017-10-06 13:11:13 -07:00 коммит произвёл Commit Bot
Родитель 359487c822
Коммит d63d0007c1
2 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -41,6 +41,7 @@ Google Inc.
Justin Schuh
Scott Graham
Corentin Wallez
Kai Ninomiya
Adobe Systems Inc.
Alexandru Chiculita

Просмотреть файл

@ -1067,7 +1067,9 @@ void GenerateWorkarounds(const FunctionsGL *functions, WorkaroundsGL *workaround
#endif
#if defined(ANGLE_PLATFORM_ANDROID)
workarounds->dontInitializeUninitializedLocals = true;
// Triggers a bug on Marshmallow Adreno (4xx?) driver.
// http://anglebug.com/2046
workarounds->dontInitializeUninitializedLocals = IsQualcomm(vendor);
#endif
workarounds->finishDoesNotCauseQueriesToBeAvailable =