Home
last modified time | relevance | path

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

/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/
DUT_single_source_alloc.java58 for (int vecSize = 1; vecSize <= 4; vecSize ++) { in run()
61 s.invoke_CreateAndTestAlloc(dataType, vecSize); in run()
Dsingle_source_alloc.rs80 switch (vecSize) { \
109 if (vecSize == 1) rsForEach(verify_##CT, gAlloc, gAlloc); \
110 else if (vecSize == 2) rsForEach(verify_##CT##2, gAlloc, gAlloc); \
111 else if (vecSize == 3) rsForEach(verify_##CT##3, gAlloc, gAlloc); \
112 else if (vecSize == 4) rsForEach(verify_##CT##4, gAlloc, gAlloc); \
115 void CreateAndTestAlloc(int dataType, int vecSize) {
132 if (vecSize == 1)
135 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.h107 uint32_t vecSize);
118 uint32_t vecSize) { in create() argument
119 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()
419 uint32_t vecSize) { in rsi_ElementCreate() argument
420 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.cpp280 bool norm, uint32_t vecSize) { in rsrElementCreate() argument
281 return rsi_ElementCreate(rsc, dt, dk, norm, vecSize); in rsrElementCreate()
DrsRuntime.h167 bool norm, uint32_t vecSize);
/frameworks/rs/driver/
DrsdRuntimeStubs.cpp224 uint32_t vecSize) { in CreateElement() argument
231 vecSize); in CreateElement()
364 uint32_t vecSize) { in rsCreateElement() argument
369 vecSize); in rsCreateElement()
395 uint32_t vecSize) { in rsCreateElement() argument
398 vecSize); in rsCreateElement()
452 static void * ElementAt(Allocation *a, RsDataType dt, uint32_t vecSize, in IS_CLEAR_SET_OBJ()
477 if (vecSize > 0) { in IS_CLEAR_SET_OBJ()
478 if (vecSize != e->getVectorSize()) { in IS_CLEAR_SET_OBJ()
479 …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.cpp1066 if (InTypeData.vecSize > 1) { in getReduceInputStrings()
1067 TypeString = InTypeData.type->s_name + std::to_string(InTypeData.vecSize) + " "; in getReduceInputStrings()
1128 (ResultTypeData.vecSize > 1 && !ResultTypeData.type->rs_java_vector_prefix)) { in genExportReduceArrayVariant()
1172 (InTypeData.vecSize > 1 && !InTypeData.type->rs_java_vector_prefix)) { in genExportReduceArrayVariant()
1178 if (InTypeData.vecSize > 1) in genExportReduceArrayVariant()
1179 InputComment += (", flattened " + std::to_string(InTypeData.vecSize) + "-vectors"); in genExportReduceArrayVariant()
1203 const uint32_t VecSize = InsTypeData[InIdx].vecSize; in genExportReduceArrayVariant()
1439 if (TypeData.vecSize == 1) { // result type is non-vector in genExportReduceResultType()
1484 const unsigned VectorElementCount = TypeData.vecSize; in genExportReduceResultType()
Dslang_rs_export_type.h178 uint32_t vecSize; // number of elements; one if not a vector member
Dslang_rs_export_type.cpp1596 rtd->vecSize = 1; in convertToRTD()
1614 rtd->vecSize = EVT->getNumElement(); in convertToRTD()
/frameworks/support/v8/renderscript/java/src/android/support/v8/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.java341 native long rsnElementCreate(long con, long type, int kind, boolean norm, int vecSize); in rsnElementCreate() argument
342 synchronized long nElementCreate(long type, int kind, boolean norm, int vecSize) { in nElementCreate() argument
344 return rsnElementCreate(mContext, type, kind, norm, vecSize); in nElementCreate()
1017 native long rsnIncElementCreate(long con, long type, int kind, boolean norm, int vecSize); in rsnIncElementCreate() argument
1018 synchronized long nIncElementCreate(long type, int kind, boolean norm, int vecSize) { in nIncElementCreate() argument
1020 return rsnIncElementCreate(mIncCon, type, kind, norm, vecSize); in nIncElementCreate()
/frameworks/base/rs/java/android/renderscript/
DElement.java1154 int vecSize = 1; in createUser() local
1155 long id = rs.nElementCreate(dt.mID, dk.mID, norm, vecSize); in createUser()
1156 return new Element(id, rs, dt, dk, norm, vecSize); in createUser()
DRenderScript.java408 native long rsnElementCreate(long con, long type, int kind, boolean norm, int vecSize); in rsnElementCreate() argument
409 synchronized long nElementCreate(long type, int kind, boolean norm, int vecSize) { in nElementCreate() argument
411 return rsnElementCreate(mContext, type, kind, norm, vecSize); in nElementCreate()
/frameworks/rs/api/
Drs_allocation_create.spec71 arg: uint32_t vecSize
/frameworks/rs/driver/runtime/
Drs_allocation.c500 int32_t dt, int32_t dk, bool isNormalized, uint32_t vecSize);