Home | History | Annotate | Download | only in driver

Lines Matching refs:mHal

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];
85 if (a && a->mHal.state.surfaceTextureID) {
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++) {
141 for (uint32_t ct=0; ct < mRSProgram->mHal.state.inputElementsCount; ct++) {
142 const Element *e = mRSProgram->mHal.state.inputElements[ct];
143 for (uint32_t field=0; field < e->mHal.state.fieldsCount; field++) {
144 const Element *f = e->mHal.state.fields[field];
147 rsAssert(!f->mHal.state.fieldsCount);
148 switch (f->mHal.state.vectorSize) {
157 s.append(e->mHal.state.fieldNames[field]);
165 for (uint32_t ct=0; ct < mRSProgram->mHal.state.inputElementsCount; ct++) {
166 const Element *e = mRSProgram->mHal.state.inputElements[ct];
167 for (uint32_t field=0; field < e->mHal.state.fieldsCount; field++) {
168 const Element *f = e->mHal.state.fields[field];
169 const char *fn = e->mHal.state.fieldNames[field];
172 rsAssert(!f->mHal.state.fieldsCount);
173 switch (f->mHal.state.vectorSize) {
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];
196 if (a && a->mHal.state.surfaceTextureID) {
275 for (uint32_t ct=0; ct < mRSProgram->mHal.state.constantsCount; ct++) {
276 const Element *e = mRSProgram->mHal.state.constantTypes[ct]->getElement();
277 for (uint32_t field=0; field < e->mHal.state.fieldsCount; field++) {
278 const Element *f = e->mHal.state.fields[field];
279 const char *fn = e->mHal.state.fieldNames[field];
282 rsAssert(!f->mHal.state.fieldsCount);
283 if (f->mHal.state.dataType == RS_TYPE_MATRIX_4X4) {
285 } else if (f->mHal.state.dataType == RS_TYPE_MATRIX_3X3) {
287 } else if (f->mHal.state.dataType == RS_TYPE_MATRIX_2X2) {
290 switch (f->mHal.state.vectorSize) {
301 if (e->mHal.state.fieldArraySizes[field] > 1) {
302 mShader.appendFormat("[%d]", e->mHal.state.fieldArraySizes[field]);
310 RsDataType dataType = field->mHal.state.dataType;
311 uint32_t elementSize = field->mHal.state.elementSizeBytes / sizeof(float);
332 switch (field->mHal.state.vectorSize) {
357 RsDataType dataType = field->mHal.state.dataType;
365 switch (field->mHal.state.vectorSize) {
385 RsdHal *dc = (RsdHal *)rsc->mHal.drv;
406 DrvAllocation *drvTex = (DrvAllocation *)tex->mHal.drv;
419 trans[s->mHal.state.minFilter]);
421 switch (trans[s->mHal.state.minFilter]) {
428 trans[s->mHal.state.minFilter]);
434 transNP[s->mHal.state.minFilter]);
437 transNP[s->mHal.state.magFilter]);
438 RSD_CALL_GL(glTexParameteri, target, GL_TEXTURE_WRAP_S, transNP[s->mHal.state.wrapS]);
439 RSD_CALL_GL(glTexParameteri, target, GL_TEXTURE_WRAP_T, transNP[s->mHal.state.wrapT]);
443 mHal.state.minFilter]);
446 transNP[s->mHal.state.minFilter]);
448 RSD_CALL_GL(glTexParameteri, target, GL_TEXTURE_MAG_FILTER, trans[s->mHal.state.magFilter]);
449 RSD_CALL_GL(glTexParameteri, target, GL_TEXTURE_WRAP_S, trans[s->mHal.state.wrapS]);
450 RSD_CALL_GL(glTexParameteri, target, GL_TEXTURE_WRAP_T, trans[s->mHal.state.wrapT]);
453 float anisoValue = rsMin(dc->gl.gl.EXT_texture_max_aniso, s->mHal.state.aniso);
462 if (mRSProgram->mHal.state.texturesCount == 0) {
466 RsdHal *dc = (RsdHal *)rsc->mHal.drv;
468 uint32_t numTexturesToBind = mRSProgram->mHal.state.texturesCount;
472 mRSProgram->mHal.state.texturesCount, (uint32_t)this, numTexturesAvailable);
481 if (!mRSProgram->mHal.state.textures[ct]) {
487 DrvAllocation *drvTex = (DrvAllocation *)mRSProgram->mHal.state.textures[ct]->mHal.drv;
498 if (mRSProgram->mHal.state.samplers[ct]) {
499 setupSampler(rsc, mRSProgram->mHal.state.samplers[ct],
500 mRSProgram->mHal.state.textures[ct]);
522 for (uint32_t ct=0; ct < mRSProgram->mHal.state.constantsCount; ct++) {
523 Allocation *alloc = mRSProgram->mHal.state.constants[ct];
532 const uint8_t *data = static_cast<const uint8_t *>(alloc->mHal.drvState.lod[0].mallocPtr);
533 const Element *e = mRSProgram->mHal.state.constantTypes[ct]->getElement();
534 for (uint32_t field=0; field < e->mHal.state.fieldsCount; field++) {
535 const Element *f = e->mHal.state.fields[field];
536 const char *fieldName = e->mHal.state.fieldNames[field];
538 uint32_t offset = e->mHal.state.fieldOffsetBytes[field];
575 for (uint32_t ct=0; ct < mRSProgram->mHal.state.inputElementsCount; ct++) {
576 const Element *elem = mRSProgram->mHal.state.inputElements[ct];
577 mAttribCount += elem->mHal.state.fieldsCount;
581 for (uint32_t ct=0; ct < mRSProgram->mHal.state.constantsCount; ct++) {
582 const Element *elem = mRSProgram->mHal.state.constantTypes[ct]->getElement();
583 mUniformCount += elem->mHal.state.fieldsCount;
585 mUniformCount += mRSProgram->mHal.state.texturesCount;
595 mTextureCount = mRSProgram->mHal.state.texturesCount;
600 rsAssert(e->mHal.state.fieldsCount);
601 for (uint32_t ct=0; ct < e->mHal.state.fieldsCount; ct++) {
602 const Element *ce = e->mHal.state.fields[ct];
603 if (ce->mHal.state.fieldsCount) {
607 tmp.append(e->mHal.state.fieldNames[ct]);
610 arrayLengths[*count] = e->mHal.state.fieldArraySizes[ct];