/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 | 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 | 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 | 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 …]
|
D | rsdCore.cpp | 209 for (uint32_t ct = 0; ct < dc->mWorkers.mCount; ct++) { in rsdLaunchThreads() local 210 dc->mWorkers.mLaunchSignals[ct].set(); in rsdLaunchThreads() 285 for (uint32_t ct=0; ct < dc->mWorkers.mCount; ct++) { in rsdHalInit() local 286 status = pthread_create(&dc->mWorkers.mThreadId[ct], &threadAttr, HelperThreadProc, rsc); in rsdHalInit() 288 dc->mWorkers.mCount = ct; in rsdHalInit() 304 for (uint32_t ct=0; ct < dc->mWorkers.mCount; ct++) { in SetPriority() local 305 setpriority(PRIO_PROCESS, dc->mWorkers.mNativeThreadId[ct], priority); in SetPriority() 319 for (uint32_t ct = 0; ct < dc->mWorkers.mCount; ct++) { in Shutdown() local 320 dc->mWorkers.mLaunchSignals[ct].set(); in Shutdown() 323 for (uint32_t ct = 0; ct < dc->mWorkers.mCount; ct++) { in Shutdown() local [all …]
|
/frameworks/base/tests/RenderScriptTests/tests/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/ |
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() 92 for (size_t ct=0; ct < mKernels.size(); ct++) { in calcOrder() local 93 const ScriptKernelID *k = mKernels[ct].get(); in calcOrder() 106 for (size_t ct=0; ct < mLinks.size(); ct++) { in calcOrder() local 107 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/renderscript/v8/rs_support/ |
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() 92 for (size_t ct=0; ct < mKernels.size(); ct++) { in calcOrder() local 93 const ScriptKernelID *k = mKernels[ct].get(); in calcOrder() 106 for (size_t ct=0; ct < mLinks.size(); ct++) { in calcOrder() local 107 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 …]
|
/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 | 38 for (int ct=0; ct < 256; ct++) { in ScriptIntrinsicLUT() 39 mCache[ct] = (byte)ct; in ScriptIntrinsicLUT() 40 mCache[ct + 256] = (byte)ct; in ScriptIntrinsicLUT() 41 mCache[ct + 512] = (byte)ct; in ScriptIntrinsicLUT() 42 mCache[ct + 768] = (byte)ct; in ScriptIntrinsicLUT()
|
/frameworks/support/renderscript/v8/java/src/android/support/v8/renderscript/ |
D | ScriptGroup.java | 98 for (int ct=0; ct < mInputs.length; ct++) { in setInput() 99 if (mInputs[ct].mKID == s) { in setInput() 100 mInputs[ct].mAllocation = a; in setInput() 118 for (int ct=0; ct < mOutputs.length; ct++) { in setOutput() 119 if (mOutputs[ct].mKID == s) { in setOutput() 120 mOutputs[ct].mAllocation = a; in setOutput() 176 for (int ct=0; ct < n.mOutputs.size(); ct++) { in validateRecurse() 177 final ConnectLine cl = n.mOutputs.get(ct); in validateRecurse() 198 for (int ct=0; ct < mNodes.size(); ct++) { in validate() 202 Node n = mNodes.get(ct); in validate() [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/base/tests/RenderScriptTests/tests_v14/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/base/tests/RenderScriptTests/tests_v11/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/base/tests/RenderScriptTests/Balls/src/com/example/android/rs/balls/ |
D | balls.rs | 36 for (uint32_t ct=0; ct < dimX; ct++) { 37 balls1[ct].position.x = rsRand(0.f, (float)w); 38 balls1[ct].position.y = rsRand(0.f, (float)h); 39 balls1[ct].delta.x = 0.f; 40 balls1[ct].delta.y = 0.f; 41 balls1[ct].size = 1.f; 45 balls1[ct].size += pow(10.f, rsRand(0.f, 2.f)) * 0.07f; 73 for (uint32_t ct=0; ct < bc.dimX; ct++) { 74 point[ct].position = bout[ct].position; 75 point[ct].size = 6.f /*+ bout[ct].color.g * 6.f*/ * bout[ct].size;
|
/frameworks/support/renderscript/v8/rs_support/driver/ |
D | rsdCore.cpp | 200 for (uint32_t ct = 0; ct < dc->mWorkers.mCount; ct++) { in rsdLaunchThreads() local 201 dc->mWorkers.mLaunchSignals[ct].set(); in rsdLaunchThreads() 267 for (uint32_t ct=0; ct < dc->mWorkers.mCount; ct++) { in rsdHalInit() local 268 status = pthread_create(&dc->mWorkers.mThreadId[ct], &threadAttr, HelperThreadProc, rsc); in rsdHalInit() 270 dc->mWorkers.mCount = ct; in rsdHalInit() 286 for (uint32_t ct=0; ct < dc->mWorkers.mCount; ct++) { in SetPriority() local 287 setpriority(PRIO_PROCESS, dc->mWorkers.mNativeThreadId[ct], priority); in SetPriority() 301 for (uint32_t ct = 0; ct < dc->mWorkers.mCount; ct++) { in Shutdown() local 302 dc->mWorkers.mLaunchSignals[ct].set(); in Shutdown() 305 for (uint32_t ct = 0; ct < dc->mWorkers.mCount; ct++) { in Shutdown() local [all …]
|
D | rsdScriptGroup.cpp | 57 for (size_t ct=0; ct < sg->mNodes.size(); ct++) { in rsdScriptGroupExecute() local 58 ScriptGroup::Node *n = sg->mNodes[ct]; in rsdScriptGroupExecute() 101 for (size_t ct=0; ct < ins.size(); ct++) { in rsdScriptGroupExecute() local 103 Script *s = kernels[ct]->mScript; in rsdScriptGroupExecute() 105 uint32_t slot = kernels[ct]->mSlot; in rsdScriptGroupExecute() 107 rsdScriptInvokeForEachMtlsSetup(rsc, ins[ct], outs[ct], NULL, 0, NULL, &mtls); in rsdScriptGroupExecute() 126 rsdScriptLaunchThreads(rsc, s, slot, ins[ct], outs[ct], NULL, 0, NULL, &mtls); in rsdScriptGroupExecute()
|
/frameworks/rs/cpp/ |
D | Element.cpp | 137 for (size_t ct = 0; ct < fieldCount; ct ++) { in updateVisibleSubElements() local 138 if (mElementNames[ct].string()[0] != '#') { in updateVisibleSubElements() 144 for (size_t ct = 0; ct < fieldCount; ct ++) { in updateVisibleSubElements() local 145 if (mElementNames[ct].string()[0] != '#') { in updateVisibleSubElements() 146 mVisibleElementMap.push((uint32_t)ct); in updateVisibleSubElements() 164 for (size_t ct = 0; ct < mElements.size(); ct++ ) { in Element() local 166 mSizeBytes += mElements[ct]->mSizeBytes * mArraySizes[ct]; in Element() 414 for (size_t ct = 0; ct < fieldCount; ct++) { in create() local 415 nameArray[ct] = mElementNames[ct].string(); in create() 416 elementArray[ct] = mElements[ct].get(); in create() [all …]
|