• Home
  • Raw
  • Download

Lines Matching refs:slot

139 void Program::bindAllocation(Context *rsc, Allocation *alloc, uint32_t slot) {  in bindAllocation()  argument
141 if (slot >= mHal.state.constantsCount) { in bindAllocation()
143 slot, (uint32_t)this, mHal.state.constantsCount); in bindAllocation()
147 if (alloc->getType() != mConstantTypes[slot].get()) { in bindAllocation()
149 slot, (uint32_t)this); in bindAllocation()
154 if (mConstants[slot].get() == alloc) { in bindAllocation()
157 if (mConstants[slot].get()) { in bindAllocation()
158 mConstants[slot]->removeProgramToDirty(this); in bindAllocation()
160 mConstants[slot].set(alloc); in bindAllocation()
161 mHal.state.constants[slot] = alloc; in bindAllocation()
168 void Program::bindTexture(Context *rsc, uint32_t slot, Allocation *a) { in bindTexture() argument
169 if (slot >= mHal.state.texturesCount) { in bindTexture()
170 … ALOGE("Attempt to bind texture to slot %u but tex count is %u", slot, mHal.state.texturesCount); in bindTexture()
175 if (a && a->getType()->getDimFaces() && mHal.state.textureTargets[slot] != RS_TEXTURE_CUBE) { in bindTexture()
176 ALOGE("Attempt to bind cubemap to slot %u but 2d texture needed", slot); in bindTexture()
181 mTextures[slot].set(a); in bindTexture()
182 mHal.state.textures[slot] = a; in bindTexture()
187 void Program::bindSampler(Context *rsc, uint32_t slot, Sampler *s) { in bindSampler() argument
188 if (slot >= mHal.state.texturesCount) { in bindSampler()
189 … ALOGE("Attempt to bind sampler to slot %u but tex count is %u", slot, mHal.state.texturesCount); in bindSampler()
194 mSamplers[slot].set(s); in bindSampler()
195 mHal.state.samplers[slot] = s; in bindSampler()
202 void rsi_ProgramBindConstants(Context *rsc, RsProgram vp, uint32_t slot, RsAllocation constants) { in rsi_ProgramBindConstants() argument
204 p->bindAllocation(rsc, static_cast<Allocation *>(constants), slot); in rsi_ProgramBindConstants()
207 void rsi_ProgramBindTexture(Context *rsc, RsProgram vpf, uint32_t slot, RsAllocation a) { in rsi_ProgramBindTexture() argument
209 p->bindTexture(rsc, slot, static_cast<Allocation *>(a)); in rsi_ProgramBindTexture()
212 void rsi_ProgramBindSampler(Context *rsc, RsProgram vpf, uint32_t slot, RsSampler s) { in rsi_ProgramBindSampler() argument
214 p->bindSampler(rsc, slot, static_cast<Sampler *>(s)); in rsi_ProgramBindSampler()