/external/skia/src/utils/ |
SkPatchGrid.cpp | 164 SkISize lod = SkPatchUtils::GetLevelOfDetail(cubics, &matrix); local 165 maxCols[x] = SkMax32(maxCols[x], lod.width()); 166 maxRows[y] = SkMax32(maxRows[y], lod.height());
|
/frameworks/rs/cpu_ref/ |
rsCpuCoreRuntime.h | 34 uint32_t lod; member in struct:RsLaunchDimensions
|
/external/clang/test/CodeGen/ |
2008-03-24-BitField-And-Alloca.c | 54 unsigned int lod : 2; member in struct:_Key::__anon7174 68 if(((iospec.key_io.lod == G_B) &&
|
/external/skia/src/core/ |
SkDevice.cpp | 91 SkISize lod = SkPatchUtils::GetLevelOfDetail(cubics, draw.fMatrix); local 95 if (SkPatchUtils::getVertexData(&data, cubics, colors, texCoords, lod.width(), lod.height())) {
|
/frameworks/base/libs/hwui/ |
SkiaCanvasProxy.cpp | 369 SkISize lod = SkPatchUtils::GetLevelOfDetail(cubics, &matrix); local 373 if (SkPatchUtils::getVertexData(&data, cubics, colors, texCoords, lod.width(), lod.height())) {
|
/external/mesa3d/src/mesa/program/ |
prog_execute.c | 1716 GLfloat texcoord[4], color[4], lod; local [all...] |
/frameworks/rs/ |
rsAllocation.h | 95 } lod[android::renderscript::Allocation::MAX_LOD]; member in struct:android::renderscript::Allocation::Hal::DrvState 136 void data(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, const void *data, size_t sizeBytes); 137 void data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, 139 void data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, 142 void read(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, void *data, size_t sizeBytes); 143 void read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face, 145 void read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod, 195 void * getPointer(const Context *rsc, uint32_t lod, RsAllocationCubemapFace face, 199 uint32_t z = 0, uint32_t lod = 0, 203 uint8_t * p = (uint8_t *) mHal.drvState.lod[lod].mallocPtr [all...] |
/external/deqp/external/vulkancts/modules/vulkan/pipeline/ |
vktPipelineSamplerTests.cpp | 603 float lod; member in struct:vkt::pipeline::__anon8956::TestCaseConfig 608 { "equal_min_3_max_3", "minLod = 3, maxLod = 3, mipLodBias = 0, lod = 0", 3.0f, 3.0f, 0.0f, 0.0f }, 609 { "select_min_1", "minLod = 1, maxLod = 5, mipLodBias = 0, lod = 0", 1.0f, 5.0f, 0.0f, 0.0f }, 610 { "select_max_4", "minLod = 0, maxLod = 4, mipLodBias = 0, lod = 5", 0.0f, 4.0f, 0.0f, 5.0f }, 611 { "select_bias_2_1", "minLod = 0, maxLod = 2.1, mipLodBias = 5.0, lod = 0", 0.0f, 2.1f, 5.0f, 0.0f }, 612 { "select_bias_2_5", "minLod = 0, maxLod = 5, mipLodBias = 2.5, lod = 0", 0.0f, 5.0f, 2.5f, 0.00001f }, 613 { "select_bias_3_1", "minLod = 0, maxLod = 5, mipLodBias = -0.9, lod = 4.0", 0.0f, 5.0f, -0.9f, 4.0f }, 614 { "select_bias_3_7", "minLod = 0, maxLod = 5, mipLodBias = 3.0, lod = 0.7", 0.0f, 5.0f, 3.0f, 0.7f }, 617 MovePtr<tcu::TestCaseGroup> samplerLodTests (new tcu::TestCaseGroup(testCtx, "lod", "Tests for sampler LOD")); [all...] |
/external/deqp/modules/egl/ |
teglGLES2SharingTests.cpp | 615 float lod = 0.0f; local 617 tcu::Vec4 color = m_texture.sample(tcu::Sampler(tcu::Sampler::REPEAT_GL, tcu::Sampler::REPEAT_GL, tcu::Sampler::REPEAT_GL, tcu::Sampler::LINEAR, tcu::Sampler::LINEAR), t, s, lod); [all...] |
/external/mesa3d/src/gallium/drivers/nv50/codegen/ |
nv50_ir_lowering_nv50.cpp | 582 const int lod = i->tex.target.isShadow() ? (arg + 1) : arg; local 584 // dref comes before bias/lod 587 i->swapSources(dref, lod); 626 // Bias must be equal for all threads of a quad or lod calculation will fail. 689 // LOD must be equal for all threads of a quad. 690 // Unlike with TXB, here we can just diverge since there's no LOD calculation 696 Value *lod = i->getSrc(i->tex.target.getArgCount()); local 697 if (lod->isUniform()) 711 bld.mkQuadop(qop, pred, l, lod, lod)->flagsDef = 0 [all...] |
/external/mesa3d/src/mesa/drivers/dri/i965/ |
brw_fs_visitor.cpp | 751 fs_reg shadow_c, fs_reg lod, fs_reg dPdy) 776 emit(BRW_OPCODE_MOV, fs_reg(MRF, base_mrf + mlen), lod); 792 fs_reg &dPdx = lod; 829 emit(BRW_OPCODE_MOV, fs_reg(MRF, base_mrf + mlen, BRW_REGISTER_TYPE_UD), lod); 832 /* Oh joy. gen4 doesn't have SIMD8 non-shadow-compare bias/lod 851 /* lod/bias appears after u/v/r. */ 854 emit(BRW_OPCODE_MOV, fs_reg(MRF, base_mrf + mlen, lod.type), lod); 911 * parameters like shadow comparitor or LOD bias. If optional 920 fs_reg shadow_c, fs_reg lod, fs_reg lod2 1304 fs_reg lod, lod2; local [all...] |
brw_vec4_visitor.cpp | 1857 src_reg lod, dPdx, dPdy; local [all...] |
/frameworks/rs/driver/ |
rsdAllocation.cpp | 93 uint32_t lod, RsAllocationCubemapFace face) { 94 uint8_t *ptr = (uint8_t *)alloc->mHal.drvState.lod[lod].mallocPtr; 96 ptr += zoff * alloc->mHal.drvState.lod[lod].dimY * alloc->mHal.drvState.lod[lod].stride; 97 ptr += yoff * alloc->mHal.drvState.lod[lod].stride; 104 uint32_t xoff, uint32_t yoff, uint32_t lod, 922 int lod = 1; local [all...] |
/frameworks/rs/driver/runtime/ |
rs_structs.h | 69 } lod[16/*android::renderscript::Allocation::MAX_LOD*/]; member in struct:Allocation::__anon28905::DrvState
|
/external/deqp/modules/gles2/functional/ |
es2fShaderTextureFunctionTests.cpp | 86 // Bias or Lod for *Lod* functions 164 float lod; member in struct:deqp::gles2::Functional::__anon9317::TexLookupParams 169 : lod (0.0f) 187 inline Vec4 texture2D (const gls::ShaderEvalContext& c, float s, float t, float lod) { return c.textures[0].tex2D->sample(c.textures[0].sampler, s, t, lod); } 188 inline Vec4 textureCube (const gls::ShaderEvalContext& c, float s, float t, float r, float lod) { return c.textures[0].texCube->sample(c.textures[0].sampler, s, t, r, lod); } 191 static void evalTexture2D (gls::ShaderEvalContext& c, const TexLookupParams& p) { c.color = texture2D(c, c.in[0].x(), c.in[0].y(), p.lod)*p.scale + p.bias; } 192 static void evalTextureCube (gls::ShaderEvalContext& c, const TexLookupParams& p) { c.color = textureCube(c, c.in[0].x(), c.in[0].y(), c.in[0].z(), p.lod)*p.scale + p.bias; [all...] |
es2fFboRenderTest.cpp | 163 const float lod = 0.0f; local 165 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, this->m_uniforms[0].sampler.tex2D->sample(v_coord.x(), v_coord.y(), lod)); 226 const float lod = 0.0f; local 228 rr::writeFragmentOutput(context, packetNdx, fragNdx, 0, this->m_uniforms[0].sampler.tex2D->sample(v_coord.x(), v_coord.y(), lod) * 0.5f 229 + this->m_uniforms[1].sampler.tex2D->sample(v_coord.x(), v_coord.y(), lod) * 0.5f); [all...] |
es2fVertexTextureTests.cpp | 356 static inline Vec4 sample (const tcu::Texture2D& tex, const Vec2& coord, float lod, const tcu::Sampler& sam) { return tex.sample(sam, coord.x(), coord.y(), lod); } 357 static inline Vec4 sample (const tcu::TextureCube& tex, const Vec3& coord, float lod, const tcu::Sampler& sam) { return tex.sample(sam, coord.x(), coord.y(), coord.z(), lod); } 360 void computeReference (const typename TexTypeTcuClass<TexType>::t& texture, float lod, const tcu::Sampler& sampler, const PosTexCoordQuadGrid<TexType>& grid, tcu::Surface& dst, const Rect& dstRegion) 371 quadColors[ndx] = sample(texture, coord, lod, sampler); 402 void setupShaderInputs (int textureNdx, float lod, const Grid& grid) const; 403 void renderCell (int textureNdx, float lod, const Grid& grid) const; 404 void computeReferenceCell (int textureNdx, float lod, const Grid& grid, tcu::Surface& dst, const Rect& dstRegion) const; 602 const float lod = calculateLod(rend.texCoordScale, rend.region.size().asFloat(), rend.textureNdx) local 934 const float lod = calculateLod(rend.texCoordScale, rend.region.size().asFloat(), rend.textureNdx); local [all...] |
/external/deqp/modules/gles3/functional/ |
es3fTextureFilteringTests.cpp | 682 tcu::Vec2 lod; member in struct:deqp::gles3::Functional::Texture2DArrayFilteringCase::FilterCase 693 , lod (lod_) 848 m_testCtx.getLog() << TestLog::Message << "Approximate lod per axis = " << curCase.lod << ", offset = " << curCase.offset << TestLog::EndMessage; 851 const float lodX = curCase.lod.x(); 852 const float lodY = curCase.lod.y(); 948 tcu::Vec3 lod; member in struct:deqp::gles3::Functional::Texture3DFilteringCase::FilterCase [all...] |
es3fVertexTextureTests.cpp | 452 static inline Vec4 sample (const tcu::Texture2D& tex, const Vec2& coord, float lod, const tcu::Sampler& sam) { return tex.sample(sam, coord.x(), coord.y(), lod); } 453 static inline Vec4 sample (const tcu::TextureCube& tex, const Vec3& coord, float lod, const tcu::Sampler& sam) { return tex.sample(sam, coord.x(), coord.y(), coord.z(), lod); } 454 static inline Vec4 sample (const tcu::Texture2DArray& tex, const Vec3& coord, float lod, const tcu::Sampler& sam) { return tex.sample(sam, coord.x(), coord.y(), coord.z(), lod); } 455 static inline Vec4 sample (const tcu::Texture3D& tex, const Vec3& coord, float lod, const tcu::Sampler& sam) { return tex.sample(sam, coord.x(), coord.y(), coord.z(), lod); } 458 void computeReference (const typename TexTypeTcuClass<TexType>::t& texture, float lod, const tcu::Sampler& sampler, const PosTexCoordQuadGrid<TexType>& grid, tcu::Surface& dst, const Rect& dstRegion) 469 quadColors[ndx] = sample(texture, coord, lod, sampler) 703 const float lod = calculateLod(rend.texCoordScale, rend.region.size().asFloat(), rend.textureNdx); local 1038 const float lod = calculateLod(rend.texCoordScale, rend.region.size().asFloat(), rend.textureNdx); local 1378 const float lod = calculateLod(rend.texTransform, rend.region.size().asFloat(), rend.textureNdx); local 1721 const float lod = calculateLod(rend.texTransform, rend.region.size().asFloat(), rend.textureNdx); local [all...] |
/external/mesa3d/src/gallium/auxiliary/gallivm/ |
lp_bld_sample.c | 352 * Bri-linear lod computation 384 LLVMValueRef lod, 394 lp_build_printf(bld->gallivm, "lod = %f\n", lod); 397 lod = lp_build_add(bld, lod, 400 lp_build_ifloor_fract(bld, lod, out_lod_ipart, &lod_fpart); 424 * Combined log2 and brilinear lod computation. 481 * \param lod_bias optional float vector with the shader lod bias 482 * \param explicit_lod optional float vector with the explicit lod 503 LLVMValueRef lod; local [all...] |
lp_bld_sample_soa.c | 1567 LLVMValueRef lod; local [all...] |
/frameworks/native/opengl/libagl/ |
primitives.cpp | 699 // lod = log2( rho ) 700 // lod = log2( texelArea / area ) / 2 701 // lod = (log2( texelArea ) - log2( area )) / 2 711 int lod = (log2TArea - log2Area + 1) >> 1; local 712 return lod; 735 int lod = compute_lod(c, i, s0, t0, s1, t1, s2, t2); local 737 &c->textures.tmu[i].texture->mip(lod)); 792 int lod = compute_lod(c, i, s0, t0, s1, t1, s2, t2); local 794 &c->textures.tmu[i].texture->mip(lod)); [all...] |
/external/deqp/framework/randomshaders/ |
rsgExpression.cpp | 1651 ExecConstValueAccess lod = m_lodBiasExpr->getValue(); local 1684 ExecConstValueAccess lod = m_lodBiasExpr->getValue(); local 1718 ExecConstValueAccess lod = m_lodBiasExpr->getValue(); local [all...] |
/external/deqp/modules/glshared/ |
glsTextureTestUtil.cpp | 214 // 1D lookup LOD computation. 245 // 2D lookup LOD computation. 285 // 3D lookup LOD computation. 345 // 1D lookup LOD. 355 // 2D lookup LOD. 367 // 3D lookup LOD. 381 static inline tcu::Vec4 execSample (const tcu::Texture1DView& src, const ReferenceParams& params, float s, float lod) 384 return tcu::Vec4(src.sampleCompare(params.sampler, params.ref, s, lod), 0.0, 0.0, 1.0f); 386 return src.sample(params.sampler, s, lod); 389 static inline tcu::Vec4 execSample (const tcu::Texture2DView& src, const ReferenceParams& params, float s, float t, float lod) 457 float lod = triLod[triNdx]; local 494 float lod = triLod[triNdx]; local 533 float lod = computeProjectedTriLod(params.lodMode, triU[triNdx], triW[triNdx], triWx, triWy, (float)dst.getWidth(), (float)dst.getHeight()) local 577 float lod = computeProjectedTriLod(params.lodMode, triU[triNdx], triV[triNdx], triW[triNdx], triWx, triWy, (float)dst.getWidth(), (float)dst.getHeight()) local 689 const float lod = de::clamp(computeCubeLodFromDerivates(params.lodMode, coord, coordDx, coordDy, srcSize) + lodBias, params.minLod, params.maxLod); local 738 float lod = triLod[triNdx]; local 785 float lod = triLod[triNdx]; local 833 float lod = triLod[triNdx]; local 880 float lod = computeProjectedTriLod(params.lodMode, triU[triNdx], triV[triNdx], triW[triNdx], triP[triNdx], triWx, triWy, (float)dst.getWidth(), (float)dst.getHeight()) local 945 const float lod = de::clamp(computeCubeLodFromDerivates(params.lodMode, coord, coordDx, coordDy, src.getSize()) + lodBias, params.minLod, params.maxLod); local [all...] |
/external/mesa3d/src/gallium/auxiliary/tgsi/ |
tgsi_exec.c | 1755 const union tgsi_exec_channel *lod = &ZeroVec; local 2103 const union tgsi_exec_channel *lod = &ZeroVec; local [all...] |