Lines Matching refs:slot

152 void Program::bindAllocation(Context *rsc, Allocation *alloc, uint32_t slot) {  in bindAllocation()  argument
154 if (slot >= mHal.state.constantsCount) { in bindAllocation()
156 slot, (uintptr_t)this, mHal.state.constantsCount); in bindAllocation()
160 if (alloc->getType() != mConstantTypes[slot].get()) { in bindAllocation()
162 slot, (uintptr_t)this); in bindAllocation()
167 if (mConstants[slot].get() == alloc) { in bindAllocation()
170 if (mConstants[slot].get()) { in bindAllocation()
171 mConstants[slot]->removeProgramToDirty(this); in bindAllocation()
173 mConstants[slot].set(alloc); in bindAllocation()
174 mHal.state.constants[slot] = alloc; in bindAllocation()
181 void Program::bindTexture(Context *rsc, uint32_t slot, Allocation *a) { in bindTexture() argument
182 if (slot >= mHal.state.texturesCount) { in bindTexture()
183 … ALOGE("Attempt to bind texture to slot %u but tex count is %u", slot, mHal.state.texturesCount); in bindTexture()
188 if (a && a->getType()->getDimFaces() && mHal.state.textureTargets[slot] != RS_TEXTURE_CUBE) { in bindTexture()
189 ALOGE("Attempt to bind cubemap to slot %u but 2d texture needed", slot); in bindTexture()
194 mTextures[slot].set(a); in bindTexture()
195 mHal.state.textures[slot] = a; in bindTexture()
200 void Program::bindSampler(Context *rsc, uint32_t slot, Sampler *s) { in bindSampler() argument
201 if (slot >= mHal.state.texturesCount) { in bindSampler()
202 … ALOGE("Attempt to bind sampler to slot %u but tex count is %u", slot, mHal.state.texturesCount); in bindSampler()
207 mSamplers[slot].set(s); in bindSampler()
208 mHal.state.samplers[slot] = s; in bindSampler()
212 void rsi_ProgramBindConstants(Context *rsc, RsProgram vp, uint32_t slot, RsAllocation constants) { in rsi_ProgramBindConstants() argument
214 p->bindAllocation(rsc, static_cast<Allocation *>(constants), slot); in rsi_ProgramBindConstants()
217 void rsi_ProgramBindTexture(Context *rsc, RsProgram vpf, uint32_t slot, RsAllocation a) { in rsi_ProgramBindTexture() argument
219 p->bindTexture(rsc, slot, static_cast<Allocation *>(a)); in rsi_ProgramBindTexture()
222 void rsi_ProgramBindSampler(Context *rsc, RsProgram vpf, uint32_t slot, RsSampler s) { in rsi_ProgramBindSampler() argument
224 p->bindSampler(rsc, slot, static_cast<Sampler *>(s)); in rsi_ProgramBindSampler()