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