Lines Matching defs:rsc

154 void rsdGLShutdown(const Context *rsc) {
155 RsdHal *dc = (RsdHal *)rsc->mHal.drv;
157 rsdGLSetSurface(rsc, 0, 0, NULL);
179 void getConfigData(const Context *rsc,
206 if (rsc->mUserSurfaceConfig.alphaMin > 0) {
208 configAttribsPtr[1] = rsc->mUserSurfaceConfig.alphaMin;
212 if (rsc->mUserSurfaceConfig.depthMin > 0) {
214 configAttribsPtr[1] = rsc->mUserSurfaceConfig.depthMin;
218 if (rsc->mDev->mForceSW) {
236 bool rsdGLInit(const Context *rsc) {
237 RsdHal *dc = (RsdHal *)rsc->mHal.drv;
244 ALOGV("%p initEGL start", rsc);
245 rsc->setWatchdogGL("eglGetDisplay", __LINE__, __FILE__);
256 rsc->setWatchdogGL("eglChooseConfig", __LINE__, __FILE__);
259 uint32_t minSample = rsc->mUserSurfaceConfig.samplesMin;
260 uint32_t prefSample = rsc->mUserSurfaceConfig.samplesPref;
262 getConfigData(rsc, configAttribs, (sizeof(configAttribs) / sizeof(EGLint)), sampleCount);
275 rsc->setWatchdogGL("eglChooseConfig", __LINE__, __FILE__);
280 ALOGE("%p, couldn't find an EGLConfig matching the screen format\n", rsc);
288 if (rsc->mUserSurfaceConfig.alphaMin <= 0) {
297 if (rsc->mUserSurfaceConfig.depthMin <= 0) {
320 rsc->setWatchdogGL("eglCreateContext", __LINE__, __FILE__);
325 ALOGE("%p, eglCreateContext returned EGL_NO_CONTEXT", rsc);
326 rsc->setWatchdogGL(NULL, 0, NULL);
343 rsdGLShutdown(rsc);
344 rsc->setWatchdogGL(NULL, 0, NULL);
348 rsc->setWatchdogGL("eglMakeCurrent", __LINE__, __FILE__);
354 rsdGLShutdown(rsc);
355 rsc->setWatchdogGL(NULL, 0, NULL);
382 rsdGLShutdown(rsc);
383 rsc->setWatchdogGL(NULL, 0, NULL);
422 ALOGV("%p initGLThread end", rsc);
423 rsc->setWatchdogGL(NULL, 0, NULL);
428 bool rsdGLSetInternalSurface(const Context *rsc, RsNativeWindow sur) {
429 RsdHal *dc = (RsdHal *)rsc->mHal.drv;
433 rsc->setWatchdogGL("eglMakeCurrent", __LINE__, __FILE__);
438 rsc->setWatchdogGL("eglDestroySurface", __LINE__, __FILE__);
453 rsc->setWatchdogGL("eglCreateWindowSurface", __LINE__, __FILE__);
461 rsc->setWatchdogGL("eglMakeCurrent", __LINE__, __FILE__);
466 rsc->setWatchdogGL(NULL, 0, NULL);
470 bool rsdGLSetSurface(const Context *rsc, uint32_t w, uint32_t h, RsNativeWindow sur) {
471 RsdHal *dc = (RsdHal *)rsc->mHal.drv;
486 return rsdGLSetInternalSurface(rsc, sur);
489 void rsdGLSwap(const android::renderscript::Context *rsc) {
490 RsdHal *dc = (RsdHal *)rsc->mHal.drv;
494 void rsdGLSetPriority(const Context *rsc, int32_t priority) {
503 void rsdGLCheckError(const android::renderscript::Context *rsc,
511 rsc->setError(RS_ERROR_FATAL_DRIVER, buf);
515 rsc->setError(RS_ERROR_OUT_OF_MEMORY, buf);
518 rsc->setError(RS_ERROR_DRIVER, buf);
523 ALOGE("%p, %s", rsc, buf);
528 void rsdGLClearColor(const android::renderscript::Context *rsc,
534 void rsdGLClearDepth(const android::renderscript::Context *rsc, float v) {
539 void rsdGLFinish(const android::renderscript::Context *rsc) {
543 void rsdGLDrawQuadTexCoords(const android::renderscript::Context *rsc,
557 va.setup(rsc);