Lines Matching refs:mRS
144 const void *typeID = RS::dispatch->AllocationGetType(mRS->getContext(), getID()); in updateFromNative()
146 sp<Type> t = new Type((void *)typeID, mRS); in updateFromNative()
162 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Source must be exactly one usage type."); in syncAll()
165 tryDispatch(mRS, RS::dispatch->AllocationSyncAll(mRS->getContext(), getIDSafe(), srcLocation)); in syncAll()
171 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Allocation does not support USAGE_SHARED."); in getPointer()
177 mRS->throwError(RS_ERROR_RUNTIME_ERROR, "Can't use getPointer on older APIs"); in getPointer()
181 p = RS::dispatch->AllocationGetPointer(mRS->getContext(), getIDSafe(), 0, in getPointer()
183 if (mRS->getError() != RS_SUCCESS) { in getPointer()
184 mRS->throwError(RS_ERROR_RUNTIME_ERROR, "Allocation lock failed"); in getPointer()
220 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Count must be >= 1."); in copy1DRangeFrom()
225 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Invalid copy specified"); in copy1DRangeFrom()
232 … tryDispatch(mRS, RS::dispatch->Allocation1DData(mRS->getContext(), getIDSafe(), off, mSelectedLOD, in copy1DRangeFrom()
236 … tryDispatch(mRS, RS::dispatch->Allocation1DData(mRS->getContext(), getIDSafe(), off, mSelectedLOD, in copy1DRangeFrom()
243 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Count must be >= 1."); in copy1DRangeTo()
248 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Invalid copy specified"); in copy1DRangeTo()
254 … tryDispatch(mRS, RS::dispatch->Allocation1DRead(mRS->getContext(), getIDSafe(), off, mSelectedLOD, in copy1DRangeTo()
259 … tryDispatch(mRS, RS::dispatch->Allocation1DRead(mRS->getContext(), getIDSafe(), off, mSelectedLOD, in copy1DRangeTo()
267 tryDispatch(mRS, RS::dispatch->AllocationCopy2DRange(mRS->getContext(), getIDSafe(), off, 0, in copy1DRangeFrom()
287 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Updated region larger than allocation."); in validate2DRange()
299 tryDispatch(mRS, RS::dispatch->Allocation2DData(mRS->getContext(), getIDSafe(), xoff, in copy2DRangeFrom()
305 tryDispatch(mRS, RS::dispatch->Allocation2DData(mRS->getContext(), getIDSafe(), xoff, in copy2DRangeFrom()
315 tryDispatch(mRS, RS::dispatch->AllocationCopy2DRange(mRS->getContext(), getIDSafe(), xoff, yoff, in copy2DRangeFrom()
327 tryDispatch(mRS, RS::dispatch->Allocation2DRead(mRS->getContext(), getIDSafe(), xoff, yoff, in copy2DRangeTo()
334 tryDispatch(mRS, RS::dispatch->Allocation2DRead(mRS->getContext(), getIDSafe(), xoff, yoff, in copy2DRangeTo()
344 tryDispatch(mRS, RS::dispatch->Allocation2DData(mRS->getContext(), getIDSafe(), xoff, yoff, in copy2DStridedFrom()
356 tryDispatch(mRS, RS::dispatch->Allocation2DRead(mRS->getContext(), getIDSafe(), xoff, yoff, in copy2DStridedTo()
371 mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Updated region larger than allocation."); in validate3DRange()
383 … tryDispatch(mRS, RS::dispatch->Allocation3DData(mRS->getContext(), getIDSafe(), xoff, yoff, zoff, in copy3DRangeFrom()
389 … tryDispatch(mRS, RS::dispatch->Allocation3DData(mRS->getContext(), getIDSafe(), xoff, yoff, zoff, in copy3DRangeFrom()
399 …tryDispatch(mRS, RS::dispatch->AllocationCopy3DRange(mRS->getContext(), getIDSafe(), xoff, yoff, z… in copy3DRangeFrom()
410 … tryDispatch(mRS, RS::dispatch->Allocation3DRead(mRS->getContext(), getIDSafe(), xoff, yoff, zoff, in copy3DRangeTo()
417 … tryDispatch(mRS, RS::dispatch->Allocation3DRead(mRS->getContext(), getIDSafe(), xoff, yoff, zoff, in copy3DRangeTo()
479 … mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Can only send buffer if IO_OUTPUT usage specified."); in ioSendOutput()
482 tryDispatch(mRS, RS::dispatch->AllocationIoSend(mRS->getContext(), getID())); in ioSendOutput()
489 … mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Can only get buffer if IO_INPUT usage specified."); in ioGetInput()
492 tryDispatch(mRS, RS::dispatch->AllocationIoReceive(mRS->getContext(), getID())); in ioGetInput()
501 … mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Can only get Surface if IO_INPUT usage specified."); in getSurface()
504 ANativeWindow *anw = (ANativeWindow *)RS::dispatch->AllocationGetSurface(mRS->getContext(), in getSurface()
512 … mRS->throwError(RS_ERROR_INVALID_PARAMETER, "Can only set Surface if IO_OUTPUT usage specified."); in setSurface()
515 tryDispatch(mRS, RS::dispatch->AllocationSetSurface(mRS->getContext(), getID(), in setSurface()