/frameworks/rs/driver/ |
D | rsdShaderCache.cpp | 45 for (uint32_t ct=0; ct < prog->getUniformCount(); ct++) { in updateUniformArrayData() local 46 if (data[ct].slot >= 0 && data[ct].arraySize > 1) { in updateUniformArrayData() 49 if (prog->getUniformName(ct) == uniformList[ui]->name) { in updateUniformArrayData() 50 data[ct].arraySize = (uint32_t)uniformList[ui]->arraySize; in updateUniformArrayData() 58 prog->getUniformName(ct).string(), data[ct].slot, data[ct].arraySize); in updateUniformArrayData() 64 for (uint32_t ct=0; ct < prog->getUniformCount(); ct++) { in populateUniformData() local 65 data[ct].slot = glGetUniformLocation(linkedID, prog->getUniformName(ct)); in populateUniformData() 66 data[ct].arraySize = prog->getUniformArraySize(ct); in populateUniformData() 72 for (uint32_t ct=0; ct < vtx->getUniformCount(); ct++) { in hasArrayUniforms() local 73 if (data[ct].slot >= 0 && data[ct].arraySize > 1) { in hasArrayUniforms() [all …]
|
D | rsdVertexArray.cpp | 91 for (uint32_t ct=1; ct < maxAttrs; ct++) { in setup() local 92 if(state->mAttrsEnabled[ct]) { in setup() 93 glDisableVertexAttribArray(ct); in setup() 94 state->mAttrsEnabled[ct] = false; in setup() 99 for (uint32_t ct=0; ct < mCount; ct++) { in setup() local 100 int32_t slot = sc->vtxAttribSlot(mAttribs[ct].name); in setup() 102 logAttrib(ct, slot); in setup() 109 glBindBuffer(GL_ARRAY_BUFFER, mAttribs[ct].buffer); in setup() 111 mAttribs[ct].size, in setup() 112 mAttribs[ct].type, in setup() [all …]
|
D | rsdShader.cpp | 81 for (uint32_t ct = 0; ct < mRSProgram->mHal.state.texturesCount; ct ++) { in getExistingState() local 83 if (mRSProgram->mHal.state.textureTargets[ct] == RS_TEXTURE_2D) { in getExistingState() 84 Allocation *a = mRSProgram->mHal.state.textures[ct]; in getExistingState() 93 if (texType != returnKey->mTextureTargets[ct]) { in getExistingState() 121 for (uint32_t ct=0; ct < mRSProgram->mHal.state.inputElementsCount; ct++) { in init() local 122 initAddUserElement(mRSProgram->mHal.state.inputElements[ct], mAttribNames, in init() 125 for (uint32_t ct=0; ct < mRSProgram->mHal.state.constantsCount; ct++) { in init() local 126 initAddUserElement(mRSProgram->mHal.state.constantTypes[ct]->getElement(), in init() 131 for (uint32_t ct=0; ct < mRSProgram->mHal.state.texturesCount; ct++) { in init() local 133 mUniformNames[uniformCount].append(textureNames[ct], textureNamesLength[ct]); in init() [all …]
|
D | rsdMeshObj.cpp | 77 for (uint32_t ct=0; ct < mRSMesh->mHal.state.vertexBuffersCount; ct++) { in init() local 78 const Element *elem = mRSMesh->mHal.state.vertexBuffers[ct]->getType()->getElement(); in init() 79 for (uint32_t ct=0; ct < elem->mHal.state.fieldsCount; ct++) { in init() local 80 if (isValidGLComponent(elem, ct)) { in init() 100 for (uint32_t ct=0; ct < mRSMesh->mHal.state.vertexBuffersCount; ct++) { in init() local 101 const Element *elem = mRSMesh->mHal.state.vertexBuffers[ct]->getType()->getElement(); in init() 120 mAttribAllocationIndex[userNum] = ct; in init() 135 for (uint32_t ct=0; ct < mRSMesh->mHal.state.vertexBuffersCount; ct++) { in renderPrimitiveRange() local 136 const Allocation *alloc = mRSMesh->mHal.state.vertexBuffers[ct]; in renderPrimitiveRange() 144 for (uint32_t ct=0; ct < mAttribCount; ct++) { in renderPrimitiveRange() local [all …]
|
/frameworks/rs/java/tests/RSTest_CompatLib/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.rs | 13 for (int ct=0; ct < 1000 * (1000 / 80); ct++) { 37 for (int ct=0; ct < 1000 * (1000 / 20); ct++) { 61 for (int ct=0; ct < 1000 * 10; ct++) { 76 for (int ct=0; ct < 1000 * 10 / 4; ct++) { 91 for (int ct=0; ct < 1000 * 10; ct++) { 105 for (int ct=0; ct < 1000 * 100; ct++) { 116 for (int ct=0; ct < 1000 * 100; ct++) { 132 for (int ct=0; ct < 1000 * 100 /4; ct++) {
|
/frameworks/rs/java/tests/RsTest/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.rs | 13 for (int ct=0; ct < 1000 * (1000 / 80); ct++) { 37 for (int ct=0; ct < 1000 * (1000 / 20); ct++) { 61 for (int ct=0; ct < 1000 * 10; ct++) { 76 for (int ct=0; ct < 1000 * 10 / 4; ct++) { 91 for (int ct=0; ct < 1000 * 10; ct++) { 105 for (int ct=0; ct < 1000 * 100; ct++) { 116 for (int ct=0; ct < 1000 * 100; ct++) { 132 for (int ct=0; ct < 1000 * 100 /4; ct++) {
|
/frameworks/base/rs/java/android/renderscript/ |
D | ScriptGroup.java | 105 for (int ct=0; ct < mInputs.length; ct++) { in setInput() 106 if (mInputs[ct].mKID == s) { in setInput() 107 mInputs[ct].mAllocation = a; in setInput() 125 for (int ct=0; ct < mOutputs.length; ct++) { in setOutput() 126 if (mOutputs[ct].mKID == s) { in setOutput() 127 mOutputs[ct].mAllocation = a; in setOutput() 187 for (int ct = 0; ct < target.mOutputs.size(); ct++) { in validateCycle() 188 final ConnectLine cl = target.mOutputs.get(ct); in validateCycle() 207 for (int ct=0; ct < mNodes.size(); ct++) { in mergeDAGs() 208 if (mNodes.get(ct).dagNumber == valueKilled) in mergeDAGs() [all …]
|
D | ScriptIntrinsicLUT.java | 34 for (int ct=0; ct < 256; ct++) { in ScriptIntrinsicLUT() 35 mCache[ct] = (byte)ct; in ScriptIntrinsicLUT() 36 mCache[ct + 256] = (byte)ct; in ScriptIntrinsicLUT() 37 mCache[ct + 512] = (byte)ct; in ScriptIntrinsicLUT() 38 mCache[ct + 768] = (byte)ct; in ScriptIntrinsicLUT()
|
/frameworks/rs/ |
D | rsElement.cpp | 45 for (uint32_t ct = 0; ct < mRSC->mStateElement.mElements.size(); ct++) { in preDestroy() local 46 if (mRSC->mStateElement.mElements[ct] == this) { in preDestroy() 47 mRSC->mStateElement.mElements.removeAt(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 | 31 for (size_t ct=0; ct < mLinks.size(); ct++) { in ~ScriptGroup() local 32 delete mLinks[ct]; in ~ScriptGroup() 48 for (size_t ct=0; ct < mNodes.size(); ct++) { in findNode() local 49 Node *n = mNodes[ct]; in findNode() 65 for (size_t ct=0; ct < n->mOutputs.size(); ct++) { in calcOrderRecurse() local 66 const Link *l = n->mOutputs[ct]; in calcOrderRecurse() 104 for (size_t ct=0; ct < mKernels.size(); ct++) { in calcOrder() local 105 const ScriptKernelID *k = mKernels[ct].get(); in calcOrder() 118 for (size_t ct=0; ct < mLinks.size(); ct++) { in calcOrder() local 119 Link *l = mLinks[ct]; in calcOrder() [all …]
|
D | rsg_generator.c | 25 int ct; in printVarType() local 53 for (ct=0; ct < vt->ptrLevel; ct++) { in printVarType() 68 int ct; in printArgList() local 69 for (ct=0; ct < api->paramCount; ct++) { in printArgList() 70 if (ct || assumePrevious) { in printArgList() 73 printVarTypeAndName(f, &api->params[ct]); in printArgList() 78 int ct; in printStructures() local 81 for (ct=0; ct < apiCount; ct++) { in printStructures() 82 fprintf(f, "typedef struct RS_CMD_%s_rec RS_CMD_%s;\n", apis[ct].name, apis[ct].name); in printStructures() 86 for (ct=0; ct < apiCount; ct++) { in printStructures() [all …]
|
D | rsMesh.cpp | 173 for (uint32_t ct = 0; ct < mHal.state.primitivesCount; ct ++) { in render() local 174 renderPrimitive(rsc, ct); in render() 202 for (uint32_t ct = 0; ct < mHal.state.vertexBuffersCount; ct ++) { in uploadAll() local 203 if (mHal.state.vertexBuffers[ct]) { in uploadAll() 204 rsc->mHal.funcs.allocation.markDirty(rsc, mHal.state.vertexBuffers[ct]); in uploadAll() 208 for (uint32_t ct = 0; ct < mHal.state.primitivesCount; ct ++) { in uploadAll() local 209 if (mHal.state.indexBuffers[ct]) { in uploadAll() 210 rsc->mHal.funcs.allocation.markDirty(rsc, mHal.state.indexBuffers[ct]); in uploadAll() 222 for (uint32_t ct=0; ct < mHal.state.vertexBuffersCount; ct++) { in computeBBox() local 223 const Type *bufferType = mHal.state.vertexBuffers[ct]->getType(); in computeBBox() [all …]
|
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/support/v8/renderscript/java/src/android/support/v8/renderscript/ |
D | ScriptGroup.java | 107 for (int ct=0; ct < mInputs.length; ct++) { in setInput() 108 if (mInputs[ct].mKID == s) { in setInput() 109 mInputs[ct].mAllocation = a; in setInput() 127 for (int ct=0; ct < mOutputs.length; ct++) { in setOutput() 128 if (mOutputs[ct].mKID == s) { in setOutput() 129 mOutputs[ct].mAllocation = a; in setOutput() 194 for (int ct = 0; ct < target.mOutputs.size(); ct++) { in validateCycle() 195 final ConnectLine cl = target.mOutputs.get(ct); in validateCycle() 214 for (int ct=0; ct < mNodes.size(); ct++) { in mergeDAGs() 215 if (mNodes.get(ct).dagNumber == valueKilled) in mergeDAGs() [all …]
|
D | ScriptIntrinsicLUT.java | 57 for (int ct=0; ct < 256; ct++) { in create() 58 si.mCache[ct] = (byte)ct; in create() 59 si.mCache[ct + 256] = (byte)ct; in create() 60 si.mCache[ct + 512] = (byte)ct; in create() 61 si.mCache[ct + 768] = (byte)ct; in create()
|
/frameworks/rs/cpu_ref/ |
D | rsCpuScriptGroup.cpp | 60 for(size_t ct=0; ct < sl->count; ct++) { in scriptGroupRoot() local 62 func = (ScriptGroupRootFunc_t)sl->fnPtrs[ct]; in scriptGroupRoot() 63 mp->usr = sl->usrPtrs[ct]; in scriptGroupRoot() 73 if (sl->ins[ct]) { in scriptGroupRoot() 74 mp->ptrIn = (const uint8_t *)sl->ins[ct]->mHal.drvState.lod[0].mallocPtr; in scriptGroupRoot() 75 istep = sl->ins[ct]->mHal.state.elementSizeBytes; in scriptGroupRoot() 77 if (sl->inExts[ct]) { in scriptGroupRoot() 78 mp->in = mp->ptrIn + sl->ins[ct]->mHal.drvState.lod[0].stride * p->y; in scriptGroupRoot() 80 if (sl->ins[ct]->mHal.drvState.lod[0].dimY > p->lid) { in scriptGroupRoot() 81 mp->in = mp->ptrIn + sl->ins[ct]->mHal.drvState.lod[0].stride * p->lid; in scriptGroupRoot() [all …]
|
/frameworks/rs/java/tests/Balls/src/com/example/android/rs/balls/ |
D | balls.rs | 35 for (uint32_t ct=0; ct < dimX; ct++) { 36 balls[ct].position.x = rsRand(0.f, (float)w); 37 balls[ct].position.y = rsRand(0.f, (float)h); 38 balls[ct].delta.x = 0.f; 39 balls[ct].delta.y = 0.f; 55 for (uint32_t ct=0; ct < dimX; ct++) { 56 balls[ct].next = -1; 69 for (uint32_t ct=0; ct < dimX; ct++) { 70 int2 p = convert_int2(balls[ct].position / 100.f); 75 balls[ct].next = bg->idx; [all …]
|
/frameworks/rs/java/tests/RsTest_11/src/com/android/rs/test/ |
D | fp_mad.rs | 13 for (int ct=0; ct < 1000 * (1000 / 80); ct++) { 37 for (int ct=0; ct < 1000 * (1000 / 20); ct++) { 61 for (int ct=0; ct < 1000 * 10; ct++) { 76 for (int ct=0; ct < 1000 * 10 / 4; ct++) { 91 for (int ct=0; ct < 1000 * 10; ct++) { 105 for (int ct=0; ct < 1000 * 100; ct++) { 116 for (int ct=0; ct < 1000 * 100; ct++) { 132 for (int ct=0; ct < 1000 * 100 /4; ct++) {
|
/frameworks/rs/java/tests/RsTest_14/src/com/android/rs/test/ |
D | fp_mad.rs | 13 for (int ct=0; ct < 1000 * (1000 / 80); ct++) { 37 for (int ct=0; ct < 1000 * (1000 / 20); ct++) { 61 for (int ct=0; ct < 1000 * 10; ct++) { 76 for (int ct=0; ct < 1000 * 10 / 4; ct++) { 91 for (int ct=0; ct < 1000 * 10; ct++) { 105 for (int ct=0; ct < 1000 * 100; ct++) { 116 for (int ct=0; ct < 1000 * 100; ct++) { 132 for (int ct=0; ct < 1000 * 100 /4; ct++) {
|
/frameworks/rs/java/tests/RsTest_16/src/com/android/rs/test/ |
D | fp_mad.rs | 13 for (int ct=0; ct < 1000 * (1000 / 80); ct++) { 37 for (int ct=0; ct < 1000 * (1000 / 20); ct++) { 61 for (int ct=0; ct < 1000 * 10; ct++) { 76 for (int ct=0; ct < 1000 * 10 / 4; ct++) { 91 for (int ct=0; ct < 1000 * 10; ct++) { 105 for (int ct=0; ct < 1000 * 100; ct++) { 116 for (int ct=0; ct < 1000 * 100; ct++) { 132 for (int ct=0; ct < 1000 * 100 /4; ct++) {
|
/frameworks/rs/tests/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/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/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/ |
D | IPControlsJB.java | 111 for (int ct=0; ct < Resolutions.values().length; ct++) { in onCreateOptionsMenu() 112 if (Resolutions.values()[ct].width <= (int)(md * 1.2)) { in onCreateOptionsMenu() 113 mResSpinner.setSelection(ct); in onCreateOptionsMenu() 260 for (int ct=0; ct < IPTestListJB.TestName.values().length; ct++) { in writeResults() 261 IPTestListJB.TestName t = IPTestListJB.TestName.values()[ct]; in writeResults() 262 final float r = mResults[ct]; in writeResults() 282 for (int ct=0; ct < id.length; ct++) { in onActivityResult() 283 IPTestListJB.TestName t = IPTestListJB.TestName.values()[id[ct]]; in onActivityResult() 285 String s = t.toString() + " " + df.format(rebase(r[ct], t)) + in onActivityResult() 286 "X, " + df.format(r[ct]) + "ms"; in onActivityResult() [all …]
|