Commit c47b951e by Paul Thomson Committed by Commit Bot

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/+/2593190Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Paul Thomson <paulthomson@google.com>
parent 5b6d60f8
...@@ -3577,6 +3577,11 @@ void Context::initCaps() ...@@ -3577,6 +3577,11 @@ void Context::initCaps()
"supported on native drivers" "supported on native drivers"
<< std::endl; << std::endl;
mState.mExtensions.bindUniformLocation = false; 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 // Disable support for OES_get_program_binary
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment