/frameworks/rs/driver/ |
D | rsdShaderCache.cpp | 46 for (uint32_t ct=0; ct < prog->getUniformCount(); ct++) { in updateUniformArrayData() local 47 if (data[ct].slot >= 0 && data[ct].arraySize > 1) { in updateUniformArrayData() 50 if (prog->getUniformName(ct) == uniformList[ui]->name) { in updateUniformArrayData() 51 data[ct].arraySize = (uint32_t)uniformList[ui]->arraySize; in updateUniformArrayData() 59 prog->getUniformName(ct).c_str(), data[ct].slot, in updateUniformArrayData() 60 data[ct].arraySize); in updateUniformArrayData() 67 for (uint32_t ct=0; ct < prog->getUniformCount(); ct++) { in populateUniformData() local 68 data[ct].slot = glGetUniformLocation(linkedID, in populateUniformData() 69 prog->getUniformName(ct).c_str()); in populateUniformData() 70 data[ct].arraySize = prog->getUniformArraySize(ct); in populateUniformData() [all …]
|
D | rsdVertexArray.cpp | 90 for (uint32_t ct=1; ct < maxAttrs; ct++) { in setup() local 91 if(state->mAttrsEnabled[ct]) { in setup() 92 glDisableVertexAttribArray(ct); in setup() 93 state->mAttrsEnabled[ct] = false; in setup() 98 for (uint32_t ct=0; ct < mCount; ct++) { in setup() local 99 int32_t slot = sc->vtxAttribSlot(mAttribs[ct].name); in setup() 101 logAttrib(ct, slot); in setup() 108 glBindBuffer(GL_ARRAY_BUFFER, mAttribs[ct].buffer); in setup() 110 mAttribs[ct].size, in setup() 111 mAttribs[ct].type, in setup() [all …]
|
D | rsdShader.cpp | 85 for (uint32_t ct = 0; ct < mRSProgram->mHal.state.texturesCount; ct ++) { in getExistingState() local 87 if (mRSProgram->mHal.state.textureTargets[ct] == RS_TEXTURE_2D) { in getExistingState() 88 Allocation *a = mRSProgram->mHal.state.textures[ct]; in getExistingState() 97 if (texType != returnKey->mTextureTargets[ct]) { in getExistingState() 125 for (uint32_t ct=0; ct < mRSProgram->mHal.state.inputElementsCount; ct++) { in init() local 126 initAddUserElement(mRSProgram->mHal.state.inputElements[ct], mAttribNames, in init() 129 for (uint32_t ct=0; ct < mRSProgram->mHal.state.constantsCount; ct++) { in init() local 130 initAddUserElement(mRSProgram->mHal.state.constantTypes[ct]->getElement(), in init() 135 for (uint32_t ct=0; ct < mRSProgram->mHal.state.texturesCount; ct++) { in init() local 137 mUniformNames[uniformCount].append(textureNames[ct], textureNamesLength[ct]); in init() [all …]
|
D | rsdMeshObj.cpp | 81 for (uint32_t ct=0; ct < mRSMesh->mHal.state.vertexBuffersCount; ct++) { in init() local 82 const Element *elem = mRSMesh->mHal.state.vertexBuffers[ct]->getType()->getElement(); in init() 83 for (uint32_t ct=0; ct < elem->mHal.state.fieldsCount; ct++) { in init() local 84 if (isValidGLComponent(elem, ct)) { in init() 104 for (uint32_t ct=0; ct < mRSMesh->mHal.state.vertexBuffersCount; ct++) { in init() local 105 const Element *elem = mRSMesh->mHal.state.vertexBuffers[ct]->getType()->getElement(); in init() 124 mAttribAllocationIndex[userNum] = ct; in init() 139 for (uint32_t ct=0; ct < mRSMesh->mHal.state.vertexBuffersCount; ct++) { in renderPrimitiveRange() local 140 const Allocation *alloc = mRSMesh->mHal.state.vertexBuffers[ct]; in renderPrimitiveRange() 148 for (uint32_t ct=0; ct < mAttribCount; ct++) { in renderPrimitiveRange() local [all …]
|
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
D | UT_copy_test.java | 38 for (int ct = 0; ct < f1.length; ct++) { in testFloat2() 39 f1[ct] = (float) ct; in testFloat2() 46 for (int ct = 0; ct < f1.length; ct++) { in testFloat2() 47 if (f1[ct] != f2[ct]) { in testFloat2() 49 Log.v("RS Test", "Compare failed at " + ct + ", " + f1[ct] + ", " + f2[ct]); in testFloat2() 62 for (int ct = 0; ct < f1.length; ct++) { in testFloat3() 63 f1[ct] = (float) ct; in testFloat3() 70 for (int ct = 0; ct < f1.length; ct++) { in testFloat3() 71 if ((f1[ct] != f2[ct]) && ((ct & 3) != 3)) { in testFloat3() 73 Log.v("RS Test", "Compare failed at " + ct + ", " + f1[ct] + ", " + f2[ct]); in testFloat3() [all …]
|
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/ |
D | UT_copy_test.java | 40 for (int ct = 0; ct < f1.length; ct++) { in testFloat2() 41 f1[ct] = (float) ct; in testFloat2() 48 for (int ct = 0; ct < f1.length; ct++) { in testFloat2() 49 if (f1[ct] != f2[ct]) { in testFloat2() 51 Log.v("RS Test", "Compare failed at " + ct + ", " + f1[ct] + ", " + f2[ct]); in testFloat2() 64 for (int ct = 0; ct < f1.length; ct++) { in testFloat3() 65 f1[ct] = (float) ct; in testFloat3() 72 for (int ct = 0; ct < f1.length; ct++) { in testFloat3() 73 if ((f1[ct] != f2[ct]) && ((ct & 3) != 3)) { in testFloat3() 75 Log.v("RS Test", "Compare failed at " + ct + ", " + f1[ct] + ", " + f2[ct]); in testFloat3() [all …]
|
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/ |
D | UT_copy_test.java | 39 for (int ct=0; ct < f1.length; ct++) { in testFloat2() 40 f1[ct] = (float)ct; in testFloat2() 47 for (int ct=0; ct < f1.length; ct++) { in testFloat2() 48 if (f1[ct] != f2[ct]) { in testFloat2() 50 Log.v("RS Test", "Compare failed at " + ct + ", " + f1[ct] + ", " + f2[ct]); in testFloat2() 63 for (int ct=0; ct < f1.length; ct++) { in testFloat3() 64 f1[ct] = (float)ct; in testFloat3() 71 for (int ct=0; ct < f1.length; ct++) { in testFloat3() 72 if ((f1[ct] != f2[ct]) && ((ct&3) != 3)) { in testFloat3() 74 Log.v("RS Test", "Compare failed at " + ct + ", " + f1[ct] + ", " + f2[ct]); in testFloat3() [all …]
|
D | fp_mad.rscript | 12 for (int ct=0; ct < 1000 * (1000 / 80); ct++) { 35 for (int ct=0; ct < 1000 * (1000 / 20); ct++) { 58 for (int ct=0; ct < 1000 * 10; ct++) { 72 for (int ct=0; ct < 1000 * 10 / 4; ct++) { 86 for (int ct=0; ct < 1000 * 10; ct++) { 100 for (int ct=0; ct < 1000 * 100; ct++) { 111 for (int ct=0; ct < 1000 * 100; ct++) { 126 for (int ct=0; ct < 1000 * 100 /4; ct++) {
|
/frameworks/rs/ |
D | rsElement.cpp | 45 for (uint32_t ct = 0; ct < elements.size(); ct++) { in preDestroy() local 46 if (elements[ct] == this) { in preDestroy() 47 elements.erase(elements.begin() + ct); in preDestroy() 77 for (size_t ct=0; ct < mFieldCount; ct++) { in getSizeBits() local 78 total += mFields[ct].e->mBits * mFields[ct].arraySize; in getSizeBits() 89 for (size_t ct=0; ct < mFieldCount; ct++) { in getSizeBitsUnpadded() local 90 total += mFields[ct].e->mBitsUnpadded * mFields[ct].arraySize; in getSizeBitsUnpadded() 99 for (uint32_t ct = 0; ct < mFieldCount; ct++) { in dumpLOGV() local 100 ALOGV("%s Element field index: %u ------------------", prefix, ct); in dumpLOGV() 102 prefix, mFields[ct].name, mFields[ct].offsetBits, mFields[ct].arraySize); in dumpLOGV() [all …]
|
D | rsScriptGroup.cpp | 37 for (size_t ct=0; ct < mLinks.size(); ct++) { in ~ScriptGroup() local 38 delete mLinks[ct]; in ~ScriptGroup() 62 for (size_t ct=0; ct < mNodes.size(); ct++) { in findNode() local 63 Node *n = mNodes[ct]; in findNode() 81 for (size_t ct=0; ct < n->mOutputs.size(); ct++) { in calcOrderRecurse() local 82 const Link *l = n->mOutputs[ct]; in calcOrderRecurse() 108 for (size_t ct=0; ct < mKernels.size(); ct++) { in calcOrder() local 109 const ScriptKernelID *k = mKernels[ct].get(); in calcOrder() 122 for (size_t ct=0; ct < mLinks.size(); ct++) { in calcOrder() local 123 Link *l = mLinks[ct]; in calcOrder() [all …]
|
D | rsg_generator.c | 43 int ct; in printVarType() local 71 for (ct=0; ct < vt->ptrLevel; ct++) { in printVarType() 86 int ct; in printArgList() local 87 for (ct=0; ct < api->paramCount; ct++) { in printArgList() 88 if (ct || assumePrevious) { in printArgList() 91 printVarTypeAndName(f, &api->params[ct]); in printArgList() 96 int ct; in printStructures() local 99 for (ct=0; ct < apiCount; ct++) { in printStructures() 100 fprintf(f, "typedef struct RS_CMD_%s_rec RS_CMD_%s;\n", apis[ct].name, apis[ct].name); in printStructures() 104 for (ct=0; ct < apiCount; ct++) { in printStructures() [all …]
|
D | rsApiMesh.cpp | 36 for (uint32_t ct = 0; ct < vtxDataCount; ct ++) { in rsaMeshGetVertices() local 37 vtxData[ct] = sm->mHal.state.vertexBuffers[ct]; in rsaMeshGetVertices() 38 sm->mHal.state.vertexBuffers[ct]->incUserRef(); in rsaMeshGetVertices() 46 for (uint32_t ct = 0; ct < idxDataCount; ct ++) { in rsaMeshGetIndices() local 47 va[ct] = sm->mHal.state.indexBuffers[ct]; in rsaMeshGetIndices() 48 primType[ct] = sm->mHal.state.primitives[ct]; in rsaMeshGetIndices() 49 if (sm->mHal.state.indexBuffers[ct]) { in rsaMeshGetIndices() 50 sm->mHal.state.indexBuffers[ct]->incUserRef(); in rsaMeshGetIndices()
|
D | rsProgram.cpp | 30 for (uint32_t ct=0; ct < paramLength; ct+=2) { in Program() local 31 if (params[ct] == RS_PROGRAM_PARAM_INPUT) { in Program() 34 if (params[ct] == RS_PROGRAM_PARAM_CONSTANT) { in Program() 37 if (params[ct] == RS_PROGRAM_PARAM_TEXTURE_TYPE) { in Program() 61 for (uint32_t ct=0; ct < paramLength; ct+=2) { in Program() local 62 if (params[ct] == RS_PROGRAM_PARAM_INPUT) { in Program() 63 mInputElements[input].set(reinterpret_cast<Element *>(params[ct+1])); in Program() 64 mHal.state.inputElements[input++] = reinterpret_cast<Element *>(params[ct+1]); in Program() 66 if (params[ct] == RS_PROGRAM_PARAM_CONSTANT) { in Program() 67 mConstantTypes[constant].set(reinterpret_cast<Type *>(params[ct+1])); in Program() [all …]
|
/frameworks/rs/cpu_ref/ |
D | rsCpuScriptGroup.cpp | 61 for (size_t ct = 0; ct < sl->count; ct++) { in scriptGroupRoot() local 63 func = (ScriptGroupRootFunc_t)sl->fnPtrs[ct]; in scriptGroupRoot() 64 mkinfo->usr = sl->usrPtrs[ct]; in scriptGroupRoot() 66 if (sl->ins[ct]) { in scriptGroupRoot() 69 mkinfo->inPtr[0] = (const uint8_t *)sl->ins[ct]->mHal.drvState.lod[0].mallocPtr; in scriptGroupRoot() 71 mkinfo->inStride[0] = sl->ins[ct]->mHal.state.elementSizeBytes; in scriptGroupRoot() 73 if (sl->inExts[ct]) { in scriptGroupRoot() 76 sl->ins[ct]->mHal.drvState.lod[0].stride * kinfo->current.y); in scriptGroupRoot() 78 } else if (sl->ins[ct]->mHal.drvState.lod[0].dimY > kinfo->lid) { in scriptGroupRoot() 81 sl->ins[ct]->mHal.drvState.lod[0].stride * kinfo->lid); in scriptGroupRoot() [all …]
|
/frameworks/rs/tests/java_api/Balls/src/com/example/android/rs/balls/ |
D | balls.rscript | 32 for (uint32_t ct=0; ct < dimX; ct++) { 33 balls[ct].position.x = rsRand(0.f, (float)w); 34 balls[ct].position.y = rsRand(0.f, (float)h); 35 balls[ct].delta.x = 0.f; 36 balls[ct].delta.y = 0.f; 52 for (uint32_t ct=0; ct < dimX; ct++) { 53 balls[ct].next = -1; 66 for (uint32_t ct=0; ct < dimX; ct++) { 67 int2 p = convert_int2(balls[ct].position / 100.f); 72 balls[ct].next = bg->idx; [all …]
|
/frameworks/rs/tests/cpp_api/cppallocation/ |
D | compute.cpp | 39 for (uint32_t ct=0; ct < numElems; ct++) { in main() local 40 buf[ct] = (uint32_t)ct; in main() 49 for (uint32_t ct=0; ct < numElems; ct++) { in main() local 50 if (buf[ct] != ct * 2) { in main() 51 printf("Mismatch at location %d: %u\n", ct, buf[ct]); in main()
|
/frameworks/rs/tests/cpp_api/cpp-globalguard/ |
D | compute.cpp | 62 for (uint32_t ct=0; ct < numElems; ct++) { in main() local 63 buf[ct] = (uint32_t)ct; in main() 72 for (uint32_t ct=0; ct < numElems; ct++) { in main() local 73 if (buf[ct] != ct * 2) { in main() 74 printf("Mismatch at location %d: %u\n", ct, buf[ct]); in main()
|
/frameworks/rs/tests/java_api/RsTest_11/src/com/android/rs/test/ |
D | fp_mad.rscript | 12 for (int ct=0; ct < 1000 * (1000 / 80); ct++) { 35 for (int ct=0; ct < 1000 * (1000 / 20); ct++) { 58 for (int ct=0; ct < 1000 * 10; ct++) { 72 for (int ct=0; ct < 1000 * 10 / 4; ct++) { 86 for (int ct=0; ct < 1000 * 10; ct++) { 100 for (int ct=0; ct < 1000 * 100; ct++) { 111 for (int ct=0; ct < 1000 * 100; ct++) { 126 for (int ct=0; ct < 1000 * 100 /4; ct++) {
|
/frameworks/rs/tests/java_api/RsTest_16/src/com/android/rs/test/ |
D | fp_mad.rscript | 12 for (int ct=0; ct < 1000 * (1000 / 80); ct++) { 35 for (int ct=0; ct < 1000 * (1000 / 20); ct++) { 58 for (int ct=0; ct < 1000 * 10; ct++) { 72 for (int ct=0; ct < 1000 * 10 / 4; ct++) { 86 for (int ct=0; ct < 1000 * 10; ct++) { 100 for (int ct=0; ct < 1000 * 100; ct++) { 111 for (int ct=0; ct < 1000 * 100; ct++) { 126 for (int ct=0; ct < 1000 * 100 /4; ct++) {
|
/frameworks/rs/tests/java_api/RsTest_14/src/com/android/rs/test/ |
D | fp_mad.rscript | 12 for (int ct=0; ct < 1000 * (1000 / 80); ct++) { 35 for (int ct=0; ct < 1000 * (1000 / 20); ct++) { 58 for (int ct=0; ct < 1000 * 10; ct++) { 72 for (int ct=0; ct < 1000 * 10 / 4; ct++) { 86 for (int ct=0; ct < 1000 * 10; ct++) { 100 for (int ct=0; ct < 1000 * 100; ct++) { 111 for (int ct=0; ct < 1000 * 100; ct++) { 126 for (int ct=0; ct < 1000 * 100 /4; ct++) {
|
/frameworks/rs/tests/cpp_api/cppstrided/ |
D | compute.cpp | 47 for (uint32_t ct=0; ct < numElems; ct++) { in main() local 48 *(buf+(stride*i)+ct) = (uint32_t)ct + (i * numElems); in main() 59 for (uint32_t ct=0; ct < numElems; ct++) { in main() local 60 if (*(buf+(stride*i)+ct) != (uint32_t)(ct + (i * numElems)) * 2) { in main() 61 printf("Mismatch at location %d, %d: %u\n", i, ct, *(buf+(stride*i)+ct)); in main()
|
/frameworks/base/tests/JankBench/app/src/main/jni/ |
D | WorkerPool.cpp | 144 for (uint32_t ct = 0; ct < mCount; ct++) { in ~WorkerPool() local 145 mLaunchSignals[ct].set(); in ~WorkerPool() 148 for (uint32_t ct = 0; ct < mCount; ct++) { in ~WorkerPool() local 149 pthread_join(mThreadId[ct], &res); in ~WorkerPool() 186 for (uint32_t ct=0; ct < mCount; ct++) { in init() local 187 status = pthread_create(&mThreadId[ct], &threadAttr, helperThreadProc, this); in init() 189 mCount = ct; in init() 250 for (int ct = 0; ct < maxThreads; ct++) { in launchWork() local 251 mLaunchSignals[ct].set(); in launchWork()
|
/frameworks/base/rs/java/android/renderscript/ |
D | ScriptIntrinsicLUT.java | 39 for (int ct=0; ct < 256; ct++) { in ScriptIntrinsicLUT() 40 mCache[ct] = (byte)ct; in ScriptIntrinsicLUT() 41 mCache[ct + 256] = (byte)ct; in ScriptIntrinsicLUT() 42 mCache[ct + 512] = (byte)ct; in ScriptIntrinsicLUT() 43 mCache[ct + 768] = (byte)ct; in ScriptIntrinsicLUT()
|
D | ScriptGroup.java | 489 for (int ct=0; ct < mInputs.length; ct++) { in setInput() 490 if (mInputs[ct].mKID == s) { in setInput() 491 mInputs[ct].mAllocation = a; in setInput() 511 for (int ct=0; ct < mOutputs.length; ct++) { in setOutput() 512 if (mOutputs[ct].mKID == s) { in setOutput() 513 mOutputs[ct].mAllocation = a; in setOutput() 578 for (int ct = 0; ct < target.mOutputs.size(); ct++) { in validateCycle() 579 final ConnectLine cl = target.mOutputs.get(ct); in validateCycle() 598 for (int ct=0; ct < mNodes.size(); ct++) { in mergeDAGs() 599 if (mNodes.get(ct).dagNumber == valueKilled) in mergeDAGs() [all …]
|
/frameworks/rs/support/java/src/androidx/renderscript/ |
D | ScriptIntrinsicLUT.java | 64 for (int ct=0; ct < 256; ct++) { in create() 65 si.mCache[ct] = (byte)ct; in create() 66 si.mCache[ct + 256] = (byte)ct; in create() 67 si.mCache[ct + 512] = (byte)ct; in create() 68 si.mCache[ct + 768] = (byte)ct; in create()
|