From c47b951ecbcbbba653db801bc7eb5f4fa5d72042 Mon Sep 17 00:00:00 2001 From: Paul Thomson Date: Tue, 15 Dec 2020 13:17:28 +0000 Subject: [PATCH] Capture: Disable GL_NV_shader_noperspective_interpolation Skia uses the extension GL_NV_shader_noperspective_interpolation, which is implemented by ANGLE. This leads to traces with shaders that use the extension. Such traces do not replay on some native GLES drivers, as the extension is not available. The fix is to disable the GL_NV_shader_noperspective_interpolation extension when capturing, so that apps do not use this extension. Bug: b/174256233 Change-Id: I5265cab2a56be488669ed31aa2ea8ec7b7fad8fd Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2593190 Reviewed-by: Jamie Madill Commit-Queue: Paul Thomson --- src/libANGLE/Context.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libANGLE/Context.cpp b/src/libANGLE/Context.cpp index 219da2132..e60d8993c 100644 --- a/src/libANGLE/Context.cpp +++ b/src/libANGLE/Context.cpp @@ -3577,6 +3577,11 @@ void Context::initCaps() "supported on native drivers" << std::endl; mState.mExtensions.bindUniformLocation = false; + + INFO() << "Disabling GL_NV_shader_noperspective_interpolation during capture, which is not " + "supported on some native drivers" + << std::endl; + mState.mExtensions.noperspectiveInterpolationNV = false; } // Disable support for OES_get_program_binary