WARP should never be broken. - r?jrmuizel
draft
WARP should never be broken. - r?jrmuizel
From a7c96e713178d436c44c3d42dac0a54d331fc188 Mon Sep 17 00:00:00 2001
---
gfx/gl/GLLibraryEGL.cpp | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
MozReview-Commit-ID: LSJPOX0yJsN
--- a/gfx/gl/GLLibraryEGL.cpp
+++ b/gfx/gl/GLLibraryEGL.cpp
@@ -379,27 +379,26 @@ GLLibraryEGL::EnsureInitialized(bool for
// Check the ANGLE support the system has
nsCOMPtr<nsIGfxInfo> gfxInfo = do_GetService("@mozilla.org/gfx/info;1");
mIsANGLE = IsExtensionSupported(ANGLE_platform_angle);
EGLDisplay chosenDisplay = nullptr;
if (IsExtensionSupported(ANGLE_platform_angle_d3d)) {
bool accelAngleSupport = IsAccelAngleSupported(gfxInfo);
- bool warpAngleSupport = gfxPlatform::CanUseDirect3D11ANGLE();
+ bool warpAngleSupport = true; // WARP should never be broken.
bool shouldTryAccel = forceAccel || accelAngleSupport;
bool shouldTryWARP = !shouldTryAccel && warpAngleSupport;
if (gfxPrefs::WebGLANGLEForceWARP()) {
shouldTryWARP = true;
shouldTryAccel = false;
}
- // Fallback to a WARP display if non-WARP is blacklisted,
- // or if WARP is forced
+ // Fallback to a WARP display if non-WARP is blacklisted, or if WARP is forced.
if (shouldTryWARP) {
chosenDisplay = GetAndInitWARPDisplay(*this, EGL_DEFAULT_DISPLAY);
if (chosenDisplay) {
mIsWARP = true;
}
}
if (!chosenDisplay) {