Home | History | Annotate | Download | only in rs

Lines Matching refs:alloc

139 void Program::bindAllocation(Context *rsc, Allocation *alloc, uint32_t slot) {
140 if (alloc != NULL) {
142 ALOGE("Attempt to bind alloc at slot %u, on shader id %u, but const count is %u",
147 if (alloc->getType() != mConstantTypes[slot].get()) {
148 ALOGE("Attempt to bind alloc at slot %u, on shader id %u, but types mismatch",
154 if (mConstants[slot].get() == alloc) {
160 mConstants[slot].set(alloc);
161 mHal.state.constants[slot] = alloc;
162 if (alloc) {
163 alloc->addProgramToDirty(this);