Home
last modified time | relevance | path

Searched refs:saturate (Results 1 - 25 of 142) sorted by relevance

123456

/third_party/mesa3d/src/intel/compiler/
H A Dtest_fs_saturate_propagation.cpp143 EXPECT_TRUE(instruction(block0, 0)->saturate); in TEST_F()
145 EXPECT_FALSE(instruction(block0, 1)->saturate); in TEST_F()
180 EXPECT_FALSE(instruction(block0, 0)->saturate); in TEST_F()
182 EXPECT_TRUE(instruction(block0, 1)->saturate); in TEST_F()
216 EXPECT_FALSE(instruction(block0, 0)->saturate); in TEST_F()
218 EXPECT_TRUE(instruction(block0, 1)->saturate); in TEST_F()
250 EXPECT_FALSE(instruction(block0, 0)->saturate); in TEST_F()
252 EXPECT_TRUE(instruction(block0, 1)->saturate); in TEST_F()
286 EXPECT_TRUE(instruction(block0, 0)->saturate); in TEST_F()
290 EXPECT_FALSE(instruction(block0, 1)->saturate); in TEST_F()
[all...]
H A Dbrw_fs_saturate_propagation.cpp57 !inst->saturate || in opt_saturate_propagation_local()
77 if (scan_inst->saturate) { in opt_saturate_propagation_local()
78 inst->saturate = false; in opt_saturate_propagation_local()
119 scan_inst->saturate = true; in opt_saturate_propagation_local()
120 inst->saturate = false; in opt_saturate_propagation_local()
132 !scan_inst->saturate || in opt_saturate_propagation_local()
H A Dbrw_fs_lower_regioning.cpp44 !inst->saturate && in is_byte_raw_mov()
341 (inst->saturate || inst->conditional_mod)) ||
393 * including saturate, conditional mod and any implicit type conversion
418 mov->saturate = inst->saturate; in lower_dst_modifiers()
434 inst->saturate = false; in lower_dst_modifiers()
573 assert(!sub_inst.flags_written(v->devinfo) && !sub_inst.saturate); in lower_exec_type()
H A Dbrw_fs_cse.cpp155 if (*negate && (a->saturate || b->saturate)) in operands_match()
180 a->saturate == b->saturate && in instructions_match()
H A Dbrw_ir_fs.h432 set_saturate(bool saturate, fs_inst *inst)
434 inst->saturate = saturate;
604 inst->is_partial_write() || inst->saturate ||
H A Dbrw_fs_copy_propagation.cpp54 bool saturate; member
652 if (entry->saturate) { in try_copy_propagate()
702 /* Compose any saturate modifiers. */ in try_copy_propagate()
703 inst->saturate = inst->saturate || entry->saturate; in try_copy_propagate()
751 if (entry->saturate) in try_constant_propagate()
1075 entry->saturate = inst->saturate; in opt_copy_propagation_local()
H A Dbrw_fs_lower_pack.cpp40 assert(inst->saturate == false); in lower_pack()
H A Dtest_fs_copy_propagation.cpp206 EXPECT_TRUE(mov->saturate); in TEST_F()
212 EXPECT_EQ(test[i].expected_result, sel->saturate); in TEST_F()
H A Dbrw_nir_opt_peephole_ffma.c238 ffma->dest.saturate = add->dest.saturate; in brw_nir_opt_peephole_ffma_instr()
/third_party/skia/docs/examples/
H A Dcolor_filter_vs_colorFilterImageFilter_saveLayer.cpp5 sk_sp<SkColorFilter> saturate() { in REG_FIDDLE() function
15 paint.setColorFilter(saturate()); in REG_FIDDLE()
19 paint2.setImageFilter(SkImageFilters::ColorFilter(saturate(), nullptr)); in REG_FIDDLE()
/third_party/mesa3d/src/gallium/drivers/llvmpipe/
H A Dlp_bld_blend_aos.c84 LLVMValueRef saturate; member
122 if (!bld->saturate) { in lp_build_blend_factor_unswizzled()
124 bld->saturate = lp_build_min(&bld->base, src_alpha, bld->base.zero); in lp_build_blend_factor_unswizzled()
136 bld->saturate = lp_build_min(&bld->base, src_alpha, inv_dst); in lp_build_blend_factor_unswizzled()
141 bld->saturate = lp_build_min(&bld->base, src_alpha, bld->inv_dst); in lp_build_blend_factor_unswizzled()
144 return bld->saturate; in lp_build_blend_factor_unswizzled()
/third_party/skia/src/gpu/ops/
H A DTextureOp.cpp235 Saturate saturate, in Make()
241 filter, mm, color, saturate, aaType, quad, subset); in Make()
250 Saturate saturate, in Make()
259 set, cnt, proxyRunCnt, filter, mm, saturate, aaType, constraint, in Make()
355 Saturate saturate) in Metadata()
364 , fSaturate(static_cast<uint16_t>(saturate)) {} in Metadata()
389 Saturate saturate() const { return static_cast<Saturate>(fSaturate); } in saturate() function
440 Saturate saturate, in TextureOpImpl()
448 , fMetadata(proxyView.swizzle(), filter, mm, Subset(!!subsetRect), saturate) { in TextureOpImpl()
488 const Saturate saturate, in TextureOpImpl()
229 Make(GrRecordingContext* context, GrSurfaceProxyView proxyView, sk_sp<GrColorSpaceXform> textureXform, GrSamplerState::Filter filter, GrSamplerState::MipmapMode mm, const SkPMColor4f& color, Saturate saturate, GrAAType aaType, DrawQuad* quad, const SkRect* subset) Make() argument
244 Make(GrRecordingContext* context, GrTextureSetEntry set[], int cnt, int proxyRunCnt, GrSamplerState::Filter filter, GrSamplerState::MipmapMode mm, Saturate saturate, GrAAType aaType, SkCanvas::SrcRectConstraint constraint, const SkMatrix& viewMatrix, sk_sp<GrColorSpaceXform> textureColorSpaceXform) Make() argument
435 TextureOpImpl(GrSurfaceProxyView proxyView, sk_sp<GrColorSpaceXform> textureColorSpaceXform, GrSamplerState::Filter filter, GrSamplerState::MipmapMode mm, const SkPMColor4f& color, Saturate saturate, GrAAType aaType, DrawQuad* quad, const SkRect* subsetRect) TextureOpImpl() argument
483 TextureOpImpl(GrTextureSetEntry set[], int cnt, int proxyRunCnt, const GrSamplerState::Filter filter, const GrSamplerState::MipmapMode mm, const Saturate saturate, const GrAAType aaType, const SkCanvas::SrcRectConstraint constraint, const SkMatrix& viewMatrix, sk_sp<GrColorSpaceXform> textureColorSpaceXform) TextureOpImpl() argument
1129 Make(GrRecordingContext* context, GrSurfaceProxyView proxyView, SkAlphaType alphaType, sk_sp<GrColorSpaceXform> textureXform, GrSamplerState::Filter filter, GrSamplerState::MipmapMode mm, const SkPMColor4f& color, Saturate saturate, SkBlendMode blendMode, GrAAType aaType, DrawQuad* quad, const SkRect* subset) Make() argument
1195 BatchSizeLimiter(SurfaceDrawContext* sdc, const GrClip* clip, GrRecordingContext* rContext, int numEntries, GrSamplerState::Filter filter, GrSamplerState::MipmapMode mm, Saturate saturate, SkCanvas::SrcRectConstraint constraint, const SkMatrix& viewMatrix, sk_sp<GrColorSpaceXform> textureColorSpaceXform) BatchSizeLimiter() argument
1255 AddTextureSetOps(SurfaceDrawContext* sdc, const GrClip* clip, GrRecordingContext* context, GrTextureSetEntry set[], int cnt, int proxyRunCnt, GrSamplerState::Filter filter, GrSamplerState::MipmapMode mm, Saturate saturate, SkBlendMode blendMode, GrAAType aaType, SkCanvas::SrcRectConstraint constraint, const SkMatrix& viewMatrix, sk_sp<GrColorSpaceXform> textureColorSpaceXform) AddTextureSetOps() argument
1435 auto saturate = random->nextBool() ? skgpu::v1::TextureOp::Saturate::kYes GR_DRAW_OP_TEST_DEFINE() local
[all...]
H A DQuadPerEdgeAA.cpp618 Saturate saturate) { in Make()
622 std::move(textureColorSpaceXform), saturate); in Make()
651 b->addBool((fSaturate == Saturate::kYes), "saturate");
773 (gp.fSaturate == Saturate::kYes) ? "saturate" : "");
865 Saturate saturate) in QuadPerEdgeAAGeometryProcessor()
867 , fSaturate(saturate) in QuadPerEdgeAAGeometryProcessor()
931 // Should saturate() be called on the color? Only relevant when created with a texture.
954 Saturate saturate) { in MakeTexturedProcessor()
957 saturate); in MakeTexturedProcessor()
611 Make(SkArenaAlloc* arena, const VertexSpec& vertexSpec, const GrShaderCaps& caps, const GrBackendFormat& backendFormat, GrSamplerState samplerState, const GrSwizzle& swizzle, sk_sp<GrColorSpaceXform> textureColorSpaceXform, Saturate saturate) Make() argument
859 QuadPerEdgeAAGeometryProcessor(const VertexSpec& spec, const GrShaderCaps& caps, const GrBackendFormat& backendFormat, GrSamplerState samplerState, const GrSwizzle& swizzle, sk_sp<GrColorSpaceXform> textureColorSpaceXform, Saturate saturate) QuadPerEdgeAAGeometryProcessor() argument
947 MakeTexturedProcessor(SkArenaAlloc* arena, const VertexSpec& spec, const GrShaderCaps& caps, const GrBackendFormat& backendFormat, GrSamplerState samplerState, const GrSwizzle& swizzle, sk_sp<GrColorSpaceXform> textureColorSpaceXform, Saturate saturate) MakeTexturedProcessor() argument
/third_party/mesa3d/src/gallium/frontends/d3d10umd/
H A DShaderTGSI.c818 boolean saturate) in translate_dst_operand()
848 if (saturate) { in translate_dst_operand()
1211 opcode->saturate); in expand_unary_to_scalarf()
1313 translate_dst_operand(&sx, &opcode.dst[0], opcode.saturate), in Shader_tgsi_translate()
1320 translate_dst_operand(&sx, &opcode.dst[1], opcode.saturate), in Shader_tgsi_translate()
1349 translate_dst_operand(&sx, &opcode.dst[0], opcode.saturate), in Shader_tgsi_translate()
1380 translate_dst_operand(&sx, &opcode.dst[0], opcode.saturate), in Shader_tgsi_translate()
1405 translate_dst_operand(&sx, &opcode.dst[0], opcode.saturate), in Shader_tgsi_translate()
1417 opcode.saturate), in Shader_tgsi_translate()
1447 opcode.saturate), in Shader_tgsi_translate()
816 translate_dst_operand(struct Shader_xlate *sx, const struct Shader_dst_operand *operand, boolean saturate) translate_dst_operand() argument
[all...]
/third_party/typescript/tests/baselines/reference/
H A DjsFunctionWithPrototypeNoErrorTruncationNoCrash.js9 saturate: function (ratio) {return this;},
27 saturate: function (ratio) { return this; },
/third_party/libsnd/src/GSM610/
H A Dadd.c16 #define saturate(x) \ macro
22 return saturate (sum) ; in gsm_add()
28 return saturate (diff) ; in gsm_sub()
/third_party/mesa3d/src/compiler/nir/
H A Dnir_lower_to_source_mods.c74 if (parent->dest.saturate) in nir_lower_to_source_mods_block()
139 /* We've covered sources. Now we're going to try and saturate the in nir_lower_to_source_mods_block()
151 /* We can only saturate float destinations */ in nir_lower_to_source_mods_block()
186 alu->dest.saturate = true; in nir_lower_to_source_mods_block()
194 child_alu->dest.saturate = false; in nir_lower_to_source_mods_block()
/third_party/mesa3d/src/gallium/drivers/freedreno/a2xx/
H A Dir2_cp.c74 if (p->alu.saturate) in cp_src()
210 p->alu.saturate |= instr->alu.saturate; in cp_export()
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/gtx/
H A Dcompatibility.hpp47 template <typename T, precision P> GLM_FUNC_QUALIFIER T saturate(T x){return clamp(x, T(0), T(1));} //!< \brief Returns clamp(x, 0, 1) for each component in x. (From GLM_GTX_compatibility) in saturate() function
48 template <typename T, precision P> GLM_FUNC_QUALIFIER tvec2<T, P> saturate(const tvec2<T, P>& x){return clamp(x, T(0), T(1));} //!< \brief Returns clamp(x, 0, 1) for each component in x. (From GLM_GTX_compatibility) in saturate() function
49 template <typename T, precision P> GLM_FUNC_QUALIFIER tvec3<T, P> saturate(const tvec3<T, P>& x){return clamp(x, T(0), T(1));} //!< \brief Returns clamp(x, 0, 1) for each component in x. (From GLM_GTX_compatibility) in saturate() function
50 template <typename T, precision P> GLM_FUNC_QUALIFIER tvec4<T, P> saturate(const tvec4<T, P>& x){return clamp(x, T(0), T(1));} //!< \brief Returns clamp(x, 0, 1) for each component in x. (From GLM_GTX_compatibility) in saturate() function
/third_party/mesa3d/src/asahi/compiler/
H A Dagx_optimizer.c104 if (def->saturate) continue; in agx_optimizer_fmov()
150 /* saturate(saturate(x)) = saturate(x) */ in agx_optimizer_fmov_rev()
151 I->saturate |= use->saturate; in agx_optimizer_fmov_rev()
/third_party/mesa3d/src/gallium/drivers/etnaviv/
H A Detnaviv_nir.c197 mul->dest.saturate = alu->dest.saturate; in etna_lower_alu_impl()
198 alu->dest.saturate = 0; in etna_lower_alu_impl()
/third_party/ffmpeg/libavfilter/
H A Dvf_colortemperature.c52 static float saturate(float input) in saturate() function
63 rgb[1] = saturate(0.39008157876901960784f * logf(kelvin) - 0.63184144378862745098f); in kelvin2rgb()
66 rgb[0] = saturate(1.29293618606274509804f * powf(t, -0.1332047592f)); in kelvin2rgb()
67 rgb[1] = saturate(1.12989086089529411765f * powf(t, -0.0755148492f)); in kelvin2rgb()
75 rgb[2] = saturate(0.54320678911019607843f * logf(kelvin - 10.0f) - 1.19625408914f); in kelvin2rgb()
/third_party/mesa3d/src/nouveau/codegen/
H A Dnv50_ir_emit_nv50.cpp992 if (i->saturate) in emitFMAD()
999 if (i->saturate) in emitFMAD()
1004 if (i->saturate) in emitFMAD()
1017 assert(!i->saturate); in emitDMAD()
1045 if (i->saturate) in emitFADD()
1053 if (i->saturate) in emitFADD()
1059 if (i->saturate) in emitFADD()
1071 assert(!i->saturate); in emitDADD()
1164 if (i->saturate) in emitFMUL()
1171 if (i->saturate) in emitFMUL()
[all...]
/third_party/mesa3d/src/mesa/program/
H A Dprogramopt.h45 GLenum fog_mode, GLboolean saturate);
/third_party/mesa3d/src/compiler/glsl/
H A Dopt_algebraic.cpp867 * a saturate operation in handle_expression()
884 * meet our conditions that we can do just a single saturate operation in handle_expression()
898 return saturate(x); in handle_expression()
904 return saturate(x); in handle_expression()
910 return saturate(expr(ir_binop_min, x, outer_const)); in handle_expression()
916 return saturate(expr(ir_binop_min, x, inner_const)); in handle_expression()
922 return saturate(expr(ir_binop_max, x, outer_const)); in handle_expression()
928 return saturate(expr(ir_binop_max, x, inner_const)); in handle_expression()

Completed in 20 milliseconds

123456