Home | History | Annotate | Download | only in driver

Lines Matching refs:rsc

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