• Home
  • Raw
  • Download

Lines Matching refs:rsc

234     Context *rsc = static_cast<Context *>(vrsc);  in threadProc()  local
236 rsc->mNativeThreadId = gettid(); in threadProc()
237 rsc->props.mLogTimes = getProp("debug.rs.profile") != 0; in threadProc()
238 rsc->props.mLogScripts = getProp("debug.rs.script") != 0; in threadProc()
239 rsc->props.mLogShaders = getProp("debug.rs.shader") != 0; in threadProc()
240 rsc->props.mLogShadersAttr = getProp("debug.rs.shader.attributes") != 0; in threadProc()
241 rsc->props.mLogShadersUniforms = getProp("debug.rs.shader.uniforms") != 0; in threadProc()
242 rsc->props.mLogVisual = getProp("debug.rs.visual") != 0; in threadProc()
243 rsc->props.mLogReduce = getProp("debug.rs.reduce"); in threadProc()
244 rsc->props.mDebugReduceSplitAccum = getProp("debug.rs.reduce-split-accum") != 0; in threadProc()
245 rsc->props.mDebugMaxThreads = getProp("debug.rs.max-threads"); in threadProc()
249 rsc->mContextType = RS_CONTEXT_TYPE_DEBUG; in threadProc()
250 rsc->mForceCpu = true; in threadProc()
256 rsc->mForceRSoV = true; in threadProc()
262 rsc->mForceCpu = true; in threadProc()
265 rsc->mForceCpu |= rsc->mIsGraphicsContext; in threadProc()
266 if (!rsc->loadDriver(rsc->mForceCpu, rsc->mForceRSoV)) { in threadProc()
267 rsc->setError(RS_ERROR_DRIVER, "Failed loading driver"); in threadProc()
271 if (!rsc->isSynchronous()) { in threadProc()
274 rsc->setPriority(RS_THREAD_PRIORITY_NORMAL_GRAPHICS); in threadProc()
278 if (rsc->mIsGraphicsContext) { in threadProc()
279 if (!rsc->initGLThread()) { in threadProc()
280 rsc->setError(RS_ERROR_OUT_OF_MEMORY, "Failed initializing GL"); in threadProc()
284 rsc->mStateRaster.init(rsc); in threadProc()
285 rsc->setProgramRaster(nullptr); in threadProc()
286 rsc->mStateVertex.init(rsc); in threadProc()
287 rsc->setProgramVertex(nullptr); in threadProc()
288 rsc->mStateFragment.init(rsc); in threadProc()
289 rsc->setProgramFragment(nullptr); in threadProc()
290 rsc->mStateFragmentStore.init(rsc); in threadProc()
291 rsc->setProgramStore(nullptr); in threadProc()
292 rsc->mStateFont.init(rsc); in threadProc()
293 rsc->setFont(nullptr); in threadProc()
294 rsc->mStateSampler.init(rsc); in threadProc()
295 rsc->mFBOCache.init(rsc); in threadProc()
299 rsc->mRunning = true; in threadProc()
301 if (rsc->isSynchronous()) { in threadProc()
305 if (!rsc->mIsGraphicsContext) { in threadProc()
306 while (!rsc->mExit) { in threadProc()
307 rsc->mIO.playCoreCommands(rsc, -1); in threadProc()
318 while (!rsc->mExit) { in threadProc()
319 rsc->timerSet(RS_TIMER_IDLE); in threadProc()
327 … if (!rsc->mRootScript.get() || !rsc->mHasSurface || rsc->mPaused || whenToCallAgain == 0) { in threadProc()
328 rsc->mIO.playCoreCommands(rsc, -1); in threadProc()
330 rsc->mIO.playCoreCommands(rsc, rsc->mSyncFd); in threadProc()
333 if (rsc->mRootScript.get() && rsc->mHasSurface && !rsc->mPaused) { in threadProc()
334 whenToCallAgain = rsc->runRootScript(); in threadProc()
336 if (rsc->props.mLogVisual) { in threadProc()
337 rsc->displayDebugStats(); in threadProc()
339 rsc->timerSet(RS_TIMER_CLEAR_SWAP); in threadProc()
340 rsc->mHal.funcs.swap(rsc); in threadProc()
341 rsc->timerFrame(); in threadProc()
342 rsc->timerSet(RS_TIMER_INTERNAL); in threadProc()
343 rsc->timerPrint(); in threadProc()
344 rsc->timerReset(); in threadProc()
353 if (rsc->mIsGraphicsContext) { in threadProc()
355 rsc->deinitEGL(); in threadProc()
390 Context *rsc = (Context *)ctx; in printWatchdogInfo() local
391 if (rsc->watchdog.command && rsc->watchdog.file) { in printWatchdogInfo()
392 ALOGE("RS watchdog timeout: %i %s line %i %s", rsc->watchdog.inRoot, in printWatchdogInfo()
393 rsc->watchdog.command, rsc->watchdog.line, rsc->watchdog.file); in printWatchdogInfo()
395 ALOGE("RS watchdog timeout: %i", rsc->watchdog.inRoot); in printWatchdogInfo()
464 Context * rsc = new Context(); in createContext() local
467 rsc->mForceCpu = true; in createContext()
470 rsc->mSynchronous = true; in createContext()
472 rsc->mContextType = ct; in createContext()
473 rsc->mHal.flags = flags; in createContext()
474 rsc->mVendorDriverName = vendorDriverName; in createContext()
476 if (!rsc->initContext(dev, sc)) { in createContext()
477 delete rsc; in createContext()
481 return rsc; in createContext()
485 Context * rsc = new Context(); in createContextLite() local
486 rsc->mIsContextLite = true; in createContextLite()
487 return rsc; in createContextLite()
746 void rsi_ContextFinish(Context *rsc) { in rsi_ContextFinish() argument
747 rsc->finish(); in rsi_ContextFinish()
750 void rsi_ContextBindRootScript(Context *rsc, RsScript vs) { in rsi_ContextBindRootScript() argument
753 rsc->setRootScript(s); in rsi_ContextBindRootScript()
757 void rsi_ContextSetCacheDir(Context *rsc, const char *cacheDir, size_t cacheDir_length) { in rsi_ContextSetCacheDir() argument
758 rsc->setCacheDir(cacheDir, cacheDir_length); in rsi_ContextSetCacheDir()
761 void rsi_ContextBindSampler(Context *rsc, uint32_t slot, RsSampler vs) { in rsi_ContextBindSampler() argument
769 s->bindToContext(&rsc->mStateSampler, slot); in rsi_ContextBindSampler()
773 void rsi_ContextBindProgramStore(Context *rsc, RsProgramStore vpfs) { in rsi_ContextBindProgramStore() argument
775 rsc->setProgramStore(pfs); in rsi_ContextBindProgramStore()
778 void rsi_ContextBindProgramFragment(Context *rsc, RsProgramFragment vpf) { in rsi_ContextBindProgramFragment() argument
780 rsc->setProgramFragment(pf); in rsi_ContextBindProgramFragment()
783 void rsi_ContextBindProgramRaster(Context *rsc, RsProgramRaster vpr) { in rsi_ContextBindProgramRaster() argument
785 rsc->setProgramRaster(pr); in rsi_ContextBindProgramRaster()
788 void rsi_ContextBindProgramVertex(Context *rsc, RsProgramVertex vpv) { in rsi_ContextBindProgramVertex() argument
790 rsc->setProgramVertex(pv); in rsi_ContextBindProgramVertex()
793 void rsi_ContextBindFont(Context *rsc, RsFont vfont) { in rsi_ContextBindFont() argument
795 rsc->setFont(font); in rsi_ContextBindFont()
799 void rsi_AssignName(Context *rsc, RsObjectBase obj, const char *name, size_t name_length) { in rsi_AssignName() argument
801 rsc->assignName(ob, name, name_length); in rsi_AssignName()
804 void rsi_ObjDestroy(Context *rsc, void *optr) { in rsi_ObjDestroy() argument
806 rsc->removeName(ob); in rsi_ObjDestroy()
811 void rsi_ContextPause(Context *rsc) { in rsi_ContextPause() argument
812 rsc->pause(); in rsi_ContextPause()
815 void rsi_ContextResume(Context *rsc) { in rsi_ContextResume() argument
816 rsc->resume(); in rsi_ContextResume()
819 void rsi_ContextSetSurface(Context *rsc, uint32_t w, uint32_t h, RsNativeWindow sur) { in rsi_ContextSetSurface() argument
820 rsc->setSurface(w, h, sur); in rsi_ContextSetSurface()
824 void rsi_ContextSetPriority(Context *rsc, int32_t p) { in rsi_ContextSetPriority() argument
825 rsc->setPriority(p); in rsi_ContextSetPriority()
828 void rsi_ContextDump(Context *rsc, int32_t bits) { in rsi_ContextDump() argument
829 ObjectBase::dumpAll(rsc); in rsi_ContextDump()
832 void rsi_ContextDestroyWorker(Context *rsc) { in rsi_ContextDestroyWorker() argument
833 rsc->destroyWorkerThreadResources(); in rsi_ContextDestroyWorker()
836 void rsi_ContextDestroy(Context *rsc) { in rsi_ContextDestroy() argument
838 rsc->destroyWorkerThreadResources(); in rsi_ContextDestroy()
839 delete rsc; in rsi_ContextDestroy()
843 RsMessageToClientType rsi_ContextPeekMessage(Context *rsc, in rsi_ContextPeekMessage() argument
846 return rsc->peekMessageToClient(receiveLen, subID); in rsi_ContextPeekMessage()
849 RsMessageToClientType rsi_ContextGetMessage(Context *rsc, void * data, size_t data_length, in rsi_ContextGetMessage() argument
854 return rsc->getMessageToClient(data, receiveLen, subID, data_length); in rsi_ContextGetMessage()
857 void rsi_ContextInitToClient(Context *rsc) { in rsi_ContextInitToClient() argument
858 rsc->initToClient(); in rsi_ContextInitToClient()
861 void rsi_ContextDeinitToClient(Context *rsc) { in rsi_ContextDeinitToClient() argument
862 rsc->deinitToClient(); in rsi_ContextDeinitToClient()
865 void rsi_ContextSendMessage(Context *rsc, uint32_t id, const uint8_t *data, size_t len) { in rsi_ContextSendMessage() argument
866 rsc->sendMessageToClient(data, RS_MESSAGE_TO_CLIENT_USER, id, len, true); in rsi_ContextSendMessage()
871 void LF_ObjDestroy_handcode(const Context *rsc, RsAsyncVoidPtr objPtr) { in LF_ObjDestroy_handcode() argument
872 if (((Context *)rsc)->isSynchronous()) { in LF_ObjDestroy_handcode()
873 rsi_ObjDestroy((Context *)rsc, objPtr); in LF_ObjDestroy_handcode()
890 ThreadIO *io = &((Context *)rsc)->mIO; in LF_ObjDestroy_handcode()