Commit 9407404e by Cody Northrop Committed by Commit Bot

Capture/Replay: Limit GL_MAX_IMAGE_UNITS further

From testing on the bots, the limit of 8 is required. Also happens to be the most common limit per gpuinfo.org. Test: LEGO MEC Bug: b/161716126 Change-Id: I76447a02c5546bda9085a179b123640d2a93474d Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2552557Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Cody Northrop <cnorthrop@google.com>
parent ae5a2047
...@@ -3532,7 +3532,8 @@ void Context::initCaps() ...@@ -3532,7 +3532,8 @@ void Context::initCaps()
<< std::endl; << std::endl;
mDisplay->overrideFrontendFeatures({"disable_program_binary"}, true); mDisplay->overrideFrontendFeatures({"disable_program_binary"}, true);
constexpr GLint maxImageUnits = 20; // Set to the most common limit per gpuinfo.org. Required for several platforms we test.
constexpr GLint maxImageUnits = 8;
INFO() << "Limiting image unit count to " << maxImageUnits << " while FrameCapture enabled" INFO() << "Limiting image unit count to " << maxImageUnits << " while FrameCapture enabled"
<< std::endl; << std::endl;
ANGLE_LIMIT_CAP(mState.mCaps.maxImageUnits, maxImageUnits); ANGLE_LIMIT_CAP(mState.mCaps.maxImageUnits, maxImageUnits);
......
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