Home
last modified time | relevance | path

Searched refs:vecSize (Results 1 – 23 of 23) sorted by relevance

/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
DUT_single_source_alloc.java70 for (int vecSize = 1; vecSize <= 4; vecSize++) { in run()
73 s.invoke_CreateAndTestAlloc(dataType.Value(), vecSize); in run() local
Dsingle_source_alloc.rscript85 // vecSize, gAlloc, val, x, y, z
100 switch (vecSize) { \
129 if (vecSize == 1) rsForEach(verify_##CT, gAlloc, gAlloc); \
130 else if (vecSize == 2) rsForEach(verify_##CT##2, gAlloc, gAlloc); \
131 else if (vecSize == 3) rsForEach(verify_##CT##3, gAlloc, gAlloc); \
132 else if (vecSize == 4) rsForEach(verify_##CT##4, gAlloc, gAlloc); \
135 void CreateAndTestAlloc(int dataType, int vecSize) {
152 if (vecSize == 1)
155 element = rsCreateVectorElement((rs_data_type) dt, vecSize);
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
DUT_single_source_alloc.java68 for (int vecSize = 1; vecSize <= 4; vecSize++) { in run()
71 s.invoke_CreateAndTestAlloc(dataType.Value(), vecSize); in run() local
Dsingle_source_alloc.rscript83 // vecSize, gAlloc, val, x, y, z
98 switch (vecSize) { \
127 if (vecSize == 1) rsForEach(verify_##CT, gAlloc, gAlloc); \
128 else if (vecSize == 2) rsForEach(verify_##CT##2, gAlloc, gAlloc); \
129 else if (vecSize == 3) rsForEach(verify_##CT##3, gAlloc, gAlloc); \
130 else if (vecSize == 4) rsForEach(verify_##CT##4, gAlloc, gAlloc); \
133 void CreateAndTestAlloc(int dataType, int vecSize) {
150 if (vecSize == 1)
153 element = rsCreateVectorElement((rs_data_type) dt, vecSize);
/frameworks/rs/
DrsComponent.cpp29 void Component::set(RsDataType dt, RsDataKind dk, bool norm, uint32_t vecSize) { in set() argument
33 mVectorSize = vecSize; in set()
34 rsAssert(vecSize <= 4); in set()
DrsElement.h109 uint32_t vecSize);
120 uint32_t vecSize) { in create() argument
121 ObjectBaseRef<const Element> elem = createRef(rsc, dt, dk, isNorm, vecSize); in create()
DrsElement.cpp231 bool isNorm, uint32_t vecSize) { in createRef() argument
241 (ee->getComponent().getVectorSize() == vecSize)) { in createRef()
259 e->mComponent.set(dt, dk, isNorm, vecSize); in createRef()
416 uint32_t vecSize) { in rsi_ElementCreate() argument
417 return (RsElement)Element::create(rsc, dt, dk, norm, vecSize); in rsi_ElementCreate()
DrsComponent.h34 void set(RsDataType dt, RsDataKind dk, bool norm, uint32_t vecSize=1);
DrsScriptC_Lib.cpp335 bool norm, uint32_t vecSize) { in rsrElementCreate() argument
336 return rsi_ElementCreate(rsc, dt, dk, norm, vecSize); in rsrElementCreate()
DrsRuntime.h163 bool norm, uint32_t vecSize);
DrsHidlAdaptation.cpp513 uint32_t vecSize) in ElementCreate() argument
518 vecSize); in ElementCreate()
/frameworks/rs/tests/java_api/SSHealingBrush/src/rs/example/android/com/healingbrush/
Dfind_region.rscript22 static rs_allocation createVectorAllocation(rs_data_type dt, int vecSize,
27 if (vecSize == 1)
30 element = rsCreateVectorElement(dt, vecSize);
/frameworks/rs/driver/
DrsdRuntimeStubs.cpp240 uint32_t vecSize) { in CreateElement() argument
247 vecSize); in CreateElement()
380 uint32_t vecSize) { in rsCreateElement() argument
385 vecSize); in rsCreateElement()
411 uint32_t vecSize) { in rsCreateElement() argument
414 vecSize); in rsCreateElement()
469 static void * ElementAt(Allocation *a, RsDataType dt, uint32_t vecSize, in IS_CLEAR_SET_OBJ()
494 if (vecSize > 0) { in IS_CLEAR_SET_OBJ()
495 if (vecSize != e->getVectorSize()) { in IS_CLEAR_SET_OBJ()
496 …snprintf(buf, sizeof(buf), "Vector size mismatch for ElementAt %i of %i", vecSize, e->getVectorSiz… in IS_CLEAR_SET_OBJ()
/frameworks/compile/slang/
Dslang_rs_reflection.cpp1262 if (InTypeData.vecSize > 1) { in getReduceInputStrings()
1263 TypeString = InTypeData.type->s_name + std::to_string(InTypeData.vecSize) + " "; in getReduceInputStrings()
1333 (ResultTypeData.vecSize > 1 && !ResultTypeData.type->rs_java_vector_prefix)) { in genExportReduceArrayVariant()
1377 (InTypeData.vecSize > 1 && !InTypeData.type->rs_java_vector_prefix)) { in genExportReduceArrayVariant()
1383 if (InTypeData.vecSize > 1) in genExportReduceArrayVariant()
1384 InputComment += (", flattened " + std::to_string(InTypeData.vecSize) + "-vectors"); in genExportReduceArrayVariant()
1408 const uint32_t VecSize = InsTypeData[InIdx].vecSize; in genExportReduceArrayVariant()
1644 if (TypeData.vecSize == 1) { // result type is non-vector in genExportReduceResultType()
1689 const unsigned VectorElementCount = TypeData.vecSize; in genExportReduceResultType()
Dslang_rs_export_type.h179 uint32_t vecSize; // number of elements; one if not a vector member
Dslang_rs_export_type.cpp1649 rtd->vecSize = 1; in convertToRTD()
1667 rtd->vecSize = EVT->getNumElement(); in convertToRTD()
/frameworks/rs/support/java/src/androidx/renderscript/
DElement.java775 int vecSize = 1; in createUser() local
776 long id = rs.nElementCreate(dt.mID, dk.mID, norm, vecSize); in createUser()
777 return new Element(id, rs, dt, dk, norm, vecSize); in createUser()
DRenderScript.java353 native long rsnElementCreate(long con, long type, int kind, boolean norm, int vecSize); in rsnElementCreate() argument
354 synchronized long nElementCreate(long type, int kind, boolean norm, int vecSize) { in nElementCreate() argument
356 return rsnElementCreate(mContext, type, kind, norm, vecSize); in nElementCreate()
1029 native long rsnIncElementCreate(long con, long type, int kind, boolean norm, int vecSize); in rsnIncElementCreate() argument
1030 synchronized long nIncElementCreate(long type, int kind, boolean norm, int vecSize) { in nIncElementCreate() argument
1032 return rsnIncElementCreate(mIncCon, type, kind, norm, vecSize); in nIncElementCreate()
/frameworks/rs/cpu_ref/
DrsCpuIntrinsicBLAS.cpp144 static void walk_tiled_gemm(Func blasFunc, T_param alpha, T_param beta, int vecSize, in walk_tiled_gemm() argument
161 initABC(ain, sizeof(T_data) * vecSize, &A, &B, &C, &lda, &ldb, &ldc); in walk_tiled_gemm()
185 (T_data *)A + mStart * mStride * vecSize, lda, in walk_tiled_gemm()
186 (T_data *)B + nStart * nStride * vecSize, ldb, beta, in walk_tiled_gemm()
187 (T_data *)C + (mStart * ldc + nStart) * vecSize, ldc); in walk_tiled_gemm()
/frameworks/base/rs/java/android/renderscript/
DElement.java1155 int vecSize = 1; in createUser() local
1156 long id = rs.nElementCreate(dt.mID, dk.mID, norm, vecSize); in createUser()
1157 return new Element(id, rs, dt, dk, norm, vecSize); in createUser()
DRenderScript.java412 native long rsnElementCreate(long con, long type, int kind, boolean norm, int vecSize); in rsnElementCreate() argument
413 synchronized long nElementCreate(long type, int kind, boolean norm, int vecSize) { in nElementCreate() argument
415 return rsnElementCreate(mContext, type, kind, norm, vecSize); in nElementCreate()
/frameworks/rs/script_api/
Drs_allocation_create.spec71 arg: uint32_t vecSize
/frameworks/rs/driver/runtime/
Drs_allocation.c414 int32_t dt, int32_t dk, bool isNormalized, uint32_t vecSize);