Lines Matching refs:mHal
30 mHal.state.inputElementsCount++; in Program()
33 mHal.state.constantsCount++; in Program()
36 mHal.state.texturesCount++; in Program()
40 mHal.state.textures = new ObjectBaseRef<Allocation>[mHal.state.texturesCount]; in Program()
41 mHal.state.samplers = new ObjectBaseRef<Sampler>[mHal.state.texturesCount]; in Program()
42 mHal.state.textureTargets = new RsTextureTarget[mHal.state.texturesCount]; in Program()
43 mHal.state.inputElements = new ObjectBaseRef<Element>[mHal.state.inputElementsCount]; in Program()
44 mHal.state.constantTypes = new ObjectBaseRef<Type>[mHal.state.constantsCount]; in Program()
45 mHal.state.constants = new ObjectBaseRef<Allocation>[mHal.state.constantsCount]; in Program()
52 mHal.state.inputElements[input++].set(reinterpret_cast<Element *>(params[ct+1])); in Program()
55 mHal.state.constantTypes[constant++].set(reinterpret_cast<Type *>(params[ct+1])); in Program()
58 mHal.state.textureTargets[texture++] = (RsTextureTarget)params[ct+1]; in Program()
75 delete[] mHal.state.textures; in ~Program()
76 delete[] mHal.state.samplers; in ~Program()
77 delete[] mHal.state.textureTargets; in ~Program()
78 delete[] mHal.state.inputElements; in ~Program()
79 delete[] mHal.state.constantTypes; in ~Program()
80 delete[] mHal.state.constants; in ~Program()
81 mHal.state.inputElementsCount = 0; in ~Program()
82 mHal.state.constantsCount = 0; in ~Program()
83 mHal.state.texturesCount = 0; in ~Program()
87 for (uint32_t ct=0; ct < mHal.state.constantsCount; ct++) { in freeChildren()
91 for (uint32_t ct=0; ct < mHal.state.texturesCount; ct++) { in freeChildren()
101 mHal.drv = NULL; in initMemberVars()
102 mHal.state.textures = NULL; in initMemberVars()
103 mHal.state.samplers = NULL; in initMemberVars()
104 mHal.state.textureTargets = NULL; in initMemberVars()
105 mHal.state.inputElements = NULL; in initMemberVars()
106 mHal.state.constantTypes = NULL; in initMemberVars()
107 mHal.state.constants = NULL; in initMemberVars()
109 mHal.state.inputElementsCount = 0; in initMemberVars()
110 mHal.state.constantsCount = 0; in initMemberVars()
111 mHal.state.texturesCount = 0; in initMemberVars()
118 if (slot >= mHal.state.constantsCount) { in bindAllocation()
120 slot, (uint32_t)this, mHal.state.constantsCount); in bindAllocation()
124 if (alloc->getType() != mHal.state.constantTypes[slot].get()) { in bindAllocation()
131 if (mHal.state.constants[slot].get() == alloc) { in bindAllocation()
134 if (mHal.state.constants[slot].get()) { in bindAllocation()
135 mHal.state.constants[slot].get()->removeProgramToDirty(this); in bindAllocation()
137 mHal.state.constants[slot].set(alloc); in bindAllocation()
145 if (slot >= mHal.state.texturesCount) { in bindTexture()
146 … LOGE("Attempt to bind texture to slot %u but tex count is %u", slot, mHal.state.texturesCount); in bindTexture()
151 if (a && a->getType()->getDimFaces() && mHal.state.textureTargets[slot] != RS_TEXTURE_CUBE) { in bindTexture()
157 mHal.state.textures[slot].set(a); in bindTexture()
162 if (slot >= mHal.state.texturesCount) { in bindSampler()
163 … LOGE("Attempt to bind sampler to slot %u but tex count is %u", slot, mHal.state.texturesCount); in bindSampler()
168 mHal.state.samplers[slot].set(s); in bindSampler()