Lines Matching refs:rsc

151 static bool failIfInKernel(Context *rsc, const char *funcName) {  in failIfInKernel()  argument
152 RsdHal *dc = (RsdHal *)rsc->mHal.drv; in failIfInKernel()
159 rsc->setError(RS_ERROR_FATAL_DRIVER, buf); in failIfInKernel()
171 Context *rsc = RsdCpuReference::getTlsContext(); in rsGetAllocation() local
173 Allocation* alloc = rsdScriptGetAllocationForPointer(rsc, sc, ptr); in rsGetAllocation()
175 alloc->callUpdateCacheObject(rsc, &obj); in rsGetAllocation()
180 Context *rsc = RsdCpuReference::getTlsContext(); in rsGetAllocation() local
182 Allocation* alloc = rsdScriptGetAllocationForPointer(rsc, sc, ptr); in rsGetAllocation()
189 alloc->callUpdateCacheObject(rsc, &obj); in rsGetAllocation()
195 Context *rsc = RsdCpuReference::getTlsContext(); in rsAllocationIoSend() local
196 if (failIfInKernel(rsc, "rsAllocationIoSend")) in rsAllocationIoSend()
198 rsrAllocationIoSend(rsc, (Allocation *)a.p); in rsAllocationIoSend()
202 Context *rsc = RsdCpuReference::getTlsContext(); in rsAllocationIoReceive() local
203 if (failIfInKernel(rsc, "rsAllocationIoReceive")) in rsAllocationIoReceive()
205 rsrAllocationIoReceive(rsc, (Allocation *)a.p); in rsAllocationIoReceive()
213 Context *rsc = RsdCpuReference::getTlsContext(); in rsAllocationCopy1DRange() local
214 if (failIfInKernel(rsc, "rsAllocationCopy1DRange")) in rsAllocationCopy1DRange()
216 rsrAllocationCopy1DRange(rsc, (Allocation *)dstAlloc.p, dstOff, dstMip, in rsAllocationCopy1DRange()
228 Context *rsc = RsdCpuReference::getTlsContext(); in rsAllocationCopy2DRange() local
229 if (failIfInKernel(rsc, "rsAllocationCopy2DRange")) in rsAllocationCopy2DRange()
231 rsrAllocationCopy2DRange(rsc, (Allocation *)dstAlloc.p, in rsAllocationCopy2DRange()
241 Context *rsc = RsdCpuReference::getTlsContext(); in CreateElement() local
246 Element *element = (Element *) rsrElementCreate(rsc, dt, dk, isNormalized, in CreateElement()
251 element->callUpdateCacheObject(rsc, &obj); in CreateElement()
267 Context *rsc = RsdCpuReference::getTlsContext(); in CreateType() local
322 Type *type = (Type *) rsrTypeCreate(rsc, element, dimX, dimY, dimZ, mipmaps, in CreateType()
326 type->callUpdateCacheObject(rsc, &obj); in CreateType()
340 Context *rsc = RsdCpuReference::getTlsContext(); in CreateAllocation() local
355 Allocation *alloc = (Allocation *) rsrAllocationCreateTyped(rsc, type, in CreateAllocation()
360 alloc->callUpdateCacheObject(rsc, &obj); in CreateAllocation()
447 Context *rsc = RsdCpuReference::getTlsContext(); \
448 rsrSetObject(rsc, reinterpret_cast<rs_object_base *>(dst), (ObjectBase*)src.p); \
471 Context *rsc = RsdCpuReference::getTlsContext(); in IS_CLEAR_SET_OBJ() local
478 rsc->setError(RS_ERROR_FATAL_DEBUG, buf); in IS_CLEAR_SET_OBJ()
484 rsc->setError(RS_ERROR_FATAL_DEBUG, buf); in IS_CLEAR_SET_OBJ()
490 rsc->setError(RS_ERROR_FATAL_DEBUG, buf); in IS_CLEAR_SET_OBJ()
497 rsc->setError(RS_ERROR_FATAL_DEBUG, buf); in IS_CLEAR_SET_OBJ()
503 rsc->setError(RS_ERROR_FATAL_DEBUG, buf); in IS_CLEAR_SET_OBJ()
705 Context *rsc = RsdCpuReference::getTlsContext(); in ELEMENT_AT_OVERLOADS() local
708 rsc->setError(RS_ERROR_BAD_SCRIPT, in ELEMENT_AT_OVERLOADS()
724 rsrForEach(rsc, s, slot, numInputs, numInputs > 0 ? inputs : nullptr, out, in ELEMENT_AT_OVERLOADS()
739 Context *rsc = RsdCpuReference::getTlsContext(); in rsForEach() local
740 rsrForEach(rsc, (Script *)script.p, 0, 1, (Allocation **)&in.p, in rsForEach()
748 Context *rsc = RsdCpuReference::getTlsContext(); in rsForEach() local
749 rsrForEach(rsc, (Script *)script.p, 0, 1, (Allocation **)&in.p, (Allocation *)out.p, in rsForEach()
756 Context *rsc = RsdCpuReference::getTlsContext(); in rsForEach() local
757 rsrForEach(rsc, (Script *)script.p, 0, 1, (Allocation **)&in.p, (Allocation *)out.p, in rsForEach()
768 Context *rsc = RsdCpuReference::getTlsContext(); in rsForEach() local
769 rsrForEach(rsc, (Script *)script.p, 0, 1, (Allocation **)&in.p, (Allocation *)out.p, in rsForEach()
779 Context *rsc = RsdCpuReference::getTlsContext(); in rsForEach() local
780 rsrForEach(rsc, (Script *)script.p, 0, 1, (Allocation **)&in.p, (Allocation *)out.p, in rsForEach()
789 Context *rsc = RsdCpuReference::getTlsContext(); in rsSendToClient() local
790 return rsrToClient(rsc, cmdID, (const void *)nullptr, 0); in rsSendToClient()
794 Context *rsc = RsdCpuReference::getTlsContext(); in rsSendToClient() local
795 return rsrToClient(rsc, cmdID, data, len); in rsSendToClient()
799 Context *rsc = RsdCpuReference::getTlsContext(); in rsSendToClientBlocking() local
800 return rsrToClientBlocking(rsc, cmdID, (const void *)nullptr, 0); in rsSendToClientBlocking()
804 Context *rsc = RsdCpuReference::getTlsContext(); in rsSendToClientBlocking() local
805 return rsrToClientBlocking(rsc, cmdID, data, len); in rsSendToClientBlocking()
820 Context *rsc = RsdCpuReference::getTlsContext(); local
821 return rsrTime(rsc, (time_t *)timer);
829 Context *rsc = RsdCpuReference::getTlsContext(); local
830 return (rs_tm*)rsrLocalTime(rsc, (tm*)local, (time_t *)timer);
834 Context *rsc = RsdCpuReference::getTlsContext(); local
835 return rsrUptimeMillis(rsc);
839 Context *rsc = RsdCpuReference::getTlsContext(); local
840 return rsrUptimeNanos(rsc);
844 Context *rsc = RsdCpuReference::getTlsContext(); local
846 return rsrGetDt(rsc, sc);
857 Context *rsc = RsdCpuReference::getTlsContext(); local
859 if (!rsc->setupCheck()) {
863 RsdHal *dc = (RsdHal *)rsc->mHal.drv;
864 if (!dc->gl.shaderCache->setup(rsc)) {
882 va.setup(rsc);
898 Context *rsc = RsdCpuReference::getTlsContext(); local
900 ObjectBaseRef<const ProgramVertex> tmp(rsc->getProgramVertex());
901 rsc->setProgramVertex(rsc->getDefaultProgramVertex());
906 float sh = rsc->getHeight();
912 rsc->setProgramVertex((ProgramVertex *)tmp.get());
916 Context *rsc = RsdCpuReference::getTlsContext(); local
917 rsrAllocationSyncAll(rsc, (Allocation *)a.p, RS_ALLOCATION_USAGE_SCRIPT);
921 Context *rsc = RsdCpuReference::getTlsContext(); local
922 rsrAllocationSyncAll(rsc, (Allocation *)a.p, RS_ALLOCATION_USAGE_SCRIPT);
927 Context *rsc = RsdCpuReference::getTlsContext(); local
928 rsrAllocationSyncAll(rsc, (Allocation *)a.p, (RsAllocationUsageType)usage);
934 Context *rsc = RsdCpuReference::getTlsContext(); local
935 rsrAllocationSyncAll(rsc, (Allocation *)a.p, (RsAllocationUsageType)source.val);
939 Context *rsc = RsdCpuReference::getTlsContext(); local
940 rsrBindProgramFragment(rsc, (ProgramFragment *)pf.p);
944 Context *rsc = RsdCpuReference::getTlsContext(); local
945 rsrBindProgramStore(rsc, (ProgramStore *)ps.p);
949 Context *rsc = RsdCpuReference::getTlsContext(); local
950 rsrBindProgramVertex(rsc, (ProgramVertex *)pv.p);
954 Context *rsc = RsdCpuReference::getTlsContext(); local
955 rsrBindProgramRaster(rsc, (ProgramRaster *)pr.p);
960 Context *rsc = RsdCpuReference::getTlsContext(); local
961 rsrBindSampler(rsc, (ProgramFragment *)pf.p, slot, (Sampler *)s.p);
966 Context *rsc = RsdCpuReference::getTlsContext(); local
967 rsrBindTexture(rsc, (ProgramFragment *)pf.p, slot, (Allocation *)a.p);
972 Context *rsc = RsdCpuReference::getTlsContext(); local
973 rsrBindConstant(rsc, (ProgramFragment *)pf.p, slot, (Allocation *)a.p);
978 Context *rsc = RsdCpuReference::getTlsContext(); local
979 rsrBindConstant(rsc, (ProgramVertex *)pv.p, slot, (Allocation *)a.p);
983 Context *rsc = RsdCpuReference::getTlsContext(); local
984 rsrVpLoadProjectionMatrix(rsc, (const rsc_Matrix *)m);
988 Context *rsc = RsdCpuReference::getTlsContext(); local
989 rsrVpLoadModelMatrix(rsc, (const rsc_Matrix *)m);
993 Context *rsc = RsdCpuReference::getTlsContext(); local
994 rsrVpLoadTextureMatrix(rsc, (const rsc_Matrix *)m);
998 Context *rsc = RsdCpuReference::getTlsContext(); local
999 rsrVpGetProjectionMatrix(rsc, (rsc_Matrix *)m);
1004 Context *rsc = RsdCpuReference::getTlsContext(); local
1005 rsrPfConstantColor(rsc, (ProgramFragment *)pf.p, r, g, b, a);
1009 Context *rsc = RsdCpuReference::getTlsContext(); local
1010 return rsrGetWidth(rsc);
1014 Context *rsc = RsdCpuReference::getTlsContext(); local
1015 return rsrGetHeight(rsc);
1050 Context *rsc = RsdCpuReference::getTlsContext(); local
1051 rsrDrawMesh(rsc, (Mesh *)ism.p);
1055 Context *rsc = RsdCpuReference::getTlsContext(); local
1056 rsrDrawMeshPrimitive(rsc, (Mesh *)ism.p, primitiveIndex);
1060 Context *rsc = RsdCpuReference::getTlsContext(); local
1061 rsrDrawMeshPrimitiveRange(rsc, (Mesh *)ism.p, primitiveIndex, start, len);
1067 Context *rsc = RsdCpuReference::getTlsContext(); local
1068 rsrMeshComputeBoundingBox(rsc, (Mesh *)mesh.p, minX, minY, minZ, maxX, maxY, maxZ);
1072 Context *rsc = RsdCpuReference::getTlsContext(); local
1073 rsrPrepareClear(rsc);
1074 rsdGLClearColor(rsc, r, g, b, a);
1078 Context *rsc = RsdCpuReference::getTlsContext(); local
1079 rsrPrepareClear(rsc);
1080 rsdGLClearDepth(rsc, value);
1084 Context *rsc = RsdCpuReference::getTlsContext(); local
1085 rsrDrawText(rsc, text, x, y);
1089 Context *rsc = RsdCpuReference::getTlsContext(); local
1090 rsrDrawTextAlloc(rsc, (Allocation *)a.p, x, y);
1095 Context *rsc = RsdCpuReference::getTlsContext(); local
1096 rsrMeasureText(rsc, text, left, right, top, bottom);
1101 Context *rsc = RsdCpuReference::getTlsContext(); local
1102 rsrMeasureTextAlloc(rsc, (Allocation *)a.p, left, right, top, bottom);
1106 Context *rsc = RsdCpuReference::getTlsContext(); local
1107 rsrBindFont(rsc, (Font *)font.p);
1111 Context *rsc = RsdCpuReference::getTlsContext(); local
1112 rsrFontColor(rsc, r, g, b, a);
1116 Context *rsc = RsdCpuReference::getTlsContext(); local
1117 rsrBindFrameBufferObjectColorTarget(rsc, (Allocation *)a.p, slot);
1121 Context *rsc = RsdCpuReference::getTlsContext(); local
1122 rsrBindFrameBufferObjectDepthTarget(rsc, (Allocation *)a.p);
1126 Context *rsc = RsdCpuReference::getTlsContext(); local
1127 rsrClearFrameBufferObjectColorTarget(rsc, slot);
1131 Context *rsc = RsdCpuReference::getTlsContext(); local
1132 rsrClearFrameBufferObjectDepthTarget(rsc);
1136 Context *rsc = RsdCpuReference::getTlsContext(); local
1137 rsrClearFrameBufferObjectTargets(rsc);
1141 Context *rsc = RsdCpuReference::getTlsContext(); local
1142 rsrColor(rsc, r, g, b, a);
1146 Context *rsc = RsdCpuReference::getTlsContext(); local
1147 rsdGLFinish(rsc);