Commit 7bc40ff8 by Nicolas Capens

Only add non-conformant configs on Android.

This silences a benign assert in the config sorting operator which checks for unique configs. On platforms other than Android, all of the configs are marked as conformant. Bug b/34029810 Change-Id: I600d67747ba24f153a0316609e5a783991093ebd Reviewed-on: https://swiftshader-review.googlesource.com/8388Tested-by: 's avatarNicolas Capens <capn@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com>
parent b28c662c
......@@ -336,8 +336,10 @@ void ConfigSet::add(sw::Format displayFormat, EGLint minSwapInterval, EGLint max
Config conformantConfig(displayFormat, minSwapInterval, maxSwapInterval, renderTargetFormat, depthStencilFormat, multiSample, true);
mSet.insert(conformantConfig);
Config nonConformantConfig(displayFormat, minSwapInterval, maxSwapInterval, renderTargetFormat, depthStencilFormat, multiSample, false);
mSet.insert(nonConformantConfig);
#ifdef __ANDROID__
Config nonConformantConfig(displayFormat, minSwapInterval, maxSwapInterval, renderTargetFormat, depthStencilFormat, multiSample, false);
mSet.insert(nonConformantConfig);
#endif
}
size_t ConfigSet::size() const
......
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