/external/llvm/test/CodeGen/R600/ |
D | llvm.AMDGPU.clamp.ll | 6 declare float @llvm.AMDGPU.clamp.f32(float, float, float) nounwind readnone 7 declare float @llvm.AMDIL.clamp.f32(float, float, float) nounwind readnone 11 ; SI: v_add_f32_e64 [[RESULT:v[0-9]+]], 0, [[ARG]] clamp{{$}} 17 %clamp = call float @llvm.AMDGPU.clamp.f32(float %src, float 0.0, float 1.0) nounwind readnone 18 store float %clamp, float addrspace(1)* %out, align 4 24 ; SI: v_add_f32_e64 [[RESULT:v[0-9]+]], 0, |[[ARG]]| clamp{{$}} 29 …%clamp = call float @llvm.AMDGPU.clamp.f32(float %src.fabs, float 0.0, float 1.0) nounwind readnone 30 store float %clamp, float addrspace(1)* %out, align 4 36 ; SI: v_add_f32_e64 [[RESULT:v[0-9]+]], 0, -[[ARG]] clamp{{$}} 41 …%clamp = call float @llvm.AMDGPU.clamp.f32(float %src.fneg, float 0.0, float 1.0) nounwind readnone [all …]
|
D | schedule-fs-loop.ll | 33 %17 = call float @llvm.AMDIL.clamp.(float %temp4.0, float 0.000000e+00, float 1.000000e+00) 34 %18 = call float @llvm.AMDIL.clamp.(float %temp5.0, float 0.000000e+00, float 1.000000e+00) 35 %19 = call float @llvm.AMDIL.clamp.(float %temp6.0, float 0.000000e+00, float 1.000000e+00) 36 %20 = call float @llvm.AMDIL.clamp.(float 1.000000e+00, float 0.000000e+00, float 1.000000e+00) 51 declare float @llvm.AMDIL.clamp.(float, float, float) #0
|
D | kcache-fold.ll | 39 %32 = call float @llvm.AMDIL.clamp.(float %7, float 0.000000e+00, float 1.000000e+00) 40 %33 = call float @llvm.AMDIL.clamp.(float %15, float 0.000000e+00, float 1.000000e+00) 41 %34 = call float @llvm.AMDIL.clamp.(float %23, float 0.000000e+00, float 1.000000e+00) 42 %35 = call float @llvm.AMDIL.clamp.(float %31, float 0.000000e+00, float 1.000000e+00) 87 %32 = call float @llvm.AMDIL.clamp.(float %7, float 0.000000e+00, float 1.000000e+00) 88 %33 = call float @llvm.AMDIL.clamp.(float %15, float 0.000000e+00, float 1.000000e+00) 89 %34 = call float @llvm.AMDIL.clamp.(float %23, float 0.000000e+00, float 1.000000e+00) 90 %35 = call float @llvm.AMDIL.clamp.(float %31, float 0.000000e+00, float 1.000000e+00) 99 declare float @llvm.AMDIL.clamp.(float, float, float) readnone
|
D | schedule-fs-loop-nested-if.ll | 47 %27 = call float @llvm.AMDIL.clamp.(float %temp.0, float 0.000000e+00, float 1.000000e+00) 48 %28 = call float @llvm.AMDIL.clamp.(float %temp1.0, float 0.000000e+00, float 1.000000e+00) 49 %29 = call float @llvm.AMDIL.clamp.(float %temp2.0, float 0.000000e+00, float 1.000000e+00) 50 %30 = call float @llvm.AMDIL.clamp.(float 1.000000e+00, float 0.000000e+00, float 1.000000e+00) 77 declare float @llvm.AMDIL.clamp.(float, float, float) #0
|
D | schedule-fs-loop-nested.ll | 46 %30 = call float @llvm.AMDIL.clamp.(float %temp4.0, float 0.000000e+00, float 1.000000e+00) 47 %31 = call float @llvm.AMDIL.clamp.(float %temp5.0, float 0.000000e+00, float 1.000000e+00) 48 %32 = call float @llvm.AMDIL.clamp.(float %temp6.0, float 0.000000e+00, float 1.000000e+00) 49 %33 = call float @llvm.AMDIL.clamp.(float 1.000000e+00, float 0.000000e+00, float 1.000000e+00) 84 declare float @llvm.AMDIL.clamp.(float, float, float) #0
|
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/noise/ |
D | Color.java | 60 this.rgba[0] = ShaderUtils.clamp(r, 0, 1); in Color() 61 this.rgba[1] = ShaderUtils.clamp(g, 0, 1); in Color() 62 this.rgba[2] = ShaderUtils.clamp(b, 0, 1); in Color() 63 this.rgba[3] = ShaderUtils.clamp(a, 0, 1); in Color() 129 …float r = ShaderUtils.clamp(this.rgba[0] * 0.393f + this.rgba[1] * 0.769f + this.rgba[2] * 0.189f,… in toSepia() 130 …float g = ShaderUtils.clamp(this.rgba[0] * 0.349f + this.rgba[1] * 0.686f + this.rgba[2] * 0.168f,… in toSepia() 131 …float b = ShaderUtils.clamp(this.rgba[0] * 0.272f + this.rgba[1] * 0.534f + this.rgba[2] * 0.131f,… in toSepia()
|
D | ShaderUtils.java | 65 …return new Color((int) ShaderUtils.clamp(ShaderUtils.mix(a.getRed(), b.getRed(), f), 0, 255), (int… in mix() 66 ShaderUtils.mix(a.getGreen(), b.getGreen(), f), 0, 255), (int) ShaderUtils.clamp( in mix() 83 return ShaderUtils.clamp((x - a) / (b - a), 0, 1); in boxstep() 90 public static final float clamp(final float x, final float a, final float b) { in clamp() method in ShaderUtils 158 x = ShaderUtils.clamp(x, 0, 1) * nspans; in spline() 194 float cutoff = ShaderUtils.clamp(0.5f / swidth, 0, maxFreq); in sinValue() 199 float fade = ShaderUtils.clamp(2 * (cutoff - f) / cutoff, 0, 1); in sinValue()
|
/external/jmonkeyengine/engine/src/core-data/Common/ShaderLib/ |
D | Shadow.glsllib | 66 s_00 = clamp(s_00, 0.0, 1.0); 70 s_10 = clamp(s_10, 0.0, 1.0); 74 s_01 = clamp(s_01, 0.0, 1.0); 78 s_11 = clamp(s_11, 0.0, 1.0); 80 float xb0 = mix(s_00, s_10, clamp(bl.x, 0.0, 1.0)); 81 float xb1 = mix(s_01, s_11, clamp(bl.x, 0.0, 1.0)); 82 float yb = mix(xb0, xb1, clamp(bl.y, 0.0, 1.0)); 92 shadow += clamp(Shadow_DoShadowCompareOffset(tex,projCoord,vec2(x,y)) + 102 return clamp(Shadow_DoDither_2x2(tex, projCoord) + Shadow_BorderCheck(projCoord.xy), 0.0, 1.0);
|
/external/deqp/framework/common/ |
D | tcuTexLookupVerifier.cpp | 613 const float minA = de::clamp((uBounds.x()-0.5f)-float(i), 0.0f, 1.0f); in isLinearSampleResultValid() 614 const float maxA = de::clamp((uBounds.y()-0.5f)-float(i), 0.0f, 1.0f); in isLinearSampleResultValid() 663 const float minA = de::clamp((uBounds.x()-0.5f)-float(i), 0.0f, 1.0f); in isLinearSampleResultValid() 664 const float maxA = de::clamp((uBounds.y()-0.5f)-float(i), 0.0f, 1.0f); in isLinearSampleResultValid() 665 const float minB = de::clamp((vBounds.x()-0.5f)-float(j), 0.0f, 1.0f); in isLinearSampleResultValid() 666 const float maxB = de::clamp((vBounds.y()-0.5f)-float(j), 0.0f, 1.0f); in isLinearSampleResultValid() 726 const float minA = de::clamp((uBounds.x()-0.5f)-float(i), 0.0f, 1.0f); in isLinearSampleResultValid() 727 const float maxA = de::clamp((uBounds.y()-0.5f)-float(i), 0.0f, 1.0f); in isLinearSampleResultValid() 728 const float minB = de::clamp((vBounds.x()-0.5f)-float(j), 0.0f, 1.0f); in isLinearSampleResultValid() 729 const float maxB = de::clamp((vBounds.y()-0.5f)-float(j), 0.0f, 1.0f); in isLinearSampleResultValid() [all …]
|
D | tcuTexCompareVerifier.cpp | 66 const float cmpValue = (clampValues) ? (de::clamp(cmpValue_, 0.0f, 1.0f)) : (cmpValue_); in execCompare() 67 …const float cmpReference = (clampValues) ? (de::clamp(cmpReference_, 0.0f, 1.0f)) : (cmpReference… in execCompare() 607 const float minA = de::clamp((uBounds.x()-0.5f)-float(i), 0.0f, 1.0f); in isLinearCompareResultValid() 608 const float maxA = de::clamp((uBounds.y()-0.5f)-float(i), 0.0f, 1.0f); in isLinearCompareResultValid() 609 const float minB = de::clamp((vBounds.x()-0.5f)-float(j), 0.0f, 1.0f); in isLinearCompareResultValid() 610 const float maxB = de::clamp((vBounds.y()-0.5f)-float(j), 0.0f, 1.0f); in isLinearCompareResultValid() 733 const float minA0 = de::clamp((uBounds0.x()-0.5f)-float(i0), 0.0f, 1.0f); in isLinearMipmapLinearCompareResultValid() 734 const float maxA0 = de::clamp((uBounds0.y()-0.5f)-float(i0), 0.0f, 1.0f); in isLinearMipmapLinearCompareResultValid() 735 const float minB0 = de::clamp((vBounds0.x()-0.5f)-float(j0), 0.0f, 1.0f); in isLinearMipmapLinearCompareResultValid() 736 const float maxB0 = de::clamp((vBounds0.y()-0.5f)-float(j0), 0.0f, 1.0f); in isLinearMipmapLinearCompareResultValid() [all …]
|
D | tcuFuzzyImageCompare.cpp | 60 return (deUint8)de::clamp((int)(v + 0.5f), 0, 255); in roundToUint8Sat() 132 int i0 = de::clamp(x0, 0, w-1); in bilinearSample() 133 int i1 = de::clamp(x1, 0, w-1); in bilinearSample() 134 int j0 = de::clamp(y0, 0, h-1); in bilinearSample() 135 int j1 = de::clamp(y1, 0, h-1); in bilinearSample() 181 deUint32 p = readUnorm8<SrcChannels>(src, de::clamp(i+kx-shiftX, 0, src.getWidth()-1), j); in separableConvolve() 200 deUint32 p = readUnorm8<DstChannels>(tmpAccess, de::clamp(j+ky-shiftY, 0, tmp.getWidth()-1), i); in separableConvolve()
|
/external/mesa3d/src/gallium/auxiliary/draw/ |
D | draw_pipe_offset.c | 46 float clamp; member 94 if (offset->clamp) in do_offset_tri() 95 zoffset = (offset->clamp < 0.0f) ? MAX2(zoffset, offset->clamp) : in do_offset_tri() 96 MIN2(zoffset, offset->clamp); in do_offset_tri() 133 offset->clamp = stage->draw->rasterizer->offset_clamp; in offset_first_tri()
|
/external/deqp/modules/gles31/functional/ |
D | es31fShaderPackingFunctionTests.cpp | 213 …const deUint16 ref0 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), -1.0f,… in iterate() 214 …const deUint16 ref1 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), -1.0f,… in iterate() 303 const float ref0 = de::clamp(float(in0) / 32767.f, -1.0f, 1.0f); in iterate() 304 const float ref1 = de::clamp(float(in1) / 32767.f, -1.0f, 1.0f); in iterate() 404 …const deUint16 ref0 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), 0.0f, … in iterate() 405 …const deUint16 ref1 = (deUint16)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), 0.0f, … in iterate() 815 …const deUint16 ref0 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].x(), -1.0f, … in iterate() 816 …const deUint16 ref1 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].y(), -1.0f, … in iterate() 817 …const deUint16 ref2 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].z(), -1.0f, … in iterate() 818 …const deUint16 ref3 = (deUint8)de::clamp(deRoundFloatToInt32(de::clamp(inputs[valNdx].w(), -1.0f, … in iterate() [all …]
|
/external/libvpx/libvpx/vp9/common/ |
D | vp9_quant_common.c | 86 return dc_qlookup[clamp(qindex + delta, 0, MAXQ)]; in vp9_dc_quant() 90 return ac_qlookup[clamp(qindex + delta, 0, MAXQ)]; in vp9_ac_quant() 100 return clamp(seg_qindex, 0, MAXQ); in vp9_get_qindex()
|
D | vp9_mv.h | 39 mv->col = clamp(mv->col, min_col, max_col); in clamp_mv() 40 mv->row = clamp(mv->row, min_row, max_row); in clamp_mv()
|
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/textures/ |
D | TexturePixel.java | 277 public void clamp(float min, float max) { in clamp() method in TexturePixel 278 this.red = FastMath.clamp(this.red, min, max); in clamp() 279 this.green = FastMath.clamp(this.green, min, max); in clamp() 280 this.blue = FastMath.clamp(this.blue, min, max); in clamp() 281 this.alpha = FastMath.clamp(this.alpha, min, max); in clamp() 282 this.intensity = FastMath.clamp(this.intensity, min, max); in clamp()
|
/external/llvm/include/llvm/IR/ |
D | IntrinsicsNVVM.td | 1851 // .clamp variants 1855 "llvm.nvvm.suld.1d.i8.clamp">; 1859 "llvm.nvvm.suld.1d.i16.clamp">; 1863 "llvm.nvvm.suld.1d.i32.clamp">; 1867 "llvm.nvvm.suld.1d.i64.clamp">; 1871 "llvm.nvvm.suld.1d.v2i8.clamp">; 1875 "llvm.nvvm.suld.1d.v2i16.clamp">; 1879 "llvm.nvvm.suld.1d.v2i32.clamp">; 1883 "llvm.nvvm.suld.1d.v2i64.clamp">; 1887 "llvm.nvvm.suld.1d.v4i8.clamp">; [all …]
|
/external/libvpx/libvpx/vp9/common/arm/neon/ |
D | vp9_loopfilter_16_neon.asm | 152 vqsub.s8 q1, q5, q8 ; filter = clamp(ps1-qs1) 168 ; filter = clamp(filter + 3 * ( qs0 - ps0)) 173 vqadd.s8 q2, q1, q4 ; filter2 = clamp(filter+3) 174 vqadd.s8 q1, q1, q9 ; filter1 = clamp(filter+4) 179 vqadd.s8 q11, q6, q2 ; u = clamp(ps0 + filter2) 180 vqsub.s8 q0, q7, q1 ; u = clamp(qs0 - filter1) 189 vqadd.s8 q13, q5, q1 ; u = clamp(ps1 + filter) 190 vqsub.s8 q12, q8, q1 ; u = clamp(qs1 - filter)
|
D | vp9_loopfilter_neon.asm | 237 vqsub.s8 d27, d5, d16 ; filter = clamp(ps1-qs1) 249 ; filter = clamp(filter + 3 * ( qs0 - ps0)) 254 vqadd.s8 d28, d27, d19 ; filter2 = clamp(filter+3) 255 vqadd.s8 d27, d27, d17 ; filter1 = clamp(filter+4) 259 vqadd.s8 d19, d6, d28 ; u = clamp(ps0 + filter2) 260 vqsub.s8 d26, d7, d27 ; u = clamp(qs0 - filter1) 269 vqadd.s8 d21, d5, d27 ; u = clamp(ps1 + filter) 270 vqsub.s8 d20, d16, d27 ; u = clamp(qs1 - filter) 539 vqsub.s8 d29, d25, d26 ; filter = clamp(ps1-qs1) 549 ; filter = clamp(filter + 3 * ( qs0 - ps0)) [all …]
|
/external/deqp/modules/glshared/ |
D | glsRasterizationTestUtil.cpp | 719 …const tcu::Vec4 fragmentColorMax = de::clamp(weights.max.x(), 0.0f, 1.0f) * scene.triangles[triNdx… in verifyTriangleGroupInterpolationWithInterpolator() 720 de::clamp(weights.max.y(), 0.0f, 1.0f) * scene.triangles[triNdx].colors[1] + in verifyTriangleGroupInterpolationWithInterpolator() 721 de::clamp(weights.max.z(), 0.0f, 1.0f) * scene.triangles[triNdx].colors[2]; in verifyTriangleGroupInterpolationWithInterpolator() 722 …const tcu::Vec4 fragmentColorMin = de::clamp(weights.min.x(), 0.0f, 1.0f) * scene.triangles[triNdx… in verifyTriangleGroupInterpolationWithInterpolator() 723 de::clamp(weights.min.y(), 0.0f, 1.0f) * scene.triangles[triNdx].colors[1] + in verifyTriangleGroupInterpolationWithInterpolator() 724 de::clamp(weights.min.z(), 0.0f, 1.0f) * scene.triangles[triNdx].colors[2]; in verifyTriangleGroupInterpolationWithInterpolator() 795 …const tcu::Vec3 colorMinF (de::clamp(valueRangeMin.x() * formatLimit.x(), 0.0f, (float)formatLim… in verifyTriangleGroupInterpolationWithInterpolator() 796 de::clamp(valueRangeMin.y() * formatLimit.y(), 0.0f, (float)formatLimit.y()), in verifyTriangleGroupInterpolationWithInterpolator() 797 de::clamp(valueRangeMin.z() * formatLimit.z(), 0.0f, (float)formatLimit.z())); in verifyTriangleGroupInterpolationWithInterpolator() 798 …const tcu::Vec3 colorMaxF (de::clamp(valueRangeMax.x() * formatLimit.x(), 0.0f, (float)formatLim… in verifyTriangleGroupInterpolationWithInterpolator() [all …]
|
/external/jmonkeyengine/engine/src/core-effects/Common/MatDefs/Post/ |
D | CartoonEdge.frag | 44 normalDelta = clamp((normalDelta - m_NormalThreshold) * m_NormalSensitivity, 0.0, 1.0); 45 depthDelta = clamp((depthDelta - m_DepthThreshold) * m_DepthSensitivity, 0.0, 1.0); 48 float edgeAmount = clamp(normalDelta + depthDelta, 0.0, 1.0) * m_EdgeIntensity;
|
D | CartoonEdge15.frag | 46 normalDelta = clamp((normalDelta - m_NormalThreshold) * m_NormalSensitivity, 0.0, 1.0); 47 depthDelta = clamp((depthDelta - m_DepthThreshold) * m_DepthSensitivity, 0.0, 1.0); 50 float edgeAmount = clamp(normalDelta + depthDelta, 0.0, 1.0) * m_EdgeIntensity;
|
/external/deqp/framework/referencerenderer/ |
D | rrFragmentOperations.cpp | 35 using tcu::clamp; 38 using de::clamp; 110 int clampedStencilRef = de::clamp(stencilState.ref, 0, (1<<numStencilBits)-1); in executeStencilCompare() 145 int clampedStencilRef = de::clamp(stencilState.ref, 0, (1<<numStencilBits)-1); in executeStencilSFail() 152 …case STENCILOP_INCR: SAMPLE_REGISTER_SFAIL(de::clamp(stencilBufferValue+1, 0, (1<<numStencilBits)… in executeStencilSFail() 153 …case STENCILOP_DECR: SAMPLE_REGISTER_SFAIL(de::clamp(stencilBufferValue-1, 0, (1<<numStencilBits)… in executeStencilSFail() 175 float sampleDepth = de::clamp(sampleDepthFloat, 0.0f, 1.0f); \ in executeDepthCompare() 258 const float clampedDepth = de::clamp(frag.sampleDepths[fragSampleNdx], 0.0f, 1.0f); in executeDepthWrite() 286 …case STENCILOP_INCR: SAMPLE_REGISTER_DPFAIL_OR_DPPASS(CONDITION, de::clamp(stencilBufferValue+1, … in executeStencilDpFailAndPass() 287 …case STENCILOP_DECR: SAMPLE_REGISTER_DPFAIL_OR_DPPASS(CONDITION, de::clamp(stencilBufferValue-1, … in executeStencilDpFailAndPass() [all …]
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_tile_soa.py | 133 … value = conversion_expr(src_channel, dst_channel, dst_native_type, value, clamp=False) 144 … value = conversion_expr(src_channel, dst_channel, dst_native_type, value, clamp=False) 202 value = conversion_expr(src_channel, dst_channel, dst_native_type, value, clamp=False) 275 … value = conversion_expr(src_channel, dst_channel, dst_native_type, value, clamp=False) 286 … value = conversion_expr(src_channel, dst_channel, dst_native_type, value, clamp=False)
|
/external/llvm/lib/Target/R600/ |
D | VIInstrFormats.td | 115 bits<1> clamp; 122 let Inst{15} = clamp; 144 bits<1> clamp; 148 let Inst{15} = clamp;
|