Bug 1372133 - Add SH_REWRITE_TEXELFETCHOFFSET_TO_TEXELFETCH for Mac+Intel. r=lsalzman

MozReview-Commit-ID: 2WV4jKx6Grh

Differential Revision: https://phabricator.services.mozilla.com/D18905

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Jeff Gilbert 2019-02-07 18:05:03 +00:00
Родитель f31cbeb32e
Коммит ddc097c8b7
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -52,9 +52,11 @@ static ShCompileOptions ChooseValidatorCompileOptions(
options |= SH_REGENERATE_STRUCT_NAMES;
options |= SH_INIT_OUTPUT_VARIABLES;
// Work around that Intel drivers on Mac OSX handle for-loop incorrectly.
if (gl->Vendor() == gl::GLVendor::Intel) {
// Work around that Intel drivers on Mac OSX handle for-loop incorrectly.
options |= SH_ADD_AND_TRUE_TO_LOOP_CONDITION;
options |= SH_REWRITE_TEXELFETCHOFFSET_TO_TEXELFETCH;
}
#endif