Lines Matching defs:alloc
152 void Program::bindAllocation(Context *rsc, Allocation *alloc, uint32_t slot) {
153 if (alloc != NULL) {
155 ALOGE("Attempt to bind alloc at slot %u, on shader id %" PRIuPTR ", but const count is %u",
160 if (alloc->getType() != mConstantTypes[slot].get()) {
161 ALOGE("Attempt to bind alloc at slot %u, on shader id %" PRIuPTR ", but types mismatch",
167 if (mConstants[slot].get() == alloc) {
173 mConstants[slot].set(alloc);
174 mHal.state.constants[slot] = alloc;
175 if (alloc) {
176 alloc->addProgramToDirty(this);