/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/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_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/base/graphics/java/android/renderscript/ |
D | ScriptGroup.java | 104 for (int ct=0; ct < mInputs.length; ct++) { in setInput() 105 if (mInputs[ct].mKID == s) { in setInput() 106 mInputs[ct].mAllocation = a; in setInput() 124 for (int ct=0; ct < mOutputs.length; ct++) { in setOutput() 125 if (mOutputs[ct].mKID == s) { in setOutput() 126 mOutputs[ct].mAllocation = a; in setOutput() 181 for (int ct = 0; ct < target.mOutputs.size(); ct++) { in validateCycle() 182 final ConnectLine cl = target.mOutputs.get(ct); in validateCycle() 201 for (int ct=0; ct < mNodes.size(); ct++) { in mergeDAGs() 202 if (mNodes.get(ct).dagNumber == valueKilled) in mergeDAGs() [all …]
|
D | ScriptIntrinsicLUT.java | 36 for (int ct=0; ct < 256; ct++) { in ScriptIntrinsicLUT() 37 mCache[ct] = (byte)ct; in ScriptIntrinsicLUT() 38 mCache[ct + 256] = (byte)ct; in ScriptIntrinsicLUT() 39 mCache[ct + 512] = (byte)ct; in ScriptIntrinsicLUT() 40 mCache[ct + 768] = (byte)ct; in ScriptIntrinsicLUT()
|
/frameworks/rs/ |
D | rsElement.cpp | 38 for (uint32_t ct = 0; ct < mRSC->mStateElement.mElements.size(); ct++) { in preDestroy() local 39 if (mRSC->mStateElement.mElements[ct] == this) { in preDestroy() 40 mRSC->mStateElement.mElements.removeAt(ct); in preDestroy() 65 for (size_t ct=0; ct < mFieldCount; ct++) { in getSizeBits() local 66 total += mFields[ct].e->mBits * mFields[ct].arraySize; in getSizeBits() 77 for (size_t ct=0; ct < mFieldCount; ct++) { in getSizeBitsUnpadded() local 78 total += mFields[ct].e->mBitsUnpadded * mFields[ct].arraySize; in getSizeBitsUnpadded() 87 for (uint32_t ct = 0; ct < mFieldCount; ct++) { in dumpLOGV() local 88 ALOGV("%s Element field index: %u ------------------", prefix, ct); in dumpLOGV() 90 prefix, mFields[ct].name.string(), 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 | 176 for (uint32_t ct = 0; ct < mHal.state.primitivesCount; ct ++) { in render() local 177 renderPrimitive(rsc, ct); in render() 205 for (uint32_t ct = 0; ct < mHal.state.vertexBuffersCount; ct ++) { in uploadAll() local 206 if (mHal.state.vertexBuffers[ct]) { in uploadAll() 207 rsc->mHal.funcs.allocation.markDirty(rsc, mHal.state.vertexBuffers[ct]); in uploadAll() 211 for (uint32_t ct = 0; ct < mHal.state.primitivesCount; ct ++) { in uploadAll() local 212 if (mHal.state.indexBuffers[ct]) { in uploadAll() 213 rsc->mHal.funcs.allocation.markDirty(rsc, mHal.state.indexBuffers[ct]); in uploadAll() 225 for (uint32_t ct=0; ct < mHal.state.vertexBuffersCount; ct++) { in computeBBox() local 226 const Type *bufferType = mHal.state.vertexBuffers[ct]->getType(); in computeBBox() [all …]
|
D | rsProgram.cpp | 28 for (uint32_t ct=0; ct < paramLength; ct+=2) { in Program() local 29 if (params[ct] == RS_PROGRAM_PARAM_INPUT) { in Program() 32 if (params[ct] == RS_PROGRAM_PARAM_CONSTANT) { in Program() 35 if (params[ct] == RS_PROGRAM_PARAM_TEXTURE_TYPE) { in Program() 59 for (uint32_t ct=0; ct < paramLength; ct+=2) { in Program() local 60 if (params[ct] == RS_PROGRAM_PARAM_INPUT) { in Program() 61 mInputElements[input].set(reinterpret_cast<Element *>(params[ct+1])); in Program() 62 mHal.state.inputElements[input++] = reinterpret_cast<Element *>(params[ct+1]); in Program() 64 if (params[ct] == RS_PROGRAM_PARAM_CONSTANT) { in Program() 65 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 | 104 for (int ct=0; ct < mInputs.length; ct++) { in setInput() 105 if (mInputs[ct].mKID == s) { in setInput() 106 mInputs[ct].mAllocation = a; in setInput() 124 for (int ct=0; ct < mOutputs.length; ct++) { in setOutput() 125 if (mOutputs[ct].mKID == s) { in setOutput() 126 mOutputs[ct].mAllocation = a; in setOutput() 186 for (int ct = 0; ct < target.mOutputs.size(); ct++) { in validateCycle() 187 final ConnectLine cl = target.mOutputs.get(ct); in validateCycle() 206 for (int ct=0; ct < mNodes.size(); ct++) { in mergeDAGs() 207 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/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; 54 for (uint32_t ct=0; ct < dimX; ct++) { 55 balls[ct].next = -1; 68 for (uint32_t ct=0; ct < dimX; ct++) { 69 int2 p = convert_int2(balls[ct].position / 100.f); 74 balls[ct].next = bg->idx; [all …]
|
/frameworks/rs/cpu_ref/ |
D | rsCpuScriptGroup.cpp | 70 for(size_t ct=0; ct < sl->count; ct++) { in scriptGroupRoot() local 72 func = (ScriptGroupRootFunc_t)sl->fnPtrs[ct]; in scriptGroupRoot() 73 mp->usr = sl->usrPtrs[ct]; in scriptGroupRoot() 80 if (sl->ins[ct]) { in scriptGroupRoot() 81 mp->ptrIn = (const uint8_t *)sl->ins[ct]->mHal.drvState.lod[0].mallocPtr; in scriptGroupRoot() 83 if (sl->inExts[ct]) { in scriptGroupRoot() 84 mp->in = mp->ptrIn + sl->ins[ct]->mHal.drvState.lod[0].stride * p->y; in scriptGroupRoot() 86 if (sl->ins[ct]->mHal.drvState.lod[0].dimY > p->lid) { in scriptGroupRoot() 87 mp->in = mp->ptrIn + sl->ins[ct]->mHal.drvState.lod[0].stride * p->lid; in scriptGroupRoot() 92 if (sl->outs[ct]) { in scriptGroupRoot() [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/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/ImageProcessing2/src/com/android/rs/image/ |
D | CrossProcess.java | 29 for (int ct=0; ct < 256; ct++) { in createTest() 30 float f = ((float)ct) / 255.f; in createTest() 39 mIntrinsic.setRed(ct, (int)(r * 255.f + 0.5f)); in createTest() 48 mIntrinsic.setGreen(ct, (int)(g * 255.f + 0.5f)); in createTest() 51 mIntrinsic.setBlue(ct, (int)(b * 255.f + 0.5f)); in createTest()
|
/frameworks/rs/cpp/ |
D | Element.cpp | 134 for (size_t ct = 0; ct < fieldCount; ct ++) { in updateVisibleSubElements() local 135 if (mElementNames[ct].string()[0] != '#') { in updateVisibleSubElements() 141 for (size_t ct = 0; ct < fieldCount; ct ++) { in updateVisibleSubElements() local 142 if (mElementNames[ct].string()[0] != '#') { in updateVisibleSubElements() 143 mVisibleElementMap.push((uint32_t)ct); in updateVisibleSubElements() 161 for (size_t ct = 0; ct < mElements.size(); ct++ ) { in Element() local 163 mSizeBytes += mElements[ct]->mSizeBytes * mArraySizes[ct]; in Element() 368 for (size_t ct = 0; ct < fieldCount; ct++) { in create() local 369 nameArray[ct] = mElementNames[ct].string(); in create() 370 elementArray[ct] = mElements[ct].get(); in create() [all …]
|