Home | History | Annotate | Download | only in driver

Lines Matching refs:ct

81         for (uint32_t ct = 0; ct < mRSProgram->mHal.state.texturesCount; ct ++) {
83 if (mRSProgram->mHal.state.textureTargets[ct] == RS_TEXTURE_2D) {
84 Allocation *a = mRSProgram->mHal.state.textures[ct];
93 if (texType != returnKey->mTextureTargets[ct]) {
121 for (uint32_t ct=0; ct < mRSProgram->mHal.state.inputElementsCount; ct++) {
122 initAddUserElement(mRSProgram->mHal.state.inputElements[ct], mAttribNames,
125 for (uint32_t ct=0; ct < mRSProgram->mHal.state.constantsCount; ct++) {
126 initAddUserElement(mRSProgram->mHal.state.constantTypes[ct]->getElement(),
131 for (uint32_t ct=0; ct < mRSProgram->mHal.state.texturesCount; ct++) {
133 mUniformNames[uniformCount].append(textureNames[ct], textureNamesLength[ct]);
141 for (uint32_t ct=0; ct < mRSProgram->mHal.state.inputElementsCount; ct++) {
142 const Element *e = mRSProgram->mHal.state.inputElements[ct];
165 for (uint32_t ct=0; ct < mRSProgram->mHal.state.inputElementsCount; ct++) {
166 const Element *e = mRSProgram->mHal.state.inputElements[ct];
193 for (uint32_t ct = 0; ct < mRSProgram->mHal.state.texturesCount; ct ++) {
194 if (mRSProgram->mHal.state.textureTargets[ct] == RS_TEXTURE_2D) {
195 Allocation *a = mRSProgram->mHal.state.textures[ct];
202 mCurrentState->mTextureTargets[ct] = GL_TEXTURE_EXTERNAL_OES;
205 mCurrentState->mTextureTargets[ct] = GL_TEXTURE_2D;
209 mCurrentState->mTextureTargets[ct] = GL_TEXTURE_CUBE_MAP;
212 mShader.append(mTextureNames[ct]);
275 for (uint32_t ct=0; ct < mRSProgram->mHal.state.constantsCount; ct++) {
276 const Element *e = mRSProgram->mHal.state.constantTypes[ct]->getElement();
477 for (uint32_t ct=0; ct < numTexturesToBind; ct++) {
478 RSD_CALL_GL(glActiveTexture, GL_TEXTURE0 + ct);
479 RSD_CALL_GL(glUniform1i, sc->fragUniformSlot(mTextureUniformIndexStart + ct), ct);
481 if (!mRSProgram->mHal.state.textures[ct]) {
483 RSD_CALL_GL(glBindTexture, mCurrentState->mTextureTargets[ct], 0);
487 DrvAllocation *drvTex = (DrvAllocation *)mRSProgram->mHal.state.textures[ct]->mHal.drv;
489 if (mCurrentState->mTextureTargets[ct] != GL_TEXTURE_2D &&
490 mCurrentState->mTextureTargets[ct] != GL_TEXTURE_CUBE_MAP &&
491 mCurrentState->mTextureTargets[ct] != GL_TEXTURE_EXTERNAL_OES) {
493 (uint)this, ct);
496 RSD_CALL_GL(glBindTexture, mCurrentState->mTextureTargets[ct], drvTex->textureID);
498 if (mRSProgram->mHal.state.samplers[ct]) {
499 setupSampler(rsc, mRSProgram->mHal.state.samplers[ct],
500 mRSProgram->mHal.state.textures[ct]);
502 RSD_CALL_GL(glTexParameteri, mCurrentState->mTextureTargets[ct],
504 RSD_CALL_GL(glTexParameteri, mCurrentState->mTextureTargets[ct],
506 RSD_CALL_GL(glTexParameteri, mCurrentState->mTextureTargets[ct],
508 RSD_CALL_GL(glTexParameteri, mCurrentState->mTextureTargets[ct],
522 for (uint32_t ct=0; ct < mRSProgram->mHal.state.constantsCount; ct++) {
523 Allocation *alloc = mRSProgram->mHal.state.constants[ct];
527 (uint32_t)this, ct);
533 const Element *e = mRSProgram->mHal.state.constantTypes[ct]->getElement();
552 slot, offset, ct, field, uidx, fieldName);
575 for (uint32_t ct=0; ct < mRSProgram->mHal.state.inputElementsCount; ct++) {
576 const Element *elem = mRSProgram->mHal.state.inputElements[ct];
581 for (uint32_t ct=0; ct < mRSProgram->mHal.state.constantsCount; ct++) {
582 const Element *elem = mRSProgram->mHal.state.constantTypes[ct]->getElement();
601 for (uint32_t ct=0; ct < e->mHal.state.fieldsCount; ct++) {
602 const Element *ce = e->mHal.state.fields[ct];
607 tmp.append(e->mHal.state.fieldNames[ct]);
610 arrayLengths[*count] = e->mHal.state.fieldArraySizes[ct];