Skip to content
Snippets Groups Projects
Commit 1c0c9b92 authored by Kelsey Gilbert's avatar Kelsey Gilbert
Browse files

Bug 1794292 - Use init-gl-point-size on mac. r=gfx-reviewers,bradwerth

parent 3f6ad4cb
No related branches found
No related tags found
No related merge requests found
......@@ -46,22 +46,23 @@ static ShCompileOptions ChooseValidatorCompileOptions(
#endif
if (gl->WorkAroundDriverBugs()) {
#ifdef XP_MACOSX
// Work around https://bugs.webkit.org/show_bug.cgi?id=124684,
// https://chromium.googlesource.com/angle/angle/+/5e70cf9d0b1bb
options.unfoldShortCircuit = true;
if (kIsMacOS) {
// Work around https://bugs.webkit.org/show_bug.cgi?id=124684,
// https://chromium.googlesource.com/angle/angle/+/5e70cf9d0b1bb
options.unfoldShortCircuit = true;
// Work around that Mac drivers handle struct scopes incorrectly.
options.regenerateStructNames = true;
options.initOutputVariables = true;
// Work around that Mac drivers handle struct scopes incorrectly.
options.regenerateStructNames = true;
options.initOutputVariables = true;
options.initGLPointSize = true;
if (gl->Vendor() == gl::GLVendor::Intel) {
// Work around that Intel drivers on Mac OSX handle for-loop incorrectly.
options.addAndTrueToLoopCondition = true;
if (gl->Vendor() == gl::GLVendor::Intel) {
// Work around that Intel drivers on Mac OSX handle for-loop incorrectly.
options.addAndTrueToLoopCondition = true;
options.rewriteTexelFetchOffsetToTexelFetch = true;
options.rewriteTexelFetchOffsetToTexelFetch = true;
}
}
#endif
if (!gl->IsANGLE() && gl->Vendor() == gl::GLVendor::Intel) {
// Failures on at least Windows+Intel+OGL on:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment