Commit 6efe2d09 by Nicolas Capens

Don't mark any EGL configs as slow.

RGB_565 is now as fast if not faster than 32-bit formats. Change-Id: I6358e35557164541601ac76ae11028afba439084 Reviewed-on: https://swiftshader-review.googlesource.com/4253Reviewed-by: 's avatarNicolas Capens <capn@google.com> Tested-by: 's avatarNicolas Capens <capn@google.com>
parent e3ae4283
...@@ -109,7 +109,7 @@ Config::Config(sw::Format displayFormat, EGLint minInterval, EGLint maxInterval, ...@@ -109,7 +109,7 @@ Config::Config(sw::Format displayFormat, EGLint minInterval, EGLint maxInterval,
mBufferSize = mRedSize + mGreenSize + mBlueSize + mLuminanceSize + mAlphaSize; mBufferSize = mRedSize + mGreenSize + mBlueSize + mLuminanceSize + mAlphaSize;
mAlphaMaskSize = 0; mAlphaMaskSize = 0;
mColorBufferType = EGL_RGB_BUFFER; mColorBufferType = EGL_RGB_BUFFER;
mConfigCaveat = isSlowConfig() ? EGL_SLOW_CONFIG : EGL_NONE; mConfigCaveat = EGL_NONE;
mConfigID = 0; mConfigID = 0;
mConformant = EGL_OPENGL_ES_BIT | EGL_OPENGL_ES2_BIT mConformant = EGL_OPENGL_ES_BIT | EGL_OPENGL_ES2_BIT
#ifndef __ANDROID__ // Do not allow GLES 3.0 on Android #ifndef __ANDROID__ // Do not allow GLES 3.0 on Android
...@@ -194,11 +194,6 @@ EGLConfig Config::getHandle() const ...@@ -194,11 +194,6 @@ EGLConfig Config::getHandle() const
return (EGLConfig)(size_t)mConfigID; return (EGLConfig)(size_t)mConfigID;
} }
bool Config::isSlowConfig() const
{
return mRenderTargetFormat != sw::FORMAT_X8R8G8B8 && mRenderTargetFormat != sw::FORMAT_A8R8G8B8;
}
// This ordering determines the config ID // This ordering determines the config ID
bool CompareConfig::operator()(const Config &x, const Config &y) const bool CompareConfig::operator()(const Config &x, const Config &y) const
{ {
......
...@@ -32,7 +32,6 @@ public: ...@@ -32,7 +32,6 @@ public:
Config(sw::Format displayFormat, EGLint minSwapInterval, EGLint maxSwapInterval, sw::Format renderTargetFormat, sw::Format depthStencilFormat, EGLint multiSample); Config(sw::Format displayFormat, EGLint minSwapInterval, EGLint maxSwapInterval, sw::Format renderTargetFormat, sw::Format depthStencilFormat, EGLint multiSample);
EGLConfig getHandle() const; EGLConfig getHandle() const;
bool isSlowConfig() const;
const sw::Format mDisplayFormat; const sw::Format mDisplayFormat;
const sw::Format mRenderTargetFormat; const sw::Format mRenderTargetFormat;
......
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