Lines Matching refs:rsc
148 void rsdGLShutdown(const Context *rsc) { in rsdGLShutdown() argument
149 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in rsdGLShutdown()
151 rsdGLSetSurface(rsc, 0, 0, nullptr); in rsdGLShutdown()
173 void getConfigData(const Context *rsc, in getConfigData() argument
200 if (rsc->mUserSurfaceConfig.alphaMin > 0) { in getConfigData()
202 configAttribsPtr[1] = rsc->mUserSurfaceConfig.alphaMin; in getConfigData()
206 if (rsc->mUserSurfaceConfig.depthMin > 0) { in getConfigData()
208 configAttribsPtr[1] = rsc->mUserSurfaceConfig.depthMin; in getConfigData()
224 int32_t rsdGLInit(const Context *rsc) { in rsdGLInit() argument
225 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in rsdGLInit()
232 ALOGV("%p initEGL start", rsc); in rsdGLInit()
233 rsc->setWatchdogGL("eglGetDisplay", __LINE__, __FILE__); in rsdGLInit()
244 rsc->setWatchdogGL("eglChooseConfig", __LINE__, __FILE__); in rsdGLInit()
247 uint32_t minSample = rsc->mUserSurfaceConfig.samplesMin; in rsdGLInit()
248 uint32_t prefSample = rsc->mUserSurfaceConfig.samplesPref; in rsdGLInit()
250 getConfigData(rsc, configAttribs, (sizeof(configAttribs) / sizeof(EGLint)), sampleCount); in rsdGLInit()
261 rsc->setWatchdogGL("eglChooseConfig", __LINE__, __FILE__); in rsdGLInit()
266 ALOGE("%p, couldn't find an EGLConfig matching the screen format\n", rsc); in rsdGLInit()
274 if (rsc->mUserSurfaceConfig.alphaMin <= 0) { in rsdGLInit()
283 if (rsc->mUserSurfaceConfig.depthMin <= 0) { in rsdGLInit()
306 rsc->setWatchdogGL("eglCreateContext", __LINE__, __FILE__); in rsdGLInit()
311 ALOGE("%p, eglCreateContext returned EGL_NO_CONTEXT", rsc); in rsdGLInit()
312 rsc->setWatchdogGL(nullptr, 0, nullptr); in rsdGLInit()
318 rsc->setWatchdogGL("eglCreatePbufferSurface", __LINE__, __FILE__); in rsdGLInit()
324 rsdGLShutdown(rsc); in rsdGLInit()
325 rsc->setWatchdogGL(nullptr, 0, nullptr); in rsdGLInit()
329 rsc->setWatchdogGL("eglMakeCurrent", __LINE__, __FILE__); in rsdGLInit()
335 rsdGLShutdown(rsc); in rsdGLInit()
336 rsc->setWatchdogGL(nullptr, 0, nullptr); in rsdGLInit()
363 rsdGLShutdown(rsc); in rsdGLInit()
364 rsc->setWatchdogGL(nullptr, 0, nullptr); in rsdGLInit()
419 ALOGV("%p initGLThread end", rsc); in rsdGLInit()
420 rsc->setWatchdogGL(nullptr, 0, nullptr); in rsdGLInit()
425 bool rsdGLSetInternalSurface(const Context *rsc, RsNativeWindow sur) { in rsdGLSetInternalSurface() argument
426 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in rsdGLSetInternalSurface()
430 rsc->setWatchdogGL("eglMakeCurrent", __LINE__, __FILE__); in rsdGLSetInternalSurface()
435 rsc->setWatchdogGL("eglDestroySurface", __LINE__, __FILE__); in rsdGLSetInternalSurface()
450 rsc->setWatchdogGL("eglCreateWindowSurface", __LINE__, __FILE__); in rsdGLSetInternalSurface()
458 rsc->setWatchdogGL("eglMakeCurrent", __LINE__, __FILE__); in rsdGLSetInternalSurface()
463 rsc->setWatchdogGL(nullptr, 0, nullptr); in rsdGLSetInternalSurface()
467 bool rsdGLSetSurface(const Context *rsc, uint32_t w, uint32_t h, RsNativeWindow sur) { in rsdGLSetSurface() argument
468 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in rsdGLSetSurface()
483 return rsdGLSetInternalSurface(rsc, sur); in rsdGLSetSurface()
486 void rsdGLSwap(const android::renderscript::Context *rsc) { in rsdGLSwap() argument
487 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in rsdGLSwap()
491 void rsdGLSetPriority(const Context *rsc, int32_t priority) { in rsdGLSetPriority() argument
500 void rsdGLCheckError(const android::renderscript::Context *rsc, in rsdGLCheckError() argument
508 rsc->setError(RS_ERROR_FATAL_DRIVER, buf); in rsdGLCheckError()
512 rsc->setError(RS_ERROR_OUT_OF_MEMORY, buf); in rsdGLCheckError()
515 rsc->setError(RS_ERROR_DRIVER, buf); in rsdGLCheckError()
520 ALOGE("%p, %s", rsc, buf); in rsdGLCheckError()
525 void rsdGLClearColor(const android::renderscript::Context *rsc, in rsdGLClearColor() argument
531 void rsdGLClearDepth(const android::renderscript::Context *rsc, float v) { in rsdGLClearDepth() argument
536 void rsdGLFinish(const android::renderscript::Context *rsc) { in rsdGLFinish() argument
540 void rsdGLDrawQuadTexCoords(const android::renderscript::Context *rsc, in rsdGLDrawQuadTexCoords() argument
555 va.setup(rsc); in rsdGLDrawQuadTexCoords()