Home
last modified time | relevance | path

Searched refs:pf (Results 1 – 25 of 56) sorted by relevance

123

/frameworks/rs/driver/
DrsdProgram.cpp86 bool rsdProgramFragmentInit(const Context *rsc, const ProgramFragment *pf, in rsdProgramFragmentInit() argument
90 RsdShader *drv = new RsdShader(pf, GL_FRAGMENT_SHADER, shader, shaderLen, in rsdProgramFragmentInit()
92 pf->mHal.drv = drv; in rsdProgramFragmentInit()
97 void rsdProgramFragmentSetActive(const Context *rsc, const ProgramFragment *pf) { in rsdProgramFragmentSetActive() argument
100 SyncProgramConstants(rsc, pf); in rsdProgramFragmentSetActive()
101 dc->gl.shaderCache->setActiveFragment((RsdShader*)pf->mHal.drv); in rsdProgramFragmentSetActive()
104 void rsdProgramFragmentDestroy(const Context *rsc, const ProgramFragment *pf) { in rsdProgramFragmentDestroy() argument
108 if(pf->mHal.drv) { in rsdProgramFragmentDestroy()
109 drv = (RsdShader*)pf->mHal.drv; in rsdProgramFragmentDestroy()
111 ALOGV("Destroying fragment shader with ID %p", (void*)pf); in rsdProgramFragmentDestroy()
DrsdShaderCache.h46 void setActiveFragment(RsdShader *pf) { in setActiveFragment() argument
48 mFragment = pf; in setActiveFragment()
/frameworks/av/media/codec2/vndk/internal/
DC2ParamInternal.h41 inline static uint32_t GetIndex(const C2ParamField &pf) { in GetIndex()
42 return pf._mIndex; in GetIndex()
45 inline static uint32_t GetOffset(const C2ParamField &pf) { in GetOffset()
46 return pf._mFieldId._mOffset; in GetOffset()
49 inline static uint32_t GetSize(const C2ParamField &pf) { in GetSize()
50 return pf._mFieldId._mSize; in GetSize()
69 inline static _C2FieldId GetField(const C2ParamField &pf) { in GetField()
70 return pf._mFieldId; in GetField()
/frameworks/rs/
DrsScriptC_LibGL.cpp45 void rsrBindTexture(Context *rsc, ProgramFragment *pf, uint32_t slot, Allocation *a) { in rsrBindTexture() argument
47 CHECK_OBJ(pf); in rsrBindTexture()
48 pf->bindTexture(rsc, slot, a); in rsrBindTexture()
51 void rsrBindConstant(Context *rsc, ProgramFragment *pf, uint32_t slot, Allocation *a) { in rsrBindConstant() argument
53 CHECK_OBJ(pf); in rsrBindConstant()
54 pf->bindAllocation(rsc, a, slot); in rsrBindConstant()
63 void rsrBindSampler(Context *rsc, ProgramFragment *pf, uint32_t slot, Sampler *s) { in rsrBindSampler() argument
66 pf->bindSampler(rsc, slot, s); in rsrBindSampler()
74 void rsrBindProgramFragment(Context *rsc, ProgramFragment *pf) { in rsrBindProgramFragment() argument
75 CHECK_OBJ_OR_NULL(pf); in rsrBindProgramFragment()
[all …]
DrsProgramFragment.cpp120 ProgramFragment *pf = new ProgramFragment(rsc, shaderString, strlen(shaderString), in init() local
122 pf->bindAllocation(rsc, constAlloc, 0); in init()
123 pf->setConstantColor(rsc, 1.0f, 1.0f, 1.0f, 1.0f); in init()
125 mDefault.set(pf); in init()
139 ProgramFragment *pf = new ProgramFragment(rsc, shaderText, shaderLength, in rsi_ProgramFragmentCreate() local
142 pf->incUserRef(); in rsi_ProgramFragmentCreate()
144 return pf; in rsi_ProgramFragmentCreate()
Drsg.spec30 param RsProgramFragment pf
36 param RsProgramFragment pf
DrsContext.cpp636 void Context::setProgramFragment(ProgramFragment *pf) { in setProgramFragment() argument
638 if (pf == nullptr) { in setProgramFragment()
641 mFragment.set(pf); in setProgramFragment()
779 ProgramFragment *pf = static_cast<ProgramFragment *>(vpf); in rsi_ContextBindProgramFragment() local
780 rsc->setProgramFragment(pf); in rsi_ContextBindProgramFragment()
Drs_hal.h338 bool (*init)(const Context *rsc, const ProgramFragment *pf,
342 void (*setActive)(const Context *rsc, const ProgramFragment *pf);
343 void (*destroy)(const Context *rsc, const ProgramFragment *pf);
/frameworks/base/services/core/java/com/android/server/
DPinnerService.java364 PinnedFile pf = mInjector.pinFileInternal(fileToPin, Integer.MAX_VALUE, in handlePinOnStart() local
366 if (pf == null) { in handlePinOnStart()
371 mPinnedFiles.put(pf.fileName, pf); in handlePinOnStart()
373 pf.groupName = "system"; in handlePinOnStart()
374 pinOptimizedDexDependencies(pf, Integer.MAX_VALUE, null); in handlePinOnStart()
865 … PinnedFile pf = mInjector.pinFileInternal(apk, apkPinSizeLimit, /*attemptPinIntrospection=*/true); in pinApp() local
866 if (pf == null) { in pinApp()
870 pf.groupName = getNameForKey(key); in pinApp()
873 Slog.i(TAG, "Pinned " + pf.fileName); in pinApp()
876 pinnedApp.mFiles.add(pf); in pinApp()
[all …]
/frameworks/base/rs/java/android/renderscript/
DProgramFragmentFixedFunction.java78 ProgramFragmentFixedFunction pf = new ProgramFragmentFixedFunction(id, mRS); in create() local
79 initProgram(pf); in create()
80 return pf; in create()
327 ProgramFragmentFixedFunction pf = sb.create(); in create() local
328 pf.mTextureCount = MAX_TEXTURE; in create()
335 pf.bindConstants(constantData, 0); in create()
337 return pf; in create()
DProgramFragment.java93 ProgramFragment pf = new ProgramFragment(id, mRS); in create() local
94 initProgram(pf); in create()
95 return pf; in create()
/frameworks/rs/toolkit/
DBlur.cpp151 float4 pf = convert<float4>(pvy[0]); in OneVU4() local
152 blurredPixel += pf * gPtr[0]; in OneVU4()
180 float pf = (float)pi[validY * iStride]; in OneVU1() local
181 blurredPixel += pf * gPtr[0]; in OneVU1()
238 float4 pf = convert<float4>(((const uchar4 *)pi)[0]); in OneVFU4() local
239 blurredPixel += pf * gp[0]; in OneVFU4()
272 float pf = (float)pi[0]; in OneVFU1() local
273 blurredPixel += pf * gp[0]; in OneVFU1()
303 float pf = (float)pi[0]; in OneVFU1() local
304 blurredPixel += pf * gp[0]; in OneVFU1()
[all …]
Dx86.cpp348 __m128 pf, x, y; in rsdIntrinsicBlurHFU4_K() local
358 pf = _mm_mul_ps(x, _mm_load_ps(pi)); in rsdIntrinsicBlurHFU4_K()
366 pf = _mm_add_ps(pf, _mm_mul_ps(x, _mm_load_ps(pi + (r << 2)))); in rsdIntrinsicBlurHFU4_K()
367 pf = _mm_add_ps(pf, _mm_mul_ps(y, _mm_load_ps(pi + (r << 2) + 4))); in rsdIntrinsicBlurHFU4_K()
370 o = _mm_cvtps_epi32(pf); in rsdIntrinsicBlurHFU4_K()
381 __m128 pf, g0, g1, g2, g3, gx, p0, p1; in rsdIntrinsicBlurHFU1_K() local
390 pf = _mm_mul_ps(g0, _mm_loadu_ps(pi)); in rsdIntrinsicBlurHFU1_K()
398 pf = _mm_add_ps(pf, _mm_mul_ps(g0, p0)); in rsdIntrinsicBlurHFU1_K()
400 pf = _mm_add_ps(pf, _mm_mul_ps(g1, _mm_alignr_epi8(p1, p0, 4))); in rsdIntrinsicBlurHFU1_K()
402 pf = _mm_add_ps(pf, _mm_mul_ps(g2, _mm_alignr_epi8(p1, p0, 8))); in rsdIntrinsicBlurHFU1_K()
[all …]
/frameworks/rs/cpu_ref/
DrsCpuIntrinsicBlur.cpp123 float4 pf = convert_float4(pvy[0]); in OneVU4() local
124 blurredPixel += pf * gPtr[0]; in OneVU4()
140 float pf = (float)pi[validY * iStride]; in OneVU1() local
141 blurredPixel += pf * gPtr[0]; in OneVU1()
187 float4 pf = convert_float4(((const uchar4 *)pi)[0]); in OneVFU4() local
188 blurredPixel += pf * gp[0]; in OneVFU4()
211 float pf = (float)pi[0]; in OneVFU1() local
212 blurredPixel += pf * gp[0]; in OneVFU1()
240 float pf = (float)pi[0]; in OneVFU1() local
241 blurredPixel += pf * gp[0]; in OneVFU1()
[all …]
DrsCpuIntrinsics_x86.cpp345 __m128 pf, x, y; in rsdIntrinsicBlurHFU4_K() local
355 pf = _mm_mul_ps(x, _mm_load_ps(pi)); in rsdIntrinsicBlurHFU4_K()
363 pf = _mm_add_ps(pf, _mm_mul_ps(x, _mm_load_ps(pi + (r << 2)))); in rsdIntrinsicBlurHFU4_K()
364 pf = _mm_add_ps(pf, _mm_mul_ps(y, _mm_load_ps(pi + (r << 2) + 4))); in rsdIntrinsicBlurHFU4_K()
367 o = _mm_cvtps_epi32(pf); in rsdIntrinsicBlurHFU4_K()
378 __m128 pf, g0, g1, g2, g3, gx, p0, p1; in rsdIntrinsicBlurHFU1_K() local
387 pf = _mm_mul_ps(g0, _mm_loadu_ps(pi)); in rsdIntrinsicBlurHFU1_K()
395 pf = _mm_add_ps(pf, _mm_mul_ps(g0, p0)); in rsdIntrinsicBlurHFU1_K()
397 pf = _mm_add_ps(pf, _mm_mul_ps(g1, _mm_alignr_epi8(p1, p0, 4))); in rsdIntrinsicBlurHFU1_K()
399 pf = _mm_add_ps(pf, _mm_mul_ps(g2, _mm_alignr_epi8(p1, p0, 8))); in rsdIntrinsicBlurHFU1_K()
[all …]
/frameworks/compile/slang/lit-tests/opt/
Dlocals_opt_0.rscript5 // CHECK: %pf = alloca float*,
17 float *pf = &f;
36 double result = pf[0] * d[1][1] * s.f * us * l;
Dlocals_opt_3.rscript5 // CHECK-NOT: %pf = alloca float*,
17 float *pf = &f;
36 double result = pf[0] * d[1][1] * s.f * us * l;
Dlocals_opt_default.rscript5 // CHECK-NOT: %pf = alloca float*,
20 float *pf = &f;
39 double result = pf[0] * d[1][1] * s.f * us * l;
/frameworks/compile/libbcc/tests/debuginfo/host-tests/
Dglobal_struct.c18 float *pf = &f; variable
34 double result = pf[0] * d[1][1] * s.d * us * l; in main()
Dglobals.c25 float *pf = &f; variable
41 double result = pf[0] * d[1][1] * s.d * us * l; in main()
Dlocals.cpp25 float *pf = &f; in main() local
44 double result = pf[0] * d[1][1] * s.f * us * l; in main()
Dparameters.cpp28 double test_parameters(float* pf, double ppd[][2], struct char_struct& s, int** ppn = 0, unsigned s… in test_parameters() argument
30 double result = pf[0] * ppd[1][1] * s.c * us * l; in test_parameters()
/frameworks/compile/libbcc/tests/debuginfo/target-tests/
Dlocals.rs28 float *pf = &f;
47 double result = pf[0] * d[1][1] * s.f * us * l;
/frameworks/native/cmds/lshal/
DNullableOStream.h43 const NullableOStream &operator<<(std::ostream& (*pf)(std::ostream&)) const {
45 (*mOs) << pf;
/frameworks/compile/slang/tests/F_fs_ptr/
Dfs_ptr.fs8 float *pf;

123