Lines Matching refs:mHal
85 for (uint32_t ct = 0; ct < mRSProgram->mHal.state.texturesCount; ct ++) {
87 if (mRSProgram->mHal.state.textureTargets[ct] == RS_TEXTURE_2D) {
88 Allocation *a = mRSProgram->mHal.state.textures[ct];
89 if (a && a->mHal.state.surfaceTextureID) {
125 for (uint32_t ct=0; ct < mRSProgram->mHal.state.inputElementsCount; ct++) {
126 initAddUserElement(mRSProgram->mHal.state.inputElements[ct], mAttribNames,
129 for (uint32_t ct=0; ct < mRSProgram->mHal.state.constantsCount; ct++) {
130 initAddUserElement(mRSProgram->mHal.state.constantTypes[ct]->getElement(),
135 for (uint32_t ct=0; ct < mRSProgram->mHal.state.texturesCount; ct++) {
145 for (uint32_t ct=0; ct < mRSProgram->mHal.state.inputElementsCount; ct++) {
146 const Element *e = mRSProgram->mHal.state.inputElements[ct];
147 for (uint32_t field=0; field < e->mHal.state.fieldsCount; field++) {
148 const Element *f = e->mHal.state.fields[field];
151 rsAssert(!f->mHal.state.fieldsCount);
152 switch (f->mHal.state.vectorSize) {
161 s.append(e->mHal.state.fieldNames[field]);
169 for (uint32_t ct=0; ct < mRSProgram->mHal.state.inputElementsCount; ct++) {
170 const Element *e = mRSProgram->mHal.state.inputElements[ct];
171 for (uint32_t field=0; field < e->mHal.state.fieldsCount; field++) {
172 const Element *f = e->mHal.state.fields[field];
173 const char *fn = e->mHal.state.fieldNames[field];
176 rsAssert(!f->mHal.state.fieldsCount);
177 switch (f->mHal.state.vectorSize) {
197 for (uint32_t ct = 0; ct < mRSProgram->mHal.state.texturesCount; ct ++) {
198 if (mRSProgram->mHal.state.textureTargets[ct] == RS_TEXTURE_2D) {
199 Allocation *a = mRSProgram->mHal.state.textures[ct];
200 if (a && a->mHal.state.surfaceTextureID) {
279 for (uint32_t ct=0; ct < mRSProgram->mHal.state.constantsCount; ct++) {
280 const Element *e = mRSProgram->mHal.state.constantTypes[ct]->getElement();
281 for (uint32_t field=0; field < e->mHal.state.fieldsCount; field++) {
282 const Element *f = e->mHal.state.fields[field];
283 const char *fn = e->mHal.state.fieldNames[field];
286 rsAssert(!f->mHal.state.fieldsCount);
287 if (f->mHal.state.dataType == RS_TYPE_MATRIX_4X4) {
289 } else if (f->mHal.state.dataType == RS_TYPE_MATRIX_3X3) {
291 } else if (f->mHal.state.dataType == RS_TYPE_MATRIX_2X2) {
294 switch (f->mHal.state.vectorSize) {
305 if (e->mHal.state.fieldArraySizes[field] > 1) {
307 mShader += std::to_string(e->mHal.state.fieldArraySizes[field]);
316 RsDataType dataType = field->mHal.state.dataType;
317 uint32_t elementSize = field->mHal.state.elementSizeBytes / sizeof(float);
338 switch (field->mHal.state.vectorSize) {
363 RsDataType dataType = field->mHal.state.dataType;
371 switch (field->mHal.state.vectorSize) {
391 RsdHal *dc = (RsdHal *)rsc->mHal.drv;
412 DrvAllocation *drvTex = (DrvAllocation *)tex->mHal.drv;
425 trans[s->mHal.state.minFilter]);
427 switch (trans[s->mHal.state.minFilter]) {
434 trans[s->mHal.state.minFilter]);
440 transNP[s->mHal.state.minFilter]);
443 transNP[s->mHal.state.magFilter]);
444 mHal.state.wrapS]);
445 RSD_CALL_GL(glTexParameteri, target, GL_TEXTURE_WRAP_T, transNP[s->mHal.state.wrapT]);
449 trans[s->mHal.state.minFilter]);
452 transNP[s->mHal.state.minFilter]);
454 RSD_CALL_GL(glTexParameteri, target, GL_TEXTURE_MAG_FILTER, trans[s->mHal.state.magFilter]);
455 RSD_CALL_GL(glTexParameteri, target, GL_TEXTURE_WRAP_S, trans[s->mHal.state.wrapS]);
456 RSD_CALL_GL(glTexParameteri, target, GL_TEXTURE_WRAP_T, trans[s->mHal.state.wrapT]);
459 float anisoValue = rsMin(dc->gl.gl.EXT_texture_max_aniso, s->mHal.state.aniso);
468 if (mRSProgram->mHal.state.texturesCount == 0) {
472 RsdHal *dc = (RsdHal *)rsc->mHal.drv;
474 uint32_t numTexturesToBind = mRSProgram->mHal.state.texturesCount;
478 mRSProgram->mHal.state.texturesCount, this, numTexturesAvailable);
487 if (!mRSProgram->mHal.state.textures[ct]) {
493 DrvAllocation *drvTex = (DrvAllocation *)mRSProgram->mHal.state.textures[ct]->mHal.drv;
504 if (mRSProgram->mHal.state.samplers[ct]) {
505 setupSampler(rsc, mRSProgram->mHal.state.samplers[ct],
506 mRSProgram->mHal.state.textures[ct]);
528 for (uint32_t ct=0; ct < mRSProgram->mHal.state.constantsCount; ct++) {
529 Allocation *alloc = mRSProgram->mHal.state.constants[ct];
538 const uint8_t *data = static_cast<const uint8_t *>(alloc->mHal.drvState.lod[0].mallocPtr);
539 const Element *e = mRSProgram->mHal.state.constantTypes[ct]->getElement();
540 for (uint32_t field=0; field < e->mHal.state.fieldsCount; field++) {
541 const Element *f = e->mHal.state.fields[field];
542 const char *fieldName = e->mHal.state.fieldNames[field];
544 uint32_t offset = e->mHal.state.fieldOffsetBytes[field];
581 for (uint32_t ct=0; ct < mRSProgram->mHal.state.inputElementsCount; ct++) {
582 const Element *elem = mRSProgram->mHal.state.inputElements[ct];
583 mAttribCount += elem->mHal.state.fieldsCount;
587 for (uint32_t ct=0; ct < mRSProgram->mHal.state.constantsCount; ct++) {
588 const Element *elem = mRSProgram->mHal.state.constantTypes[ct]->getElement();
589 mUniformCount += elem->mHal.state.fieldsCount;
591 mUniformCount += mRSProgram->mHal.state.texturesCount;
601 mTextureCount = mRSProgram->mHal.state.texturesCount;
607 rsAssert(e->mHal.state.fieldsCount);
608 for (uint32_t ct=0; ct < e->mHal.state.fieldsCount; ct++) {
609 const Element *ce = e->mHal.state.fields[ct];
610 if (ce->mHal.state.fieldsCount) {
614 tmp.append(e->mHal.state.fieldNames[ct]);
617 arrayLengths[*count] = e->mHal.state.fieldArraySizes[ct];