Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 559b4339 authored by Courtney Goeltzenleuchter's avatar Courtney Goeltzenleuchter
Browse files

Enable context virtualization only for GL

Only the GL back-end requires context virtualization. So only
require it for that case and not for Vulkan back-end.

Test: dEQP with ANGLE and ANGLE build with args.gn with
angle_enable_gl=false
Bug: 150892231

Change-Id: I443841c2543d0c6446d0f11122bf18dc9acbf428
parent 34560b6d
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -158,13 +158,16 @@ static bool addAnglePlatformAttributes(egl_connection_t* const cnx,
            // NOTE: This is only valid if the backend is OpenGL
            attrs.push_back(EGL_PLATFORM_ANGLE_EGL_HANDLE_ANGLE);
            attrs.push_back(vendorEGL);

            // Context virtualization is only available on GL back-end.
            // Needed to support threading with GL back-end
            attrs.push_back(EGL_PLATFORM_ANGLE_CONTEXT_VIRTUALIZATION_ANGLE);
            attrs.push_back(EGL_FALSE);
            break;
        default:
            ALOGV("%s: Requesting Unknown (%d) ANGLE back-end", __FUNCTION__, cnx->angleBackend);
            ALOGE("%s: Requesting Unknown (%d) ANGLE back-end", __FUNCTION__, cnx->angleBackend);
            break;
    }
    attrs.push_back(EGL_PLATFORM_ANGLE_CONTEXT_VIRTUALIZATION_ANGLE);
    attrs.push_back(EGL_FALSE);

    return true;
}