Home
last modified time | relevance | path

Searched refs:ct (Results 1 – 25 of 99) sorted by relevance

1234

/frameworks/rs/driver/
DrsdShaderCache.cpp49 for (uint32_t ct=0; ct < prog->getUniformCount(); ct++) { in updateUniformArrayData() local
50 if (data[ct].slot >= 0 && data[ct].arraySize > 1) { in updateUniformArrayData()
53 if (prog->getUniformName(ct) == uniformList[ui]->name) { in updateUniformArrayData()
54 data[ct].arraySize = (uint32_t)uniformList[ui]->arraySize; in updateUniformArrayData()
62 prog->getUniformName(ct).c_str(), data[ct].slot, in updateUniformArrayData()
63 data[ct].arraySize); in updateUniformArrayData()
70 for (uint32_t ct=0; ct < prog->getUniformCount(); ct++) { in populateUniformData() local
71 data[ct].slot = glGetUniformLocation(linkedID, in populateUniformData()
72 prog->getUniformName(ct).c_str()); in populateUniformData()
73 data[ct].arraySize = prog->getUniformArraySize(ct); in populateUniformData()
[all …]
DrsdShader.cpp81 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 …]
DrsdVertexArray.cpp91 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 …]
DrsdMeshObj.cpp77 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/
DUT_copy_test.java39 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 …]
Dfp_mad.rs12 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/java/tests/RSTest_CompatLibLegacy/src/com/android/rs/test/
DUT_copy_test.java39 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 …]
Dfp_mad.rs12 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/java/tests/RSTest_CompatLib/src/com/android/rs/test/
DUT_copy_test.java39 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 …]
Dfp_mad.rs12 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/
DrsElement.cpp45 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 …]
DrsScriptGroup.cpp37 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()
121 for (size_t ct=0; ct < mKernels.size(); ct++) { in calcOrder() local
122 const ScriptKernelID *k = mKernels[ct].get(); in calcOrder()
135 for (size_t ct=0; ct < mLinks.size(); ct++) { in calcOrder() local
136 Link *l = mLinks[ct]; in calcOrder()
[all …]
Drsg_generator.c25 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 …]
DrsMesh.cpp173 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 …]
DrsProgram.cpp30 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/
DrsCpuScriptGroup.cpp59 for (size_t ct = 0; ct < sl->count; ct++) { in scriptGroupRoot() local
61 func = (ScriptGroupRootFunc_t)sl->fnPtrs[ct]; in scriptGroupRoot()
62 mkinfo->usr = sl->usrPtrs[ct]; in scriptGroupRoot()
64 if (sl->ins[ct]) { in scriptGroupRoot()
67 mkinfo->inPtr[0] = (const uint8_t *)sl->ins[ct]->mHal.drvState.lod[0].mallocPtr; in scriptGroupRoot()
69 mkinfo->inStride[0] = sl->ins[ct]->mHal.state.elementSizeBytes; in scriptGroupRoot()
71 if (sl->inExts[ct]) { in scriptGroupRoot()
74 sl->ins[ct]->mHal.drvState.lod[0].stride * kinfo->current.y); in scriptGroupRoot()
76 } else if (sl->ins[ct]->mHal.drvState.lod[0].dimY > kinfo->lid) { in scriptGroupRoot()
79 sl->ins[ct]->mHal.drvState.lod[0].stride * kinfo->lid); in scriptGroupRoot()
[all …]
/frameworks/rs/java/tests/Balls/src/com/example/android/rs/balls/
Dballs.rs35 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/
Dfp_mad.rs12 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/java/tests/RsTest_14/src/com/android/rs/test/
Dfp_mad.rs12 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/java/tests/RsTest_16/src/com/android/rs/test/
Dfp_mad.rs12 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/cppallocation/
Dcompute.cpp39 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/base/rs/java/android/renderscript/
DScriptGroup.java459 for (int ct=0; ct < mInputs.length; ct++) { in setInput()
460 if (mInputs[ct].mKID == s) { in setInput()
461 mInputs[ct].mAllocation = a; in setInput()
481 for (int ct=0; ct < mOutputs.length; ct++) { in setOutput()
482 if (mOutputs[ct].mKID == s) { in setOutput()
483 mOutputs[ct].mAllocation = a; in setOutput()
548 for (int ct = 0; ct < target.mOutputs.size(); ct++) { in validateCycle()
549 final ConnectLine cl = target.mOutputs.get(ct); in validateCycle()
568 for (int ct=0; ct < mNodes.size(); ct++) { in mergeDAGs()
569 if (mNodes.get(ct).dagNumber == valueKilled) in mergeDAGs()
[all …]
DScriptIntrinsicLUT.java34 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/tests/cppstrided/
Dcompute.cpp47 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/support/v8/renderscript/java/src/android/support/v8/renderscript/
DScriptGroup.java480 for (int ct=0; ct < mInputs.length; ct++) { in setInput()
481 if (mInputs[ct].mKID == s) { in setInput()
482 mInputs[ct].mAllocation = a; in setInput()
504 for (int ct=0; ct < mOutputs.length; ct++) { in setOutput()
505 if (mOutputs[ct].mKID == s) { in setOutput()
506 mOutputs[ct].mAllocation = a; in setOutput()
532 for (int ct=0; ct < mNodes.size(); ct++) { in execute()
533 Node n = mNodes.get(ct); in execute()
634 for (int ct = 0; ct < target.mOutputs.size(); ct++) { in validateCycle()
635 final ConnectLine cl = target.mOutputs.get(ct); in validateCycle()
[all …]

1234