Lines Matching refs:rsc
127 void rsdGLShutdown(const Context *rsc) { in rsdGLShutdown() argument
128 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in rsdGLShutdown()
151 bool rsdGLInit(const Context *rsc) { in rsdGLInit() argument
152 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in rsdGLInit()
181 if (rsc->mUserSurfaceConfig.alphaMin > 0) { in rsdGLInit()
183 configAttribsPtr[1] = rsc->mUserSurfaceConfig.alphaMin; in rsdGLInit()
187 if (rsc->mUserSurfaceConfig.depthMin > 0) { in rsdGLInit()
189 configAttribsPtr[1] = rsc->mUserSurfaceConfig.depthMin; in rsdGLInit()
193 if (rsc->mDev->mForceSW) { in rsdGLInit()
202 LOGV("%p initEGL start", rsc); in rsdGLInit()
203 rsc->setWatchdogGL("eglGetDisplay", __LINE__, __FILE__); in rsdGLInit()
214 rsc->setWatchdogGL("eglChooseConfig", __LINE__, __FILE__); in rsdGLInit()
221 rsc->setWatchdogGL("eglChooseConfig", __LINE__, __FILE__); in rsdGLInit()
226 LOGE("%p, couldn't find an EGLConfig matching the screen format\n", rsc); in rsdGLInit()
234 if (rsc->mUserSurfaceConfig.alphaMin <= 0) { in rsdGLInit()
243 if (rsc->mUserSurfaceConfig.depthMin <= 0) { in rsdGLInit()
266 rsc->setWatchdogGL("eglCreateContext", __LINE__, __FILE__); in rsdGLInit()
271 LOGE("%p, eglCreateContext returned EGL_NO_CONTEXT", rsc); in rsdGLInit()
272 rsc->setWatchdogGL(NULL, 0, NULL); in rsdGLInit()
279 rsc->setWatchdogGL("eglCreatePbufferSurface", __LINE__, __FILE__); in rsdGLInit()
285 rsdGLShutdown(rsc); in rsdGLInit()
286 rsc->setWatchdogGL(NULL, 0, NULL); in rsdGLInit()
290 rsc->setWatchdogGL("eglMakeCurrent", __LINE__, __FILE__); in rsdGLInit()
296 rsdGLShutdown(rsc); in rsdGLInit()
297 rsc->setWatchdogGL(NULL, 0, NULL); in rsdGLInit()
324 rsdGLShutdown(rsc); in rsdGLInit()
325 rsc->setWatchdogGL(NULL, 0, NULL); in rsdGLInit()
363 LOGV("%p initGLThread end", rsc); in rsdGLInit()
364 rsc->setWatchdogGL(NULL, 0, NULL); in rsdGLInit()
369 bool rsdGLSetSurface(const Context *rsc, uint32_t w, uint32_t h, RsNativeWindow sur) { in rsdGLSetSurface() argument
370 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in rsdGLSetSurface()
376 rsc->setWatchdogGL("eglMakeCurrent", __LINE__, __FILE__); in rsdGLSetSurface()
381 rsc->setWatchdogGL("eglDestroySurface", __LINE__, __FILE__); in rsdGLSetSurface()
400 rsc->setWatchdogGL("eglCreateWindowSurface", __LINE__, __FILE__); in rsdGLSetSurface()
408 rsc->setWatchdogGL("eglMakeCurrent", __LINE__, __FILE__); in rsdGLSetSurface()
413 rsc->setWatchdogGL(NULL, 0, NULL); in rsdGLSetSurface()
417 void rsdGLSwap(const android::renderscript::Context *rsc) { in rsdGLSwap() argument
418 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in rsdGLSwap()
422 void rsdGLCheckError(const android::renderscript::Context *rsc, in rsdGLCheckError() argument
430 rsc->setError(RS_ERROR_FATAL_DRIVER, buf); in rsdGLCheckError()
434 rsc->setError(RS_ERROR_OUT_OF_MEMORY, buf); in rsdGLCheckError()
437 rsc->setError(RS_ERROR_DRIVER, buf); in rsdGLCheckError()
442 LOGE("%p, %s", rsc, buf); in rsdGLCheckError()