/frameworks/rs/ |
rsProgram.cpp | 30 mHal.state.inputElementsCount++; 33 mHal.state.constantsCount++; 36 mHal.state.texturesCount++; 40 mTextures = new ObjectBaseRef<Allocation>[mHal.state.texturesCount]; 41 mSamplers = new ObjectBaseRef<Sampler>[mHal.state.texturesCount]; 42 mInputElements = new ObjectBaseRef<Element>[mHal.state.inputElementsCount]; 43 mConstantTypes = new ObjectBaseRef<Type>[mHal.state.constantsCount]; 44 mConstants = new ObjectBaseRef<Allocation>[mHal.state.constantsCount]; 46 mHal.state.textures = new Allocation*[mHal.state.texturesCount] [all...] |
rsFBOCache.cpp | 28 mHal.state.colorTargetsCount = 1; 29 mHal.state.colorTargets = new Allocation*[mHal.state.colorTargetsCount]; 30 mColorTargets = new ObjectBaseRef<Allocation>[mHal.state.colorTargetsCount]; 35 delete[] mHal.state.colorTargets; 40 rsc->mHal.funcs.framebuffer.init(rsc, this); 44 rsc->mHal.funcs.framebuffer.destroy(rsc, this); 48 if (slot >= mHal.state.colorTargetsCount) { 53 if (!(a->getIsTexture() || (a->mHal.state.usageFlags & RS_ALLOCATION_USAGE_IO_OUTPUT))) { 59 mHal.state.colorTargets[slot] = a [all...] |
rsType.cpp | 31 memset(&mHal, 0, sizeof(mHal)); 49 if (mHal.state.lodCount) { 50 delete [] mHal.state.lodDimX; 51 delete [] mHal.state.lodDimY; 52 delete [] mHal.state.lodDimZ; 55 memset(&mHal, 0, sizeof(mHal)); 66 uint32_t oldLODCount = mHal.state.lodCount; 68 uint32_t l2x = rsFindHighBit(mHal.state.dimX) + 1 [all...] |
rsMesh.cpp | 25 mHal.drv = NULL; 26 mHal.state.primitives = NULL; 27 mHal.state.primitivesCount = 0; 28 mHal.state.indexBuffers = NULL; 29 mHal.state.indexBuffersCount = 0; 30 mHal.state.vertexBuffers = NULL; 31 mHal.state.vertexBuffersCount = 0; 41 mHal.drv = NULL; 42 mHal.state.primitivesCount = primitivesCount; 43 mHal.state.indexBuffersCount = primitivesCount [all...] |
rsProgramStore.cpp | 29 memset(&mHal, 0, sizeof(mHal)); 31 mHal.state.ditherEnable = ditherEnable; 33 mHal.state.colorRWriteEnable = colorMaskR; 34 mHal.state.colorGWriteEnable = colorMaskG; 35 mHal.state.colorBWriteEnable = colorMaskB; 36 mHal.state.colorAWriteEnable = colorMaskA; 37 mHal.state.blendSrc = srcFunc; 38 mHal.state.blendDst = destFunc; 40 mHal.state.depthWriteEnable = depthMask [all...] |
rsProgramVertex.cpp | 30 mRSC->mHal.funcs.vertex.init(mRSC, this, mUserShader, mUserShaderLen, 35 mRSC->mHal.funcs.vertex.destroy(mRSC, this); 44 if (mHal.state.constants[0] == NULL) { 49 float *f = static_cast<float *>(rsc->mHal.funcs.allocation.lock1D( 50 rsc, mHal.state.constants[0])); 59 rsc->mHal.funcs.allocation.unlock1D(rsc, mHal.state.constants[0]); 64 rsc->mHal.funcs.vertex.setActive(rsc, this); 73 if (mHal.state.constants[0] == NULL) { 78 float *f = static_cast<float *>(rsc->mHal.funcs.allocation.lock1D [all...] |
rsSampler.cpp | 37 mHal.state.magFilter = magFilter; 38 mHal.state.minFilter = minFilter; 39 mHal.state.wrapS = wrapS; 40 mHal.state.wrapT = wrapT; 41 mHal.state.wrapR = wrapR; 42 mHal.state.aniso = aniso; 44 mRSC->mHal.funcs.sampler.init(mRSC, this); 48 mRSC->mHal.funcs.sampler.destroy(mRSC, this); 89 if (existing->mHal.state.magFilter != magFilter) continue; 90 if (existing->mHal.state.minFilter != minFilter ) continue [all...] |
rsAllocation.cpp | 34 memset(&mHal, 0, sizeof(mHal)); 35 mHal.state.mipmapControl = RS_ALLOCATION_MIPMAP_NONE; 36 mHal.state.usageFlags = usages; 37 mHal.state.mipmapControl = mc; 38 mHal.state.userProvidedPtr = ptr; 47 a->getContext()->mHal.funcs.freeRuntimeMem(ptr); 54 void* allocMem = rsc->mHal.funcs.allocRuntimeMem(sizeof(Allocation), 0); 63 if (!rsc->mHal.funcs.allocation.init(rsc, a, type->getElement()->getHasReferences())) { 73 const Type *type = mHal.state.type [all...] |
rsType.h | 57 Hal mHal; 66 uint32_t getDimX() const {return mHal.state.dimX;} 67 uint32_t getDimY() const {return mHal.state.dimY;} 68 uint32_t getDimZ() const {return mHal.state.dimZ;} 70 bool getDimFaces() const {return mHal.state.faces;} 71 uint32_t getDimYuv() const {return mHal.state.dimYuv;} 74 rsAssert(lod < mHal.state.lodCount); 75 return mHal.state.lodDimX[lod]; 78 rsAssert(lod < mHal.state.lodCount); 79 return mHal.state.lodDimY[lod] [all...] |
rsProgramRaster.cpp | 27 memset(&mHal, 0, sizeof(mHal)); 28 mHal.state.pointSprite = pointSprite; 29 mHal.state.cull = cull; 30 rsc->mHal.funcs.raster.init(rsc, this); 43 mRSC->mHal.funcs.raster.destroy(mRSC, this); 53 rsc->mHal.funcs.raster.setActive(rsc, this); 85 if (existing->mHal.state.pointSprite != pointSprite) continue; 86 if (existing->mHal.state.cull != cull) continue;
|
rsPath.cpp | 31 memset(&mHal, 0, sizeof(mHal)); 32 mHal.state.quality = quality; 33 mHal.state.primitive = pp; 36 rsc->mHal.funcs.path.initStatic(rsc, this, vtx, loops);
|
rsGrallocConsumer.cpp | 40 uint32_t y = a->mHal.drvState.lod[0].dimY; 42 mConsumer->setDefaultBufferSize(a->mHal.drvState.lod[0].dimX, y); 44 if (a->mHal.state.yuv) { 45 bq->setDefaultBufferFormat(a->mHal.state.yuv); 126 mAlloc->mHal.drvState.lod[0].mallocPtr = reinterpret_cast<uint8_t*>(bufferPointer); 127 mAlloc->mHal.drvState.lod[0].stride = mSlots[buf].mGraphicBuffer->getStride() * 128 mAlloc->mHal.state.type->getElementSizeBytes(); 129 mAlloc->mHal.state.nativeBuffer = mAcquiredBuffer.mGraphicBuffer->getNativeBuffer(); 130 mAlloc->mHal.state.timestamp = b.mTimestamp; 132 assert(mAlloc->mHal.drvState.lod[0].dimX = [all...] |
/frameworks/rs/driver/ |
rsdFrameBuffer.cpp | 33 RsdFrameBufferObj *fbo = (RsdFrameBufferObj*)fb->mHal.drv; 36 if (fb->mHal.state.depthTarget != NULL) { 37 depth = (DrvAllocation *)fb->mHal.state.depthTarget->mHal.drv; 40 rsdAllocationSyncAll(rsc, fb->mHal.state.depthTarget, 48 RsdFrameBufferObj *fbo = (RsdFrameBufferObj*)fb->mHal.drv; 50 for (uint32_t i = 0; i < fb->mHal.state.colorTargetsCount; i ++) { 52 if (fb->mHal.state.colorTargets[i] != NULL) { 53 color = (DrvAllocation *)fb->mHal.state.colorTargets[i]->mHal.drv [all...] |
rsdProgram.cpp | 42 pv->mHal.drv = drv; 48 for (uint32_t ct=0; ct < p->mHal.state.texturesCount; ct++) { 49 const Allocation *a = p->mHal.state.textures[ct]; 53 DrvAllocation *drvAlloc = (DrvAllocation *)a->mHal.drv; 61 RsdHal *dc = (RsdHal *)rsc->mHal.drv; 64 dc->gl.shaderCache->setActiveVertex((RsdShader*)pv->mHal.drv); 68 RsdHal *dc = (RsdHal *)rsc->mHal.drv; 71 if(pv->mHal.drv) { 72 drv = (RsdShader*)pv->mHal.drv; 89 pf->mHal.drv = drv [all...] |
rsdMesh.cpp | 32 if(m->mHal.drv) { 33 drv = (RsdMeshObj*)m->mHal.drv; 37 m->mHal.drv = drv; 42 if(m->mHal.drv) { 43 RsdHal *dc = (RsdHal *)rsc->mHal.drv; 48 RsdMeshObj *drv = (RsdMeshObj*)m->mHal.drv; 54 if(m->mHal.drv) { 55 RsdMeshObj *drv = (RsdMeshObj*)m->mHal.drv;
|
rsdScriptGroup.cpp | 32 RsdHal *dc = (RsdHal *)rsc->mHal.drv; 34 sg->mHal.drv = dc->mCpuRef->createScriptGroup(sg); 35 return sg->mHal.drv != NULL; 47 RsdCpuReference::CpuScriptGroup *sgi = (RsdCpuReference::CpuScriptGroup *)sg->mHal.drv; 52 RsdCpuReference::CpuScriptGroup *sgi = (RsdCpuReference::CpuScriptGroup *)sg->mHal.drv;
|
rsdMeshObj.cpp | 55 RsDataType dt = elem->mHal.state.fields[fieldIdx]->mHal.state.dataType; 63 uint32_t arraySize = elem->mHal.state.fieldArraySizes[fieldIdx]; 77 for (uint32_t ct=0; ct < mRSMesh->mHal.state.vertexBuffersCount; ct++) { 78 const Element *elem = mRSMesh->mHal.state.vertexBuffers[ct]->getType()->getElement(); 79 for (uint32_t ct=0; ct < elem->mHal.state.fieldsCount; ct++) { 100 for (uint32_t ct=0; ct < mRSMesh->mHal.state.vertexBuffersCount; ct++) { 101 const Element *elem = mRSMesh->mHal.state.vertexBuffers[ct]->getType()->getElement(); 102 uint32_t stride = elem->mHal.state.elementSizeBytes; 103 for (uint32_t fieldI=0; fieldI < elem->mHal.state.fieldsCount; fieldI++) [all...] |
rsdProgramStore.cpp | 46 ps->mHal.drv = drv; 49 switch (ps->mHal.state.depthFunc) { 80 if ((ps->mHal.state.blendSrc == RS_BLEND_SRC_ONE) && 81 (ps->mHal.state.blendDst == RS_BLEND_DST_ZERO)) { 85 switch (ps->mHal.state.blendSrc) { 118 switch (ps->mHal.state.blendDst) { 152 ps->mHal.drv = NULL; 157 DrvProgramStore *drv = (DrvProgramStore *)ps->mHal.drv; 159 RSD_CALL_GL(glColorMask, ps->mHal.state.colorRWriteEnable, 160 ps->mHal.state.colorGWriteEnable [all...] |
rsdAllocation.cpp | 95 uint8_t *ptr = (uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr; 96 ptr += face * alloc->mHal.drvState.faceOffset; 97 ptr += zoff * alloc->mHal.drvState.lod[lod].dimY * alloc->mHal.drvState.lod[lod].stride; 98 ptr += yoff * alloc->mHal.drvState.lod[lod].stride; 99 ptr += xoff * alloc->mHal.state.elementSizeBytes; 108 DrvAllocation *drv = (DrvAllocation *)alloc->mHal.drv; 114 if (alloc->mHal.state.hasFaces) { 124 DrvAllocation *drv = (DrvAllocation *)alloc->mHal.drv; 130 if (alloc->mHal.state.hasFaces) [all...] |
rsdShader.cpp | 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++) [all...] |
/frameworks/rs/driver/runtime/ |
rs_mesh.c | 14 return mesh->mHal.state.vertexBuffersCount; 23 return mesh->mHal.state.primitivesCount; 29 if (mesh == NULL || index >= mesh->mHal.state.vertexBuffersCount) { 33 rs_allocation returnAlloc = {mesh->mHal.state.vertexBuffers[index]}; 40 if (mesh == NULL || index >= mesh->mHal.state.primitivesCount) { 44 rs_allocation returnAlloc = {mesh->mHal.state.indexBuffers[index]}; 51 if (mesh == NULL || index >= mesh->mHal.state.primitivesCount) { 54 return mesh->mHal.state.primitives[index];
|
rs_element.c | 14 return element->mHal.state.fieldsCount; 20 if (element == NULL || index >= element->mHal.state.fieldsCount) { 24 rs_element returnElem = {element->mHal.state.fields[index]}; 31 if (element == NULL || index >= element->mHal.state.fieldsCount) { 34 return element->mHal.state.fieldNameLengths[index]; 40 if (element == NULL || index >= element->mHal.state.fieldsCount || 45 uint32_t numToCopy = element->mHal.state.fieldNameLengths[index]; 52 const char *nameSource = element->mHal.state.fieldNames[index]; 62 if (element == NULL || index >= element->mHal.state.fieldsCount) { 65 return element->mHal.state.fieldArraySizes[index] [all...] |
rs_program.c | 14 return prog->mHal.state.depthFunc; 23 return prog->mHal.state.depthWriteEnable; 32 return prog->mHal.state.colorRWriteEnable; 41 return prog->mHal.state.colorGWriteEnable; 50 return prog->mHal.state.colorBWriteEnable; 59 return prog->mHal.state.colorAWriteEnable; 68 return prog->mHal.state.blendSrc; 77 return prog->mHal.state.blendDst; 86 return prog->mHal.state.ditherEnable; 98 return prog->mHal.state.pointSprite [all...] |
rs_structs.h | 63 } mHal; 97 } mHal; 125 } mHal; 157 } mHal; 195 } mHal; 231 } mHal; 265 } mHal;
|
rs_sampler.c | 14 return prog->mHal.state.minFilter; 23 return prog->mHal.state.magFilter; 32 return prog->mHal.state.wrapS; 41 return prog->mHal.state.wrapT; 50 return prog->mHal.state.aniso;
|