Home
last modified time | relevance | path

Searched refs:clamp (Results 151 - 175 of 368) sorted by relevance

12345678910>>...15

/third_party/skia/modules/particles/src/
H A DSkParticleBinding.cpp72 skvm::I32 index = trunc(clamp(arguments[0] * fPath.size(), 0, fPath.size() - 1));
/third_party/mesa3d/src/amd/compiler/
H A Daco_print_ir.cpp554 if (instr->vop3p().clamp) in print_instr_format_specific()
555 fprintf(output, " clamp"); in print_instr_format_specific()
569 if (vop3.clamp) in print_instr_format_specific()
570 fprintf(output, " clamp"); in print_instr_format_specific()
621 if (sdwa.clamp) in print_instr_format_specific()
622 fprintf(output, " clamp"); in print_instr_format_specific()
H A Daco_ir.h1419 bool clamp : 1; member
1430 bool clamp : 1; member
1517 * clamp on GFX8 */
1522 bool clamp : 1;
1771 return vop3p.opsel_lo || vop3p.clamp;
1778 return vop3.opsel || vop3.clamp || vop3.omod;
/third_party/mesa3d/src/compiler/glsl/
H A Dir_reader.cpp1094 tex->clamp = NULL; in read_texture()
1096 tex->clamp = read_rvalue(s_clamp); in read_texture()
1097 if (tex->clamp == NULL) { in read_texture()
1098 ir_read_error(NULL, "when reading clamp in (%s ..)", in read_texture()
/third_party/mesa3d/src/gallium/drivers/radeonsi/
H A Dsi_shader_llvm_vs.c240 LLVMValueRef clamp; in load_input_vs() local
243 clamp = LLVMBuildFCmp(ctx->ac.builder, LLVMRealULT, tmp, neg_one, ""); in load_input_vs()
244 tmp = LLVMBuildSelect(ctx->ac.builder, clamp, neg_one, tmp, ""); in load_input_vs()
/third_party/mesa3d/src/gallium/drivers/r600/sb/
H A Dsb_bc_decoder.cpp350 bc.clamp = w1.get_CLAMP(); in decode_alu()
367 bc.clamp = w1.get_CLAMP(); in decode_alu()
386 bc.clamp = w1.get_CLAMP(); in decode_alu()
/third_party/mesa3d/src/gallium/drivers/softpipe/
H A Dsp_quad_depth_test.c55 bool clamp; member
165 if (data->clamp) { in convert_quad_depth()
870 data.clamp = !qs->softpipe->rasterizer->depth_clip_near; in depth_test_quads_fallback()
/third_party/mesa3d/src/nouveau/codegen/lib/
H A Dgk110.asm18 shl b32 $r2 $r3 clamp $r2
60 shl b32 $r2 $r3 clamp $r2
208 shl b32 $r4 $r4 clamp 0x14
/third_party/skia/third_party/externals/swiftshader/src/Renderer/
H A DVertexProcessor.cpp911 routineCache = new RoutineCache<State>(clamp(cacheSize, 1, 65536)); in setRoutineCacheSize()
1090 state.output[C0].clamp = 0xF; in update()
1091 state.output[C1].clamp = 0xF; in update()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
H A DSIPeepholeSDWA.cpp966 (TII->hasModifiersSet(MI, AMDGPU::OpName::clamp) || in isConvertibleToSDWA()
1065 // Copy clamp if present, initialize otherwise in convertToSDWA()
1066 assert(AMDGPU::getNamedOperandIdx(SDWAOpcode, AMDGPU::OpName::clamp) != -1); in convertToSDWA()
1067 MachineOperand *Clamp = TII->getNamedOperand(MI, AMDGPU::OpName::clamp); in convertToSDWA()
/third_party/python/Modules/_decimal/libmpdec/
H A Dmpdecimal.c759 workctx->clamp = ctx->clamp; in mpd_workcontext()
841 * fits in ctx->prec - ctx->clamp. Cannot fail.
850 prec = ctx->prec - ctx->clamp; in _mpd_fix_nan()
1827 if (ctx->clamp) { in _mpd_check_exp()
1870 else if (ctx->clamp && dec->exp > mpd_etop(ctx)) { in _mpd_check_exp()
4532 workctx.clamp = 0; in mpd_qexp()
4566 workctx.clamp = ctx->clamp; in mpd_qexp()
5087 workctx.clamp in mpd_qln()
[all...]
/third_party/mesa3d/src/panfrost/vulkan/
H A Dpanvk_private.h688 float clamp;
896 float clamp;
/third_party/mesa3d/src/panfrost/bifrost/valhall/
H A Dva_pack.c519 if (info.clamp) hex |= (uint64_t) I->clamp << 32; in va_pack_alu()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/
H A DvktDrawInvertedDepthRangesTests.cpp438 const float depthClamped = de::clamp(depth + depthBias, 0.0f, 1.0f); in generateReferenceImage()
440 const float storedDepth = (m_params.depthClampEnable ? de::clamp(depthFinal, clampMin, clampMax) : depthFinal); in generateReferenceImage()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/fragment_shading_rate/
H A DvktFragmentShadingRateMiscTests.cpp215 de::clamp(vkExtent.width, minSize.width, maxSize.width); in testEnableDisable()
216 de::clamp(vkExtent.height, minSize.height, maxSize.height); in testEnableDisable()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/texture/
H A DvktTextureSwizzleTests.cpp226 const float triLod[2] = { de::clamp(computeNonProjectedTriLod(sampleParams.lodMode, dstSize, srcSize, triS[0], triT[0]) + lodBias, sampleParams.minLod, sampleParams.maxLod), in iterate()
227 de::clamp(computeNonProjectedTriLod(sampleParams.lodMode, dstSize, srcSize, triS[1], triT[1]) + lodBias, sampleParams.minLod, sampleParams.maxLod) }; in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/draw/
H A DvktDrawInvertedDepthRangesTests.cpp438 const float depthClamped = de::clamp(depth + depthBias, 0.0f, 1.0f); in generateReferenceImage()
440 const float storedDepth = (m_params.depthClampEnable ? de::clamp(depthFinal, clampMin, clampMax) : depthFinal); in generateReferenceImage()
/third_party/skia/src/gpu/effects/
H A DGrTextureEffect.cpp331 // output of 1). The clamp rect collapses to a line or point it if the subset in emitCode()
391 &te, kFragment_GrShaderFlag, kFloat4_GrSLType, "clamp", &clampName); in emitCode()
494 auto clampCoord = [&](bool clamp, in emitCode()
498 if (clamp) { in emitCode()
499 fb->codeAppendf("clampedCoord%s = clamp(subsetCoord%s, %s%s, %s%s);", in emitCode()
532 // Apply subset rect and clamp rect to coords. in emitCode()
545 fb->codeAppendf("extraRepeatCoord = clamp(extraRepeatCoord, %s.xy, %s.zw);", in emitCode()
548 fb->codeAppendf("extraRepeatCoord.x = clamp(extraRepeatCoord.x, %s.x, %s.z);", in emitCode()
551 fb->codeAppendf("extraRepeatCoord.y = clamp(extraRepeatCoord.y, %s.y, %s.w);", in emitCode()
/third_party/vk-gl-cts/modules/gles31/functional/
H A Des31fFboTestUtil.cpp606 const int clampedBits = de::clamp<int>(srcBits, 0, 8); in calculateU8ConversionError()
610 return de::clamp<int>(error, 0, 255); in calculateU8ConversionError()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
H A DStateManager11.cpp1307 ASSERT(gl::clamp(mCurStencilRef, 0, static_cast<int>(maxStencil)) ==
1308 gl::clamp(mCurStencilBackRef, 0, static_cast<int>(maxStencil)));
1344 // GL specifies we should clamp the ref value to the
1350 UINT dxStencilRef = static_cast<UINT>(gl::clamp(mCurStencilRef, 0, 0xFF));
1471 gl::clamp(viewport.x + mCurViewportOffset.x, dxMinViewportBoundsX, dxMaxViewportBoundsX);
1473 gl::clamp(viewport.y + mCurViewportOffset.y, dxMinViewportBoundsY, dxMaxViewportBoundsY);
1474 dxViewportWidth = gl::clamp(viewport.width, 0, dxMaxViewportBoundsX - dxViewportTopLeftX);
1475 dxViewportHeight = gl::clamp(viewport.height, 0, dxMaxViewportBoundsY - dxViewportTopLeftY);
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/protected_memory/
H A DvktProtectedMemWsiSwapchainTests.cpp357 // If the implementation doesn't have a max image count, min+16 means we won't clamp. in executeSwapchainParameterCases()
371 const deUint32 maxImageCountToTest = de::clamp(16u, capabilities.minImageCount, maxImageCount); in executeSwapchainParameterCases()
546 createInfo.imageExtent.width = de::clamp(s_testSizes[ndx].width, capabilities.minImageExtent.width, capabilities.maxImageExtent.width); in executeSwapchainParameterCases()
547 createInfo.imageExtent.height = de::clamp(s_testSizes[ndx].height, capabilities.minImageExtent.height, capabilities.maxImageExtent.height); in executeSwapchainParameterCases()
971 de::clamp(desiredImageCount, capabilities.minImageCount, capabilities.maxImageCount > 0 ? capabilities.maxImageCount : capabilities.minImageCount + desiredImageCount), in getBasicSwapchainParameters()
/third_party/vk-gl-cts/external/openglcts/modules/gles31/
H A Des31cShaderBitfieldOperationTests.cpp502 x = de::clamp<GLfloat>(x, -1.0f, 1.0f); in test()
508 y = de::clamp<GLfloat>(y, -1.0f, 1.0f); in test()
514 z = de::clamp<GLfloat>(z, -1.0f, 1.0f); in test()
520 w = de::clamp<GLfloat>(w, -1.0f, 1.0f); in test()
/third_party/vk-gl-cts/modules/gles3/functional/
H A Des3fFramebufferBlitTests.cpp193 const tcu::IVec4 destinationArea = tcu::IVec4(de::clamp(de::min(m_dstRect.x(), m_dstRect.z()), 0, result.getWidth()), in compare()
194 de::clamp(de::min(m_dstRect.y(), m_dstRect.w()), 0, result.getHeight()), in compare()
195 de::clamp(de::max(m_dstRect.x(), m_dstRect.z()), 0, result.getWidth()), in compare()
196 de::clamp(de::max(m_dstRect.y(), m_dstRect.w()), 0, result.getHeight())); in compare()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/protected_memory/
H A DvktProtectedMemWsiSwapchainTests.cpp338 // If the implementation doesn't have a max image count, min+16 means we won't clamp. in generateSwapchainParameterCases()
345 const deUint32 maxImageCountToTest = de::clamp(16u, capabilities.minImageCount, maxImageCount); in generateSwapchainParameterCases()
485 cases.back().imageExtent.width = de::clamp(s_testSizes[ndx].width, capabilities.minImageExtent.width, capabilities.maxImageExtent.width); in generateSwapchainParameterCases()
486 cases.back().imageExtent.height = de::clamp(s_testSizes[ndx].height, capabilities.minImageExtent.height, capabilities.maxImageExtent.height); in generateSwapchainParameterCases()
792 de::clamp(desiredImageCount, capabilities.minImageCount, capabilities.maxImageCount > 0 ? capabilities.maxImageCount : capabilities.minImageCount + desiredImageCount), in getBasicSwapchainParameters()
/third_party/mesa3d/src/amd/compiler/tests/
H A Dtest_optimizer.cpp112 //! v1: %res3 = v_add_f32 %a, %b clamp
118 //! v1: %res4 = v_add_f32 %a, %b *2 clamp
142 //! v2b: %res8 = v_add_f16 %a, %b clamp
148 //! v2b: %res9 = v_add_f16 %a, %b *2 clamp
157 //! v1: %res10_tmp = v_add_f32 %a, %b clamp
189 /* omod has no effect if denormals are enabled but clamp is fine */
203 //! v1: %res15 = v_add_f32 %a, %b clamp
221 //! v2b: %res17 = v_add_f16 %a, %b clamp
242 //! v1: %res19 = v_add_f32 %a, %b clamp
258 //! v2b: %res21 = v_add_f16 %a, %b clamp
[all...]

Completed in 48 milliseconds

12345678910>>...15