Home | History | Annotate | Download | only in driver

Lines Matching full:allocation

33 using android::renderscript::Allocation;
84 uint8_t *GetOffsetPtr(const android::renderscript::Allocation *alloc,
96 static void Update2DTexture(const Context *rsc, const Allocation *alloc, const void *ptr,
115 static void Upload2DTexture(const Context *rsc, const Allocation *alloc, bool isFirstUpload) {
157 static void UploadToTexture(const Context *rsc, const Allocation *alloc) {
195 static void AllocateRenderTarget(const Context *rsc, const Allocation *alloc) {
220 static void UploadToBufferObject(const Context *rsc, const Allocation *alloc) {
247 static size_t DeriveYUVLayout(int yuv, Allocation::Hal::DrvState *state) {
250 // Allocation::ioReceive. Return early and avoid clobberring any
296 static size_t AllocationBuildPointerTable(const Context *rsc, const Allocation *alloc,
308 size_t offsets[Allocation::MAX_LOD];
352 static size_t AllocationBuildPointerTable(const Context *rsc, const Allocation *alloc,
354 return AllocationBuildPointerTable(rsc, alloc, type, ptr, Allocation::kMinimumRSAlignment);
369 bool rsdAllocationInitStrided(const Context *rsc, Allocation *alloc, bool forceZero, size_t requiredAlignment) {
377 if ((requiredAlignment & (requiredAlignment-1)) != 0 || requiredAlignment < Allocation::kMinimumRSAlignment) {
388 // Allocation is allocated when the surface is created
405 // user-provided allocation
418 // validate that here, otherwise fall back to not use the user-backed allocation
420 ALOGV("User-backed allocation failed stride requirement, falling back to separate allocation");
484 ALOGE("pointer for allocation: %p", alloc);
485 ALOGE("pointer for allocation.drv: %p", &alloc->mHal.drv);
492 bool rsdAllocationInit(const Context *rsc, Allocation *alloc, bool forceZero) {
493 return rsdAllocationInitStrided(rsc, alloc, forceZero, Allocation::kMinimumRSAlignment);
496 void rsdAllocationAdapterOffset(const Context *rsc, const Allocation *alloc) {
500 const Allocation *base = alloc->mHal.state.baseAlloc;
519 bool rsdAllocationAdapterInit(const Context *rsc, Allocation *alloc) {
526 // We need to build an allocation that looks like a subset of the parent allocation
532 void rsdAllocationDestroy(const Context *rsc, Allocation *alloc) {
591 void rsdAllocationResize(const Context *rsc, const Allocation *alloc,
598 ALOGE("Resize cannot be called on a USAGE_SHARED allocation");
619 static void rsdAllocationSyncFromFBO(const Context *rsc, const Allocation *alloc) {
653 void rsdAllocationSyncAll(const Context *rsc, const Allocation *alloc,
660 "Attempting to sync allocation from render target, "
661 "for non-render target allocation");
690 // this particular Allocation
698 void rsdAllocationMarkDirty(const Context *rsc, const Allocation *alloc) {
704 static bool IoGetBuffer(const Context *rsc, Allocation *alloc, ANativeWindow *nw) {
731 void rsdAllocationSetSurface(const Context *rsc, Allocation *alloc, ANativeWindow *nw) {
773 void rsdAllocationIoSend(const Context *rsc, Allocation *alloc) {
809 void rsdAllocationIoReceive(const Context *rsc, Allocation *alloc) {
816 void rsdAllocationData1D(const Context *rsc, const Allocation *alloc,
825 // Skip the copy if we are the same allocation. This can arise from
836 void rsdAllocationData2D(const Context *rsc, const Allocation *alloc,
851 // Skip the copy if we are the same allocation. This can arise from
883 // When copying from an array to an Allocation, the src pointer
898 void rsdAllocationData3D(const Context *rsc, const Allocation *alloc,
917 // Skip the copy if we are the same allocation. This can arise from
937 void rsdAllocationRead1D(const Context *rsc, const Allocation *alloc,
943 // Skip the copy if we are the same allocation. This can arise from
949 void rsdAllocationRead2D(const Context *rsc, const Allocation *alloc,
962 // Skip the copy if we are the same allocation. This can arise from
978 void rsdAllocationRead3D(const Context *rsc, const Allocation *alloc,
994 // Skip the copy if we are the same allocation. This can arise from
1009 const android::renderscript::Allocation *alloc) {
1014 const android::renderscript::Allocation *alloc) {
1019 const android::renderscript::Allocation *dstAlloc,
1021 const android::renderscript::Allocation *srcAlloc,
1027 const android::renderscript::Allocation *dstAlloc,
1030 const android::renderscript::Allocation *srcAlloc,
1045 const android::renderscript::Allocation *dstAlloc,
1048 const android::renderscript::Allocation *srcAlloc,
1066 const android::renderscript::Allocation *dstAlloc,
1069 const android::renderscript::Allocation *srcAlloc,
1073 rsc->setError(RS_ERROR_FATAL_DRIVER, "Non-script allocation copies not "
1083 const android::renderscript::Allocation *dstAlloc,
1087 const android::renderscript::Allocation *srcAlloc,
1091 rsc->setError(RS_ERROR_FATAL_DRIVER, "Non-script allocation copies not "
1100 void rsdAllocationElementData(const Context *rsc, const Allocation *alloc,
1119 void rsdAllocationElementRead(const Context *rsc, const Allocation *alloc,
1132 static void mip565(const Allocation *alloc, int lod, RsAllocationCubemapFace face) {
1150 static void mip8888(const Allocation *alloc, int lod, RsAllocationCubemapFace face) {
1168 static void mip8(const Allocation *alloc, int lod, RsAllocationCubemapFace face) {
1186 void rsdAllocationGenerateMipmaps(const Context *rsc, const Allocation *alloc) {
1209 android::renderscript::Allocation *alloc)
1215 const Allocation *alloc,