Searched refs:mHal (Results 1 - 25 of 90) sorted by relevance

1234

/frameworks/rs/
H A DrsProgram.cpp30 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
[all...]
H A DrsFBOCache.cpp28 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
[all...]
H A DrsMesh.cpp25 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
[all...]
H A DrsType.cpp23 memset(&mHal, 0, sizeof(mHal));
41 if (mHal.state.lodCount) {
42 delete [] mHal.state.lodDimX;
43 delete [] mHal.state.lodDimY;
44 delete [] mHal.state.lodDimZ;
45 delete [] mHal.state.lodOffset;
48 memset(&mHal, 0, sizeof(mHal));
59 rsAssert(mHal
[all...]
H A DrsProgramStore.cpp29 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
[all...]
H A DrsProgramVertex.cpp30 mRSC->mHal.funcs.vertex.init(mRSC, this, mUserShader.string(), mUserShader.length(),
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
[all...]
H A DrsAllocation.cpp32 memset(&mHal, 0, sizeof(mHal));
33 mHal.state.mipmapControl = RS_ALLOCATION_MIPMAP_NONE;
34 mHal.state.usageFlags = usages;
35 mHal.state.mipmapControl = mc;
45 if (!rsc->mHal.funcs.allocation.init(rsc, a, type->getElement()->getHasReferences())) {
55 const Type *type = mHal.state.type;
56 mHal.state.dimensionX = type->getDimX();
57 mHal.state.dimensionY = type->getDimY();
58 mHal
[all...]
H A DrsSampler.cpp37 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
[all...]
H A DrsType.h56 Hal mHal; member in class:android::renderscript::Type
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;}
73 rsAssert(lod < mHal.state.lodCount);
74 return mHal.state.lodDimX[lod];
77 rsAssert(lod < mHal.state.lodCount);
78 return mHal.state.lodDimY[lod];
81 rsAssert(lod < mHal
[all...]
H A DrsProgramRaster.cpp27 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;
/frameworks/rs/driver/
H A DrsdFrameBuffer.cpp33 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
[all...]
H A DrsdProgram.cpp42 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
[all...]
H A DrsdMesh.cpp32 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;
H A DrsdMeshObj.cpp55 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
[all...]
H A DrsdProgramStore.cpp46 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
[all...]
H A DrsdShader.cpp81 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
[all...]
/frameworks/support/renderscript/v8/rs_support/
H A DrsType.cpp23 memset(&mHal, 0, sizeof(mHal));
41 if (mHal.state.lodCount) {
42 delete [] mHal.state.lodDimX;
43 delete [] mHal.state.lodDimY;
44 delete [] mHal.state.lodDimZ;
45 delete [] mHal.state.lodOffset;
48 memset(&mHal, 0, sizeof(mHal));
59 rsAssert(mHal
[all...]
H A DrsScriptC.cpp35 mRSC->mHal.funcs.script.invokeFreeChildren(mRSC, this);
36 mRSC->mHal.funcs.script.destroy(mRSC, this);
44 for (uint32_t ct=0; ct < mHal.info.exportedVariableCount; ct++) {
51 rsc->mHal.funcs.script.setGlobalBind(rsc, this, ct, mSlots[ct].get());
59 if (mHal.info.root == NULL) {
70 ALOGV("%p ScriptC::run invoking root, ptr %p", rsc, mHal.info.root);
73 ret = rsc->mHal.funcs.script.invokeRoot(rsc, this);
95 rsc->mHal.funcs.script.invokeForEach(rsc, this, slot, ain, aout, usr, usrBytes, sc);
99 if (slot >= mHal.info.exportedFunctionCount) {
108 rsc->mHal
[all...]
H A DrsSampler.cpp37 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
[all...]
H A DrsType.h56 Hal mHal; member in class:android::renderscript::Type
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;}
73 rsAssert(lod < mHal.state.lodCount);
74 return mHal.state.lodDimX[lod];
77 rsAssert(lod < mHal.state.lodCount);
78 return mHal.state.lodDimY[lod];
81 rsAssert(lod < mHal
[all...]
/frameworks/compile/libbcc/lib/Renderscript/runtime/
H A Drs_allocation.c9 return alloc->mHal.state.dimensionX;
15 return alloc->mHal.state.dimensionY;
21 return alloc->mHal.state.dimensionZ;
27 return alloc->mHal.state.hasMipmaps;
33 return alloc->mHal.state.hasFaces;
39 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.mallocPtr;
40 const uint32_t eSize = alloc->mHal.state.elementSizeBytes;
47 const uint8_t *p = (const uint8_t *)alloc->mHal.drvState.mallocPtr;
48 const uint32_t eSize = alloc->mHal.state.elementSizeBytes;
49 const uint32_t stride = alloc->mHal
[all...]
H A Drs_mesh.c14 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];
H A Drs_element.c14 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
[all...]
H A Drs_program.c14 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
[all...]
H A Drs_structs.h53 } mHal; member in struct:Allocation
87 } mHal; member in struct:ProgramStore
114 } mHal; member in struct:ProgramRaster
145 } mHal; member in struct:Sampler
183 } mHal; member in struct:Element
219 } mHal; member in struct:Type
253 } mHal; member in struct:Mesh

Completed in 211 milliseconds

1234