summaryrefslogtreecommitdiffstats
path: root/libs/rs/rsContext.cpp
diff options
context:
space:
mode:
authorJason Sams <rjsams@android.com>2010-09-14 14:59:03 -0700
committerJason Sams <rjsams@android.com>2010-09-14 14:59:37 -0700
commitcfc04366998cd0c626594c9cf70336a11bdf5996 (patch)
treee49a01f8a5d333a9ba1e711e2939915c9c84dbf0 /libs/rs/rsContext.cpp
parent213fc950d4acef73eed6b6294b556981f516dbff (diff)
downloadframeworks_base-cfc04366998cd0c626594c9cf70336a11bdf5996.zip
frameworks_base-cfc04366998cd0c626594c9cf70336a11bdf5996.tar.gz
frameworks_base-cfc04366998cd0c626594c9cf70336a11bdf5996.tar.bz2
Fix partial NP2 support and restrict mipmaps and clamp
modes on HW that does not support proper NP2 bug 2965170 Change-Id: If9a3ac45264861fc75b9616e98957e12a5464411
Diffstat (limited to 'libs/rs/rsContext.cpp')
-rw-r--r--libs/rs/rsContext.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/libs/rs/rsContext.cpp b/libs/rs/rsContext.cpp
index f67a9d5..5327aac 100644
--- a/libs/rs/rsContext.cpp
+++ b/libs/rs/rsContext.cpp
@@ -88,7 +88,7 @@ void Context::initEGL(bool useGL2)
configAttribsPtr[0] = EGL_NONE;
rsAssert(configAttribsPtr < (configAttribs + (sizeof(configAttribs) / sizeof(EGLint))));
- LOGV("initEGL start");
+ LOGV("%p initEGL start", this);
mEGL.mDisplay = eglGetDisplay(EGL_DEFAULT_DISPLAY);
checkEglError("eglGetDisplay");
@@ -97,7 +97,7 @@ void Context::initEGL(bool useGL2)
status_t err = EGLUtils::selectConfigForNativeWindow(mEGL.mDisplay, configAttribs, mWndSurface, &mEGL.mConfig);
if (err) {
- LOGE("couldn't find an EGLConfig matching the screen format\n");
+ LOGE("%p, couldn't find an EGLConfig matching the screen format\n", this);
}
//eglChooseConfig(mEGL.mDisplay, configAttribs, &mEGL.mConfig, 1, &mEGL.mNumConfigs);
@@ -109,14 +109,14 @@ void Context::initEGL(bool useGL2)
}
checkEglError("eglCreateContext");
if (mEGL.mContext == EGL_NO_CONTEXT) {
- LOGE("eglCreateContext returned EGL_NO_CONTEXT");
+ LOGE("%p, eglCreateContext returned EGL_NO_CONTEXT", this);
}
gGLContextCount++;
}
void Context::deinitEGL()
{
- LOGV("deinitEGL");
+ LOGV("%p, deinitEGL", this);
setSurface(0, 0, NULL);
eglDestroyContext(mEGL.mDisplay, mEGL.mContext);
checkEglError("eglDestroyContext");
@@ -150,7 +150,7 @@ void Context::checkError(const char *msg) const
{
GLenum err = glGetError();
if (err != GL_NO_ERROR) {
- LOGE("GL Error, 0x%x, from %s", err, msg);
+ LOGE("%p, GL Error, 0x%x, from %s", this, err, msg);
}
}
@@ -348,7 +348,7 @@ void * Context::threadProc(void *vrsc)
}
}
- LOGV("RS Thread exiting");
+ LOGV("%p, RS Thread exiting", rsc);
if (rsc->mIsGraphicsContext) {
rsc->mRaster.clear();
rsc->mFragment.clear();
@@ -370,7 +370,7 @@ void * Context::threadProc(void *vrsc)
pthread_mutex_unlock(&gInitMutex);
}
- LOGV("RS Thread exited");
+ LOGV("%p, RS Thread exited", rsc);
return NULL;
}