Home
last modified time | relevance | path

Searched refs:edge0 (Results 1 – 19 of 19) sorted by relevance

/external/OpenCL-CTS/test_conformance/commonfns/
Dtest_smoothstepf.cpp51 float verify_smoothstep(float *edge0, float *edge1, float *x, float *outptr, in verify_smoothstep() argument
60 t = (x[vi] - edge0[i]) / (edge1[i] - edge0[i]); in verify_smoothstep()
133 float edge0 = p_edge0[i]; in test_smoothstepf() local
137 if (edge0 < edge1) in test_smoothstepf()
Dtest_smoothstep.cpp76 verify_smoothstep(float *edge0, float *edge1, float *x, float *outptr, int n) in verify_smoothstep() argument
83 t = (x[i] - edge0[i]) / (edge1[i] - edge0[i]); in verify_smoothstep()
156 float edge0 = p_edge0[i]; in test_smoothstep() local
160 if (edge0 < edge1) in test_smoothstep()
/external/skqp/samplecode/
DSamplePatch.cpp117 SkPoint* edge0 = storage.get(); in draw() local
118 SkPoint* edge1 = edge0 + nu; in draw()
123 eval_patch_edge(fPts + 0, edge0, nu); in draw()
127 edge3[nv] = edge0[0]; // the last shall be first in draw()
138 memcpy(verts, edge0, (nu + 1) * sizeof(SkPoint)); in draw()
145 eval_sheet(edge0, nu, nv, col, row, &r[col]); in draw()
/external/OpenCL-CTS/test_conformance/clcpp/common_funcs/
Dcommon_funcs.hpp278 OUT1 operator()(const IN1& edge0, const IN2& edge1, const IN3& x) in operator ()()
286 if(x <= edge0) in operator ()()
294 OUT1 t = (x - edge0) / (edge1 - edge0); in operator ()()
/external/skia/samplecode/
DSamplePatch.cpp115 SkPoint* edge0 = storage.get(); in draw() local
116 SkPoint* edge1 = edge0 + nu; in draw()
121 eval_patch_edge(fPts + 0, edge0, nu); in draw()
125 edge3[nv] = edge0[0]; // the last shall be first in draw()
136 memcpy(verts, edge0, (nu + 1) * sizeof(SkPoint)); in draw()
143 eval_sheet(edge0, nu, nv, col, row, &r[col]); in draw()
/external/deqp/framework/common/
DtcuVectorUtil.hpp72 inline float smoothStep (float edge0, float edge1, float x) in smoothStep() argument
74 if (x <= edge0) return 0.0f; in smoothStep()
76 float t = de::clamp((x - edge0) / (edge1 - edge0), 0.0f, 1.0f); in smoothStep()
/external/mesa3d/src/compiler/nir/
Dnir_builtin_builder.c119 nir_smoothstep(nir_builder *b, nir_ssa_def *edge0, nir_ssa_def *edge1, nir_ssa_def *x) in nir_smoothstep() argument
126 nir_fsat(b, nir_fdiv(b, nir_fsub(b, x, edge0), in nir_smoothstep()
127 nir_fsub(b, edge1, edge0))); in nir_smoothstep()
Dnir_builtin_builder.h44 nir_ssa_def* nir_smoothstep(nir_builder *b, nir_ssa_def *edge0,
/external/skia/src/sksl/
Dsksl_gpu.inc101 $genType smoothstep($genType edge0, $genType edge1, $genType x);
102 $genType smoothstep(float edge0, float edge1, $genType x);
103 $genHType smoothstep($genHType edge0, $genHType edge1, $genHType x);
104 $genHType smoothstep(half edge0, half edge1, $genHType x);
/external/libvpx/libvpx/vp9/common/
Dvp9_pred_common.c291 const MV_REFERENCE_FRAME edge0 = in vp9_get_pred_context_single_ref_p2() local
293 pred_context = 4 * (edge0 == GOLDEN_FRAME); in vp9_get_pred_context_single_ref_p2()
/external/deqp/external/vulkancts/modules/vulkan/shaderexecutor/
DvktShaderBuiltinPrecisionTests.cpp3976 double applyExact (double edge0, double edge1) const in applyExact() argument
3978 return (edge0 >= edge1) ? TCU_NAN : 0.0; in applyExact()
3981 double precision (const EvalContext&, double, double edge0, double edge1) const in precision() argument
3983 return (edge0 >= edge1) ? TCU_NAN : 0.0; in precision()
3987 ExprP<deFloat16> nanIfGreaterOrEqual(const ExprP<deFloat16>& edge0, const ExprP<deFloat16>& edge1) in nanIfGreaterOrEqual() argument
3989 return app<NanIfGreaterOrEqual< Signature<deFloat16, deFloat16, deFloat16> > >(edge0, edge1); in nanIfGreaterOrEqual()
3992 ExprP<float> nanIfGreaterOrEqual(const ExprP<float>& edge0, const ExprP<float>& edge1) in nanIfGreaterOrEqual() argument
3994 return app<NanIfGreaterOrEqual< Signature<float, float, float> > >(edge0, edge1); in nanIfGreaterOrEqual()
4030 const ExprP<float>& edge0 = args.a; in doExpand() local
4033 const ExprP<float> tExpr = clamp((x - edge0) / (edge1 - edge0), constant(0.0f), constant(1.0f)) in doExpand()
[all …]
/external/swiftshader/src/Pipeline/
DSpirvShaderGLSLstd450.cpp192 auto edge0 = GenericValue(this, state, insn.word(5)); in EmitExtGLSLstd450() local
197 auto tx = Min(Max((x.Float(i) - edge0.Float(i)) / in EmitExtGLSLstd450()
198 (edge1.Float(i) - edge0.Float(i)), in EmitExtGLSLstd450()
/external/swiftshader/src/Shader/
DShaderCore.cpp1208 …void ShaderCore::smooth(Vector4f &dst, const Vector4f &edge0, const Vector4f &edge1, const Vector4… in smooth() argument
1210 …Float4 tx = Min(Max((x.x - edge0.x) / (edge1.x - edge0.x), Float4(0.0f)), Float4(1.0f)); dst.x = t… in smooth()
1211 …Float4 ty = Min(Max((x.y - edge0.y) / (edge1.y - edge0.y), Float4(0.0f)), Float4(1.0f)); dst.y = t… in smooth()
1212 …Float4 tz = Min(Max((x.z - edge0.z) / (edge1.z - edge0.z), Float4(0.0f)), Float4(1.0f)); dst.z = t… in smooth()
1213 …Float4 tw = Min(Max((x.w - edge0.w) / (edge1.w - edge0.w), Float4(0.0f)), Float4(1.0f)); dst.w = t… in smooth()
/external/skqp/src/sksl/
Dsksl.inc90 $genType smoothstep($genType edge0, $genType edge1, $genType x);
91 $genType smoothstep(float edge0, float edge1, $genType x);
92 //$genDType smoothstep($genDType edge0, $genDType edge1, $genDType x);
93 //$genDType smoothstep(double edge0, double edge1, $genDType x);
/external/angle/src/compiler/translator/
DIntermNode.cpp3637 float edge0 = unionArrays[0][i].getFConst(); in FoldAggregateBuiltIn() local
3641 if (edge0 >= edge1) in FoldAggregateBuiltIn()
3649 float t = gl::clamp((x - edge0) / (edge1 - edge0), 0.0f, 1.0f); in FoldAggregateBuiltIn()
/external/clang/lib/Headers/
Dopencl-c.h11440 float __ovld __cnfn smoothstep(float edge0, float edge1, float x);
11441 float2 __ovld __cnfn smoothstep(float2 edge0, float2 edge1, float2 x);
11442 float3 __ovld __cnfn smoothstep(float3 edge0, float3 edge1, float3 x);
11443 float4 __ovld __cnfn smoothstep(float4 edge0, float4 edge1, float4 x);
11444 float8 __ovld __cnfn smoothstep(float8 edge0, float8 edge1, float8 x);
11445 float16 __ovld __cnfn smoothstep(float16 edge0, float16 edge1, float16 x);
11446 float2 __ovld __cnfn smoothstep(float edge0, float edge1, float2 x);
11447 float3 __ovld __cnfn smoothstep(float edge0, float edge1, float3 x);
11448 float4 __ovld __cnfn smoothstep(float edge0, float edge1, float4 x);
11449 float8 __ovld __cnfn smoothstep(float edge0, float edge1, float8 x);
[all …]
/external/deqp/modules/glshared/
DglsBuiltinPrecisionTests.cpp3479 const ExprP<float>& edge0 = args.a; in doExpand() local
3482 const ExprP<float> tExpr = clamp((x - edge0) / (edge1 - edge0), in doExpand()
/external/deqp/external/vulkancts/modules/vulkan/spirv_assembly/
DvktSpvAsmInstructionTests.cpp15189 const fp16type edge0 (*in[0]); in calc() local
15194 if (edge0.isNaN() || edge1.isNaN() || x.isNaN() || edge0.asDouble() >= edge1.asDouble()) in calc()
15197 if (edge0.isInf() || edge1.isInf() || x.isInf()) in calc()
15202 const float edge0d (edge0.asFloat()); in calc()
15211 const double edge0d (edge0.asDouble()); in calc()
15234 const double edge0d (edge0.asDouble()); in calc()
/external/mesa3d/src/compiler/glsl/
Dbuiltin_functions.cpp5506 ir_variable *edge0 = in_var(edge_type, "edge0"); in _smoothstep() local
5509 MAKE_SIG(x_type, avail, 3, edge0, edge1, x); in _smoothstep()
5519 body.emit(assign(t, clamp(div(sub(x, edge0), sub(edge1, edge0)), in _smoothstep()