Lines Matching refs:alloc
268 getBilinearSample1D(const Allocation_t *alloc, float2 weights, in getBilinearSample1D() argument
272 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr; in getBilinearSample1D()
318 getBilinearSample2D(const Allocation_t *alloc, float w0, float w1, float w2, float w3, in getBilinearSample2D() argument
322 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr; in getBilinearSample2D()
323 size_t stride = alloc->mHal.drvState.lod[lod].stride; in getBilinearSample2D()
348 getNearestSample(const Allocation_t *alloc, uint32_t iPixel, rs_data_kind dk, in getNearestSample() argument
351 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr; in getNearestSample()
385 getNearestSample(const Allocation_t *alloc, uint2 iPixel, rs_data_kind dk, in getNearestSample() argument
388 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr; in getNearestSample()
389 size_t stride = alloc->mHal.drvState.lod[lod].stride; in getNearestSample()
421 sample_LOD_LinearPixel(const Allocation_t *alloc, in sample_LOD_LinearPixel() argument
426 int32_t sourceW = alloc->mHal.drvState.lod[lod].dimX; in sample_LOD_LinearPixel()
447 return getBilinearSample1D(alloc, weights, location, next, dk, dt, lod); in sample_LOD_LinearPixel()
451 sample_LOD_NearestPixel(const Allocation_t *alloc, in sample_LOD_NearestPixel() argument
456 int32_t sourceW = alloc->mHal.drvState.lod[lod].dimX; in sample_LOD_NearestPixel()
460 return getNearestSample(alloc, location, dk, dt, lod); in sample_LOD_NearestPixel()
464 sample_LOD_LinearPixel(const Allocation_t *alloc, in sample_LOD_LinearPixel() argument
470 int sourceW = alloc->mHal.drvState.lod[lod].dimX; in sample_LOD_LinearPixel()
471 int sourceH = alloc->mHal.drvState.lod[lod].dimY; in sample_LOD_LinearPixel()
505 return getBilinearSample2D(alloc, w0, w1, w2, w3, lx, ly, nx, ny, dk, dt, lod); in sample_LOD_LinearPixel()
510 sample_LOD_NearestPixel(const Allocation_t *alloc, in sample_LOD_NearestPixel() argument
515 int sourceW = alloc->mHal.drvState.lod[lod].dimX; in sample_LOD_NearestPixel()
516 int sourceH = alloc->mHal.drvState.lod[lod].dimY; in sample_LOD_NearestPixel()
526 return getNearestSample(alloc, location, dk, dt, lod); in sample_LOD_NearestPixel()
532 const Allocation_t *alloc = (const Allocation_t *)a.p; in rsSample() local
534 const Type_t *type = (Type_t *)alloc->mHal.state.type; in rsSample()
542 if (!(alloc->mHal.state.usageFlags & RS_ALLOCATION_USAGE_GRAPHICS_TEXTURE)) { in rsSample()
548 return sample_LOD_NearestPixel(alloc, dk, dt, wrapS, uv, 0); in rsSample()
550 return sample_LOD_LinearPixel(alloc, dk, dt, wrapS, uv, 0); in rsSample()
557 return sample_LOD_LinearPixel(alloc, dk, dt, wrapS, uv, nearestLOD); in rsSample()
566 float4 sample0 = sample_LOD_LinearPixel(alloc, dk, dt, wrapS, uv, lod0); in rsSample()
567 float4 sample1 = sample_LOD_LinearPixel(alloc, dk, dt, wrapS, uv, lod1); in rsSample()
572 return sample_LOD_NearestPixel(alloc, dk, dt, wrapS, uv, 0); in rsSample()
584 const Allocation_t *alloc = (const Allocation_t *)a.p; in rsSample() local
586 const Type_t *type = (Type_t *)alloc->mHal.state.type; in rsSample()
595 if (!(alloc->mHal.state.usageFlags & RS_ALLOCATION_USAGE_GRAPHICS_TEXTURE)) { in rsSample()
601 return sample_LOD_NearestPixel(alloc, dk, dt, wrapS, wrapT, uv, 0); in rsSample()
603 return sample_LOD_LinearPixel(alloc, dk, dt, wrapS, wrapT, uv, 0); in rsSample()
610 return sample_LOD_LinearPixel(alloc, dk, dt, wrapS, wrapT, uv, nearestLOD); in rsSample()
619 float4 sample0 = sample_LOD_LinearPixel(alloc, dk, dt, wrapS, wrapT, uv, lod0); in rsSample()
620 float4 sample1 = sample_LOD_LinearPixel(alloc, dk, dt, wrapS, wrapT, uv, lod1); in rsSample()
625 return sample_LOD_NearestPixel(alloc, dk, dt, wrapS, wrapT, uv, 0); in rsSample()
631 const Allocation_t *alloc = (const Allocation_t *)a.p; in rsSample() local
633 const Type_t *type = (Type_t *)alloc->mHal.state.type; in rsSample()
640 if (!(alloc->mHal.state.usageFlags & RS_ALLOCATION_USAGE_GRAPHICS_TEXTURE)) { in rsSample()
645 return sample_LOD_NearestPixel(alloc, dk, dt, wrapS, wrapT, uv, 0); in rsSample()
647 return sample_LOD_LinearPixel(alloc, dk, dt, wrapS, wrapT, uv, 0); in rsSample()