Lines Matching refs:rsc

110     Context *rsc = RsdCpuReference::getTlsContext();
111 rsrAllocationSyncAll(rsc, (Allocation*)a.p, source);
115 Context *rsc = RsdCpuReference::getTlsContext();
116 rsrAllocationSyncAll(rsc, (Allocation*)a.p, RS_ALLOCATION_USAGE_SCRIPT);
127 Context *rsc = RsdCpuReference::getTlsContext();
128 rsrAllocationCopy1DRange(rsc, (Allocation*)dstAlloc.p, dstOff, dstMip, count,
139 Context *rsc = RsdCpuReference::getTlsContext();
140 rsrAllocationCopy2DRange(rsc, (Allocation*)dstAlloc.p,
148 Context *rsc = RsdCpuReference::getTlsContext();
149 rsrAllocationIoSend(rsc, (Allocation*)alloc.p);
154 Context *rsc = RsdCpuReference::getTlsContext();
155 rsrAllocationIoReceive(rsc, (Allocation*)alloc.p);
166 Context *rsc = RsdCpuReference::getTlsContext();
167 rsrAllocationCopy1DRange(rsc, (Allocation*)dstAlloc.p, dstOff, dstMip, count,
178 Context *rsc = RsdCpuReference::getTlsContext();
179 rsrAllocationCopy2DRange(rsc, (Allocation*)dstAlloc.p,
187 Context *rsc = RsdCpuReference::getTlsContext();
188 rsrAllocationIoSend(rsc, alloc);
193 Context *rsc = RsdCpuReference::getTlsContext();
194 rsrAllocationIoReceive(rsc, alloc);
206 Context *rsc = RsdCpuReference::getTlsContext();
207 rsrBindTexture(rsc, pf, slot, a);
211 Context *rsc = RsdCpuReference::getTlsContext();
212 rsrBindConstant(rsc, pv, slot, a);
216 Context *rsc = RsdCpuReference::getTlsContext();
217 rsrBindConstant(rsc, pf, slot, a);
221 Context *rsc = RsdCpuReference::getTlsContext();
222 rsrBindSampler(rsc, pf, slot, s);
226 Context *rsc = RsdCpuReference::getTlsContext();
227 rsrBindProgramStore(rsc, ps);
231 Context *rsc = RsdCpuReference::getTlsContext();
232 rsrBindProgramFragment(rsc, pf);
236 Context *rsc = RsdCpuReference::getTlsContext();
237 rsrBindProgramVertex(rsc, pv);
241 Context *rsc = RsdCpuReference::getTlsContext();
242 rsrBindProgramRaster(rsc, pr);
246 Context *rsc = RsdCpuReference::getTlsContext();
247 rsrBindFrameBufferObjectColorTarget(rsc, a, slot);
251 Context *rsc = RsdCpuReference::getTlsContext();
252 rsrBindFrameBufferObjectDepthTarget(rsc, a);
256 Context *rsc = RsdCpuReference::getTlsContext();
257 rsrClearFrameBufferObjectColorTarget(rsc, slot);
261 Context *rsc = RsdCpuReference::getTlsContext();
262 rsrClearFrameBufferObjectDepthTarget(rsc);
266 Context *rsc = RsdCpuReference::getTlsContext();
267 rsrClearFrameBufferObjectTargets(rsc);
276 Context *rsc = RsdCpuReference::getTlsContext();
277 rsrVpLoadProjectionMatrix(rsc, m);
281 Context *rsc = RsdCpuReference::getTlsContext();
282 rsrVpLoadModelMatrix(rsc, m);
286 Context *rsc = RsdCpuReference::getTlsContext();
287 rsrVpLoadTextureMatrix(rsc, m);
291 Context *rsc = RsdCpuReference::getTlsContext();
292 rsrPfConstantColor(rsc, pf, r, g, b, a);
296 Context *rsc = RsdCpuReference::getTlsContext();
297 rsrVpGetProjectionMatrix(rsc, m);
309 Context *rsc = RsdCpuReference::getTlsContext();
311 if (!rsc->setupCheck()) {
315 RsdHal *dc = (RsdHal *)rsc->mHal.drv;
316 if (!dc->gl.shaderCache->setup(rsc)) {
334 va.setup(rsc);
350 Context *rsc = RsdCpuReference::getTlsContext();
352 ObjectBaseRef<const ProgramVertex> tmp(rsc->getProgramVertex());
353 rsc->setProgramVertex(rsc->getDefaultProgramVertex());
354 //rsc->setupCheck();
358 float sh = rsc->getHeight();
364 rsc->setProgramVertex((ProgramVertex *)tmp.get());
372 Context *rsc = RsdCpuReference::getTlsContext();
373 rsdPathDraw(rsc, p);
377 Context *rsc = RsdCpuReference::getTlsContext();
378 rsrDrawMesh(rsc, m);
382 Context *rsc = RsdCpuReference::getTlsContext();
383 rsrDrawMeshPrimitive(rsc, m, primIndex);
387 Context *rsc = RsdCpuReference::getTlsContext();
388 rsrDrawMeshPrimitiveRange(rsc, m, primIndex, start, len);
394 Context *rsc = RsdCpuReference::getTlsContext();
395 rsrMeshComputeBoundingBox(rsc, m, minX, minY, minZ, maxX, maxY, maxZ);
406 Context *rsc = RsdCpuReference::getTlsContext();
407 rsrColor(rsc, r, g, b, a);
411 Context *rsc = RsdCpuReference::getTlsContext();
412 rsdGLFinish(rsc);
416 Context *rsc = RsdCpuReference::getTlsContext();
417 rsrPrepareClear(rsc);
418 rsdGLClearColor(rsc, r, g, b, a);
422 Context *rsc = RsdCpuReference::getTlsContext();
423 rsrPrepareClear(rsc);
424 rsdGLClearDepth(rsc, v);
428 Context *rsc = RsdCpuReference::getTlsContext();
429 return rsrGetWidth(rsc);
433 Context *rsc = RsdCpuReference::getTlsContext();
434 return rsrGetHeight(rsc);
438 Context *rsc = RsdCpuReference::getTlsContext();
439 rsrDrawTextAlloc(rsc, a, x, y);
443 Context *rsc = RsdCpuReference::getTlsContext();
444 rsrDrawText(rsc, text, x, y);
449 Context *rsc = RsdCpuReference::getTlsContext();
450 rsrMeasureTextAlloc(rsc, a, left, right, top, bottom);
455 Context *rsc = RsdCpuReference::getTlsContext();
456 rsrMeasureText(rsc, text, left, right, top, bottom);
460 Context *rsc = RsdCpuReference::getTlsContext();
461 rsrBindFont(rsc, f);
465 Context *rsc = RsdCpuReference::getTlsContext();
466 rsrFontColor(rsc, r, g, b, a);
476 Context *rsc = RsdCpuReference::getTlsContext();
477 rsrClearObject(rsc, dst);
483 Context *rsc = RsdCpuReference::getTlsContext();
484 rsrSetObject(rsc, dst, (ObjectBase*)src.p);
490 Context *rsc = RsdCpuReference::getTlsContext();
491 rsrSetObject(rsc, dst, (ObjectBase*)src->p);
496 Context *rsc = RsdCpuReference::getTlsContext();
497 return rsrIsObject(rsc, o);
502 Context *rsc = RsdCpuReference::getTlsContext();
503 return rsrIsObject(rsc, *o);
511 Context *rsc = RsdCpuReference::getTlsContext();
512 rsrSetObject(rsc, dst, src);
516 Context *rsc = RsdCpuReference::getTlsContext();
517 return rsrIsObject(rsc, o);
528 Context *rsc = RsdCpuReference::getTlsContext();
530 Allocation* alloc = rsdScriptGetAllocationForPointer(rsc, sc, ptr);
532 alloc->callUpdateCacheObject(rsc, &obj);
538 Context *rsc = RsdCpuReference::getTlsContext();
540 Allocation* alloc = rsdScriptGetAllocationForPointer(rsc, sc, ptr);
542 alloc->callUpdateCacheObject(rsc, &obj);
549 Context *rsc = RsdCpuReference::getTlsContext();
551 Allocation* alloc = rsdScriptGetAllocationForPointer(rsc, sc, ptr);
553 alloc->callUpdateCacheObject(rsc, &obj);
564 Context *rsc = RsdCpuReference::getTlsContext();
565 rsrForEach(rsc, (Script*)target.p, (Allocation*)in.p, (Allocation*)out.p, NULL, 0, NULL);
571 Context *rsc = RsdCpuReference::getTlsContext();
572 rsrForEach(rsc, (Script*)target->p, (Allocation*)in->p, (Allocation*)out->p, NULL, 0, NULL);
581 Context *rsc = RsdCpuReference::getTlsContext();
582 rsrForEach(rsc, (Script*)target.p, (Allocation*)in.p, (Allocation*)out.p, usr, 0, NULL);
589 Context *rsc = RsdCpuReference::getTlsContext();
590 rsrForEach(rsc, (Script*)target->p, (Allocation*)in->p, (Allocation*)out->p, usr, 0, NULL);
600 Context *rsc = RsdCpuReference::getTlsContext();
601 rsrForEach(rsc, (Script*)target.p, (Allocation*)in.p, (Allocation*)out.p, usr, 0, call);
609 Context *rsc = RsdCpuReference::getTlsContext();
610 rsrForEach(rsc, (Script*)target->p, (Allocation*)in->p, (Allocation*)out->p, usr, 0, call);
620 Context *rsc = RsdCpuReference::getTlsContext();
621 rsrForEach(rsc, (Script*)target.p, (Allocation*)in.p, (Allocation*)out.p, usr, usrLen, NULL);
629 Context *rsc = RsdCpuReference::getTlsContext();
630 rsrForEach(rsc, (Script*)target->p, (Allocation*)in->p, (Allocation*)out->p, usr, usrLen, NULL);
641 Context *rsc = RsdCpuReference::getTlsContext();
642 rsrForEach(rsc, (Script*)target.p, (Allocation*)in.p, (Allocation*)out.p, usr, usrLen, call);
651 Context *rsc = RsdCpuReference::getTlsContext();
652 rsrForEach(rsc, (Script*)target->p, (Allocation*)in->p, (Allocation*)out->p, usr, usrLen, call);
663 Context *rsc = RsdCpuReference::getTlsContext();
665 return rsrGetDt(rsc, sc);
670 Context *rsc = RsdCpuReference::getTlsContext();
671 return rsrTime(rsc, timer);
675 Context *rsc = RsdCpuReference::getTlsContext();
676 return rsrTime(rsc, (long*)timer);
681 Context *rsc = RsdCpuReference::getTlsContext();
682 return rsrLocalTime(rsc, local, timer);
686 Context *rsc = RsdCpuReference::getTlsContext();
687 return rsrUptimeMillis(rsc);
691 Context *rsc = RsdCpuReference::getTlsContext();
692 return rsrUptimeNanos(rsc);
700 Context *rsc = RsdCpuReference::getTlsContext();
701 return rsrToClient(rsc, cmdID, data, len);
705 Context *rsc = RsdCpuReference::getTlsContext();
706 return rsrToClient(rsc, cmdID, (const void *)NULL, 0);
710 Context *rsc = RsdCpuReference::getTlsContext();
711 return rsrToClientBlocking(rsc, cmdID, data, len);
715 Context *rsc = RsdCpuReference::getTlsContext();
716 return rsrToClientBlocking(rsc, cmdID, (const void *)NULL, 0);
721 Context *rsc = RsdCpuReference::getTlsContext();
728 rsc->setError(RS_ERROR_FATAL_DEBUG, buf);
735 rsc->setError(RS_ERROR_FATAL_DEBUG, buf);
741 rsc->setError(RS_ERROR_FATAL_DEBUG, buf);
752 Context *rsc = RsdCpuReference::getTlsContext();
759 rsc->setError(RS_ERROR_FATAL_DEBUG, buf);
765 rsc->setError(RS_ERROR_FATAL_DEBUG, buf);
772 rsc->setError(RS_ERROR_FATAL_DEBUG, buf);
778 rsc->setError(RS_ERROR_FATAL_DEBUG, buf);
790 Context *rsc = RsdCpuReference::getTlsContext();
797 rsc->setError(RS_ERROR_FATAL_DEBUG, buf);
803 rsc->setError(RS_ERROR_FATAL_DEBUG, buf);
809 rsc->setError(RS_ERROR_FATAL_DEBUG, buf);
816 rsc->setError(RS_ERROR_FATAL_DEBUG, buf);
822 rsc->setError(RS_ERROR_FATAL_DEBUG, buf);
1458 Context *rsc = RsdCpuReference::getTlsContext();
1459 rsrForEach(rsc, (Script*)target.p, (Allocation*)in.p, (Allocation*)out.p, NULL, 0, NULL);
1467 Context *rsc = RsdCpuReference::getTlsContext();
1468 rsrForEach(rsc, (Script*)target.p, (Allocation*)in.p, (Allocation*)out.p, usr, 0, call);
1476 Context *rsc = RsdCpuReference::getTlsContext();
1477 rsrForEach(rsc, (Script*)target.p, (Allocation*)in.p, (Allocation*)out.p, usr, usrLen, NULL);
1486 Context *rsc = RsdCpuReference::getTlsContext();
1487 rsrForEach(rsc, (Script*)target.p, (Allocation*)in.p, (Allocation*)out.p, usr, usrLen, call);
1491 Context *rsc = RsdCpuReference::getTlsContext();
1493 return rsdScriptGetAllocationForPointer(rsc, sc, ptr);
1572 Context *rsc = RsdCpuReference::getTlsContext();
1573 return rsrUptimeMillis(rsc);