Home
last modified time | relevance | path

Searched refs:slot (Results 1 – 25 of 122) sorted by relevance

12345

/frameworks/rs/
DrsScript.cpp45 void Script::setSlot(uint32_t slot, Allocation *a) { in setSlot() argument
47 if (slot >= mHal.info.exportedVariableCount) { in setSlot()
54 mSlots[slot].set(a); in setSlot()
56 mRSC->mHal.funcs.script.setGlobalBind(mRSC, this, slot, a); in setSlot()
59 void Script::setVar(uint32_t slot, const void *val, size_t len) { in setVar() argument
61 if (slot >= mHal.info.exportedVariableCount) { in setVar()
67 mRSC->mHal.funcs.script.setGlobalVar(mRSC, this, slot, (void *)val, len); in setVar()
70 void Script::getVar(uint32_t slot, const void *val, size_t len) { in getVar() argument
72 if (slot >= mHal.info.exportedVariableCount) { in getVar()
74 "%u >= %zu", slot, mHal.info.exportedVariableCount); in getVar()
[all …]
DrsProgram.cpp152 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()
[all …]
DrsScript.h38 IDBase(Context *rsc, Script *s, int slot) : in IDBase() argument
39 ObjectBase(rsc), mScript(s), mSlot(slot) {} in IDBase()
51 ScriptKernelID(Context *rsc, Script *s, int slot, int sig);
62 ScriptInvokeID(Context *rsc, Script *s, int slot);
70 ScriptFieldID(Context *rsc, Script *s, int slot);
115 void setSlot(uint32_t slot, Allocation *a);
116 void setVar(uint32_t slot, const void *val, size_t len);
117 void getVar(uint32_t slot, const void *val, size_t len);
118 void setVar(uint32_t slot, const void *val, size_t len, Element *e,
120 void setVarObj(uint32_t slot, ObjectBase *val);
[all …]
DrsScriptC_LibGL.cpp49 void rsrBindTexture(Context *rsc, ProgramFragment *pf, uint32_t slot, Allocation *a) { in rsrBindTexture() argument
52 pf->bindTexture(rsc, slot, a); in rsrBindTexture()
55 void rsrBindConstant(Context *rsc, ProgramFragment *pf, uint32_t slot, Allocation *a) { in rsrBindConstant() argument
58 pf->bindAllocation(rsc, a, slot); in rsrBindConstant()
61 void rsrBindConstant(Context *rsc, ProgramVertex *pv, uint32_t slot, Allocation *a) { in rsrBindConstant() argument
64 pv->bindAllocation(rsc, a, slot); in rsrBindConstant()
67 void rsrBindSampler(Context *rsc, ProgramFragment *pf, uint32_t slot, Sampler *s) { in rsrBindSampler() argument
70 pf->bindSampler(rsc, slot, s); in rsrBindSampler()
93 void rsrBindFrameBufferObjectColorTarget(Context *rsc, Allocation *a, uint32_t slot) { in rsrBindFrameBufferObjectColorTarget() argument
95 rsc->mFBOCache.bindColorTarget(rsc, a, slot); in rsrBindFrameBufferObjectColorTarget()
[all …]
/frameworks/native/libs/gui/
DBufferQueueCore.cpp84 for (int slot = 0; slot < BufferQueueDefs::NUM_BUFFER_SLOTS; ++slot) { in BufferQueueCore() local
85 mFreeSlots.insert(slot); in BufferQueueCore()
116 const BufferSlot& slot(mSlots[s]); in dump() local
117 if (slot.mBufferState != BufferSlot::FREE || in dump()
118 slot.mGraphicBuffer != NULL) { in dump()
125 const BufferSlot& slot(mSlots[s]); in dump() local
126 const sp<GraphicBuffer>& buffer(slot.mGraphicBuffer); in dump()
128 (slot.mBufferState == BufferSlot::ACQUIRED) ? ">" : " ", in dump()
130 BufferSlot::bufferStateName(slot.mBufferState)); in dump()
199 void BufferQueueCore::freeBufferLocked(int slot) { in freeBufferLocked() argument
[all …]
DConsumerBase.cpp186 status_t ConsumerBase::detachBuffer(int slot) { in detachBuffer() argument
190 status_t result = mConsumer->detachBuffer(slot); in detachBuffer()
196 freeBufferLocked(slot); in detachBuffer()
254 status_t ConsumerBase::addReleaseFence(int slot, in addReleaseFence() argument
257 return addReleaseFenceLocked(slot, graphicBuffer, fence); in addReleaseFence()
260 status_t ConsumerBase::addReleaseFenceLocked(int slot, in addReleaseFenceLocked() argument
262 CB_LOGV("addReleaseFenceLocked: slot=%d", slot); in addReleaseFenceLocked()
266 if (!stillTracking(slot, graphicBuffer)) { in addReleaseFenceLocked()
270 if (!mSlots[slot].mFence.get()) { in addReleaseFenceLocked()
271 mSlots[slot].mFence = fence; in addReleaseFenceLocked()
[all …]
DBufferQueueConsumer.cpp165 int slot = front->mSlot; in acquireBuffer() local
167 ATRACE_BUFFER_INDEX(slot); in acquireBuffer()
170 slot, front->mFrameNumber, front->mGraphicBuffer->handle); in acquireBuffer()
173 mSlots[slot].mAcquireCalled = true; in acquireBuffer()
174 mSlots[slot].mNeedsCleanupOnRelease = false; in acquireBuffer()
175 mSlots[slot].mBufferState = BufferSlot::ACQUIRED; in acquireBuffer()
176 mSlots[slot].mFence = Fence::NO_FENCE; in acquireBuffer()
207 status_t BufferQueueConsumer::detachBuffer(int slot) { in detachBuffer() argument
209 ATRACE_BUFFER_INDEX(slot); in detachBuffer()
210 BQ_LOGV("detachBuffer(C): slot %d", slot); in detachBuffer()
[all …]
DBufferQueueProducer.cpp50 status_t BufferQueueProducer::requestBuffer(int slot, sp<GraphicBuffer>* buf) { in requestBuffer() argument
52 BQ_LOGV("requestBuffer: slot %d", slot); in requestBuffer()
60 if (slot < 0 || slot >= BufferQueueDefs::NUM_BUFFER_SLOTS) { in requestBuffer()
62 slot, BufferQueueDefs::NUM_BUFFER_SLOTS); in requestBuffer()
64 } else if (mSlots[slot].mBufferState != BufferSlot::DEQUEUED) { in requestBuffer()
66 "(state = %d)", slot, mSlots[slot].mBufferState); in requestBuffer()
70 mSlots[slot].mRequestBufferCalled = true; in requestBuffer()
71 *buf = mSlots[slot].mGraphicBuffer; in requestBuffer()
219 auto slot = mCore->mFreeBuffers.begin(); in waitForFreeSlotThenRelock() local
220 *found = *slot; in waitForFreeSlotThenRelock()
[all …]
/frameworks/av/media/libstagefright/codecs/mp3dec/src/
Dpvmp3_imdct_synth.cpp319 for (int32 slot = 1; slot < FILTERBANK_BANDS; slot += 6) in pvmp3_imdct_synth() local
321 int32 temp1 = out[slot ]; in pvmp3_imdct_synth()
322 int32 temp2 = out[slot+2]; in pvmp3_imdct_synth()
323 int32 temp3 = out[slot+4]; in pvmp3_imdct_synth()
324 out[slot ] = -temp1; in pvmp3_imdct_synth()
325 out[slot+2] = -temp2; in pvmp3_imdct_synth()
326 out[slot+4] = -temp3; in pvmp3_imdct_synth()
336 int32 slot; in pvmp3_imdct_synth() local
340 for (slot = 0; slot < FILTERBANK_BANDS; slot += 6) in pvmp3_imdct_synth()
342 int32 temp1 = history[slot ]; in pvmp3_imdct_synth()
[all …]
/frameworks/base/rs/java/android/renderscript/
DProgram.java97 public Type getConstant(int slot) { in getConstant() argument
98 if (slot < 0 || slot >= mConstants.length) { in getConstant()
101 return mConstants[slot]; in getConstant()
117 public TextureType getTextureType(int slot) { in getTextureType() argument
118 if ((slot < 0) || (slot >= mTextureCount)) { in getTextureType()
121 return mTextures[slot]; in getTextureType()
130 public String getTextureName(int slot) { in getTextureName() argument
131 if ((slot < 0) || (slot >= mTextureCount)) { in getTextureName()
134 return mTextureNames[slot]; in getTextureName()
145 public void bindConstants(Allocation a, int slot) { in bindConstants() argument
[all …]
DScript.java39 KernelID(long id, RenderScript rs, Script s, int slot, int sig) { in KernelID() argument
42 mSlot = slot; in KernelID()
51 protected KernelID createKernelID(int slot, int sig, Element ein, in createKernelID() argument
53 KernelID k = mKIDs.get(slot); in createKernelID()
58 long id = mRS.nScriptKernelIDCreate(getID(mRS), slot, sig); in createKernelID()
63 k = new KernelID(id, mRS, this, slot, sig); in createKernelID()
64 mKIDs.put(slot, k); in createKernelID()
79 InvokeID(long id, RenderScript rs, Script s, int slot) { in InvokeID() argument
82 mSlot = slot; in InvokeID()
90 protected InvokeID createInvokeID(int slot) { in createInvokeID() argument
[all …]
DRenderScript.java276 native void rsnContextBindSampler(long con, int sampler, int slot); in rsnContextBindSampler() argument
277 synchronized void nContextBindSampler(int sampler, int slot) { in nContextBindSampler() argument
279 rsnContextBindSampler(mContext, sampler, slot); in nContextBindSampler()
704 native void rsnScriptBindAllocation(long con, long script, long alloc, int slot); in rsnScriptBindAllocation() argument
705 synchronized void nScriptBindAllocation(long script, long alloc, int slot) { in nScriptBindAllocation() argument
707 rsnScriptBindAllocation(mContext, script, alloc, slot); in nScriptBindAllocation()
714 native void rsnScriptInvoke(long con, long id, int slot); in rsnScriptInvoke() argument
715 synchronized void nScriptInvoke(long id, int slot) { in nScriptInvoke() argument
717 rsnScriptInvoke(mContext, id, slot); in nScriptInvoke()
720 native void rsnScriptForEach(long con, long id, int slot, long[] ains, in rsnScriptForEach() argument
[all …]
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
DScript.java68 KernelID(long id, RenderScript rs, Script s, int slot, int sig) { in KernelID() argument
71 mSlot = slot; in KernelID()
88 protected KernelID createKernelID(int slot, int sig, Element ein, Element eout) { in createKernelID() argument
89 KernelID k = mKIDs.get(slot); in createKernelID()
94 long id = mRS.nScriptKernelIDCreate(getID(mRS), slot, sig, mUseIncSupp); in createKernelID()
99 k = new KernelID(id, mRS, this, slot, sig); in createKernelID()
101 mKIDs.put(slot, k); in createKernelID()
116 InvokeID(long id, RenderScript rs, Script s, int slot) { in InvokeID() argument
119 mSlot = slot; in InvokeID()
127 protected InvokeID createInvokeID(int slot) { in createInvokeID() argument
[all …]
/frameworks/rs/cpu_ref/
DrsCpuIntrinsic.cpp34 void RsdCpuScriptIntrinsic::invokeFunction(uint32_t slot, const void *params, size_t paramLength) { in invokeFunction() argument
50 void RsdCpuScriptIntrinsic::setGlobalVar(uint32_t slot, const void *data, size_t dataLength) { in setGlobalVar() argument
55 void RsdCpuScriptIntrinsic::setGlobalVarWithElemDims(uint32_t slot, const void *data, in setGlobalVarWithElemDims() argument
62 void RsdCpuScriptIntrinsic::setGlobalBind(uint32_t slot, Allocation *data) { in setGlobalBind() argument
67 void RsdCpuScriptIntrinsic::setGlobalObj(uint32_t slot, ObjectBase *data) { in setGlobalObj() argument
76 void RsdCpuScriptIntrinsic::preLaunch(uint32_t slot, const Allocation ** ains, in preLaunch() argument
82 void RsdCpuScriptIntrinsic::postLaunch(uint32_t slot, const Allocation ** ains, in postLaunch() argument
88 void RsdCpuScriptIntrinsic::invokeForEach(uint32_t slot, in invokeForEach() argument
98 preLaunch(slot, ains, inLen, aout, usr, usrLen, sc); in invokeForEach()
102 mtls.fep.slot = slot; in invokeForEach()
[all …]
DrsCpuIntrinsic.h31 void invokeFunction(uint32_t slot, const void * params, size_t paramLength) override;
34 void invokeForEach(uint32_t slot,
42 void forEachKernelSetup(uint32_t slot, MTLaunchStruct * mtls) override;
46 void preLaunch(uint32_t slot, const Allocation ** ains,
49 void postLaunch(uint32_t slot, const Allocation ** ains,
54 void setGlobalVar(uint32_t slot, const void * data, size_t dataLength) override;
55 void setGlobalVarWithElemDims(uint32_t slot, const void * data,
59 void setGlobalBind(uint32_t slot, Allocation *data) override;
60 void setGlobalObj(uint32_t slot, ObjectBase *data) override;
DrsCpuExecutable.h134 void* getFieldAddress(int slot) const { return mFieldAddress[slot]; } in getFieldAddress() argument
136 bool getFieldIsObject(int slot) const { return mFieldIsObject[slot]; } in getFieldIsObject() argument
137 const char* getFieldName(int slot) const { return mFieldName[slot]; } in getFieldName() argument
139 InvokeFunc_t getInvokeFunction(int slot) const { return mInvokeFunctions[slot]; } in getInvokeFunction() argument
141 ForEachFunc_t getForEachFunction(int slot) const { return mForEachFunctions[slot]; } in getForEachFunction() argument
142 uint32_t getForEachSignature(int slot) const { return mForEachSignatures[slot]; } in getForEachSignature() argument
DrsCpuScript.h62 void invokeFunction(uint32_t slot, const void *params, size_t paramLength) override;
64 virtual void preLaunch(uint32_t slot, const Allocation ** ains,
67 virtual void postLaunch(uint32_t slot, const Allocation ** ains,
72 void invokeForEach(uint32_t slot,
83 void setGlobalVar(uint32_t slot, const void *data, size_t dataLength) override;
84 void getGlobalVar(uint32_t slot, void *data, size_t dataLength) override;
85 void setGlobalVarWithElemDims(uint32_t slot, const void *data, size_t dataLength,
88 void setGlobalBind(uint32_t slot, Allocation *data) override;
89 void setGlobalObj(uint32_t slot, ObjectBase *data) override;
91 const char* getFieldName(uint32_t slot) const;
[all …]
/frameworks/native/libs/gui/tests/
DBufferQueue_test.cpp112 int slot; in TEST_F() local
116 mProducer->dequeueBuffer(&slot, &fence, false, 0, 0, 0, in TEST_F()
118 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buffer)); in TEST_F()
129 ASSERT_EQ(OK, mProducer->queueBuffer(slot, input, &output)); in TEST_F()
150 int slot; in TEST_F() local
160 mProducer->dequeueBuffer(&slot, &fence, false, 1, 1, 0, in TEST_F()
162 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buf)); in TEST_F()
163 ASSERT_EQ(OK, mProducer->queueBuffer(slot, qbi, &qbo)); in TEST_F()
168 mProducer->dequeueBuffer(&slot, &fence, false, 1, 1, 0, in TEST_F()
170 ASSERT_EQ(OK, mProducer->requestBuffer(slot, &buf)); in TEST_F()
[all …]
DStreamSplitter_test.cpp102 int slot; in TEST_F() local
106 inputProducer->dequeueBuffer(&slot, &fence, false, 0, 0, 0, in TEST_F()
108 ASSERT_EQ(OK, inputProducer->requestBuffer(slot, &buffer)); in TEST_F()
120 ASSERT_EQ(OK, inputProducer->queueBuffer(slot, qbInput, &qbOutput)); in TEST_F()
135 inputProducer->dequeueBuffer(&slot, &fence, false, 0, 0, 0, in TEST_F()
169 int slot; in TEST_F() local
173 inputProducer->dequeueBuffer(&slot, &fence, false, 0, 0, 0, in TEST_F()
175 ASSERT_EQ(OK, inputProducer->requestBuffer(slot, &buffer)); in TEST_F()
187 ASSERT_EQ(OK, inputProducer->queueBuffer(slot, qbInput, &qbOutput)); in TEST_F()
205 inputProducer->dequeueBuffer(&slot, &fence, false, 0, 0, 0, in TEST_F()
[all …]
/frameworks/rs/driver/
DrsdBcc.cpp71 uint32_t slot, in rsdScriptInvokeForEach() argument
79 rsdScriptInvokeForEachMulti(rsc, s, slot, nullptr, 0, aout, usr, usrLen, in rsdScriptInvokeForEach()
84 rsdScriptInvokeForEachMulti(rsc, s, slot, ains, 1, aout, usr, usrLen, in rsdScriptInvokeForEach()
91 uint32_t slot, in rsdScriptInvokeForEachMulti() argument
100 cs->invokeForEach(slot, ains, inLen, aout, usr, usrLen, sc); in rsdScriptInvokeForEachMulti()
120 uint32_t slot, in rsdScriptInvokeFunction() argument
124 cs->invokeFunction(slot, params, paramLength); in rsdScriptInvokeFunction()
128 uint32_t slot, void *data, size_t dataLength) { in rsdScriptSetGlobalVar() argument
130 cs->setGlobalVar(slot, data, dataLength); in rsdScriptSetGlobalVar()
134 uint32_t slot, void *data, size_t dataLength) { in rsdScriptGetGlobalVar() argument
[all …]
DrsdBcc.h33 uint32_t slot,
39 uint32_t slot,
48 uint32_t slot,
65 uint32_t slot, void *data, size_t dataLen);
68 uint32_t slot, void *data, size_t dataLen);
71 uint32_t slot, void *data,
78 uint32_t slot, android::renderscript::Allocation *data);
81 uint32_t slot, android::renderscript::ObjectBase *data);
85 uint32_t slot,
90 uint32_t slot,
DrsdVertexArray.cpp66 void RsdVertexArray::logAttrib(uint32_t idx, uint32_t slot) const { in logAttrib()
71 idx, slot, in logAttrib()
100 int32_t slot = sc->vtxAttribSlot(mAttribs[ct].name); in setup() local
102 logAttrib(ct, slot); in setup()
104 if (slot < 0 || slot >= (int32_t)maxAttrs) { in setup()
107 glEnableVertexAttribArray(slot); in setup()
108 state->mAttrsEnabled[slot] = true; in setup()
110 glVertexAttribPointer(slot, in setup()
/frameworks/native/services/surfaceflinger/
DMonitoredProducer.cpp55 status_t MonitoredProducer::requestBuffer(int slot, sp<GraphicBuffer>* buf) { in requestBuffer() argument
56 return mProducer->requestBuffer(slot, buf); in requestBuffer()
63 status_t MonitoredProducer::dequeueBuffer(int* slot, sp<Fence>* fence, in dequeueBuffer() argument
65 return mProducer->dequeueBuffer(slot, fence, async, w, h, format, usage); in dequeueBuffer()
68 status_t MonitoredProducer::detachBuffer(int slot) { in detachBuffer() argument
69 return mProducer->detachBuffer(slot); in detachBuffer()
82 status_t MonitoredProducer::queueBuffer(int slot, const QueueBufferInput& input, in queueBuffer() argument
84 return mProducer->queueBuffer(slot, input, output); in queueBuffer()
87 void MonitoredProducer::cancelBuffer(int slot, const sp<Fence>& fence) { in cancelBuffer() argument
88 mProducer->cancelBuffer(slot, fence); in cancelBuffer()
/frameworks/compile/libbcc/lib/Renderscript/
DRSScriptGroupFusion.cpp39 const Function* getInvokeFunction(const Source& source, const int slot, in getInvokeFunction() argument
45 source.getName().c_str(), slot); in getInvokeFunction()
48 const char* functionName = metadata.getExportFuncNameList()[slot]; in getInvokeFunction()
57 getFunction(Module* mergedModule, const Source* source, const int slot, in getFunction() argument
62 const char* functionName = metadata.getExportForEachNameList()[slot]; in getFunction()
65 source->getName().c_str(), slot); in getFunction()
69 if (metadata.getExportForEachInputCountList()[slot] > 1) { in getFunction()
76 *signature = metadata.getExportForEachSignatureList()[slot]; in getFunction()
105 const int slot = *slotIter++; in getFusedFuncSig() local
109 if (metadata.getExportForEachInputCountList()[slot] > 1) { in getFusedFuncSig()
[all …]
/frameworks/rs/cpp/
DScript.cpp25 void Script::invoke(uint32_t slot, const void *v, size_t len) const { in invoke() argument
26 tryDispatch(mRS, RS::dispatch->ScriptInvokeV(mRS->getContext(), getID(), slot, v, len)); in invoke()
29 void Script::forEach(uint32_t slot, sp<const Allocation> ain, sp<const Allocation> aout, in forEach() argument
36 …tryDispatch(mRS, RS::dispatch->ScriptForEach(mRS->getContext(), getID(), slot, in_id, out_id, usr,… in forEach()
44 void Script::bindAllocation(sp<Allocation> va, uint32_t slot) const { in bindAllocation()
45 …(mRS, RS::dispatch->ScriptBindAllocation(mRS->getContext(), getID(), BaseObj::getObjID(va), slot)); in bindAllocation()

12345