/third_party/mesa3d/src/gallium/auxiliary/util/ |
H A D | u_helpers.c | 464 util_lower_clearsize_to_dword(const void *clearValue, int *clearValueSize, uint32_t *clamped) in util_lower_clearsize_to_dword() argument 479 *clamped = *clear_value; in util_lower_clearsize_to_dword() 488 *clamped = *(uint8_t *)clearValue; in util_lower_clearsize_to_dword() 489 *clamped |= in util_lower_clearsize_to_dword() 490 (*clamped << 8) | (*clamped << 16) | (*clamped << 24); in util_lower_clearsize_to_dword() 492 *clamped = *(uint16_t *)clearValue; in util_lower_clearsize_to_dword() 493 *clamped |= *clamped << 1 in util_lower_clearsize_to_dword() [all...] |
H A D | u_helpers.h | 122 util_lower_clearsize_to_dword(const void *clearValue, int *clearValueSize, uint32_t *clamped);
|
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/ |
H A D | ClampIndirectIndices.cpp | 102 TIntermTyped *clamped = variable 108 TIntermSequence constructorArgs = {clamped}; 109 clamped = TIntermAggregate::CreateConstructor(*StaticType::GetBasic<EbtInt, EbpHigh>(), 113 // Replace the right node (the index) with the clamped result. 114 queueReplacementWithParent(node, node->getRight(), clamped, OriginalNode::IS_DROPPED);
|
/third_party/skia/third_party/externals/abseil-cpp/absl/base/internal/ |
H A D | spinlock.cc | 205 uint32_t clamped = static_cast<uint32_t>( in EncodeWaitCycles() local 208 if (clamped == 0) { in EncodeWaitCycles() 214 if (clamped == kSpinLockSleeper) { in EncodeWaitCycles() 217 return clamped; in EncodeWaitCycles()
|
/third_party/mesa3d/src/compiler/nir/ |
H A D | nir_format_convert.h | 386 nir_ssa_def *clamped = nir_fmax(b, color, nir_imm_float(b, 0)); 389 nir_ssa_def *p1 = nir_pack_half_2x16_split(b, nir_channel(b, clamped, 0), 390 nir_channel(b, clamped, 1)); 391 nir_ssa_def *p2 = nir_pack_half_2x16_split(b, nir_channel(b, clamped, 2), 412 nir_ssa_def *clamped = nir_fmin(b, color, nir_imm_float(b, MAX_RGB9E5)); 415 clamped = nir_bcsel(b, nir_ult(b, nir_imm_int(b, 0x7f800000), color), 416 nir_imm_float(b, 0), clamped); 419 nir_ssa_def *maxu = nir_umax(b, nir_channel(b, clamped, 0), 420 nir_umax(b, nir_channel(b, clamped, 1), 421 nir_channel(b, clamped, [all...] |
/third_party/jerryscript/jerry-core/ecma/operations/ |
H A D | ecma-typedarray-object.c | 184 * Write an uint8_t clamped value into the given arraybuffer 190 uint8_t clamped; in ecma_typedarray_set_uint8_clamped_element() local 194 clamped = 255; in ecma_typedarray_set_uint8_clamped_element() 198 clamped = 0; in ecma_typedarray_set_uint8_clamped_element() 202 clamped = (uint8_t) value; in ecma_typedarray_set_uint8_clamped_element() 204 if (clamped + 0.5 < value in ecma_typedarray_set_uint8_clamped_element() 205 || (clamped + 0.5 == value && (clamped % 2) == 1)) in ecma_typedarray_set_uint8_clamped_element() 207 clamped ++; in ecma_typedarray_set_uint8_clamped_element() 211 *dst_p = (lit_utf8_byte_t) clamped; in ecma_typedarray_set_uint8_clamped_element() [all...] |
/third_party/mesa3d/src/panfrost/midgard/ |
H A D | midgard_errata_lod.c | 74 nir_ssa_def *clamped = nir_fmin(b, in nir_lod_errata_instr() local 78 nir_src_for_ssa(clamped)); in nir_lod_errata_instr()
|
/third_party/skia/third_party/externals/tint/src/transform/ |
H A D | robustness.cc | 53 /// @return the clamped replacement expression, or nullptr if `expr` should be 156 // performance cost, and if the unsigned value will be clamped by in Transform() 214 /// @return the clamped replacement call expression, or nullptr if `expr` 250 auto* clamped = b.Call("clamp", ctx.Clone(arg), zero, max); in Transform() 251 return clamped; in Transform() 274 auto* clamped = b.Call("clamp", ctx.Clone(arg), zero, max); in Transform() local 275 ctx.Replace(arg, clamped); in Transform()
|
/third_party/mesa3d/src/broadcom/compiler/ |
H A D | v3d_nir_lower_line_smooth.c | 131 nir_ssa_def *clamped = nir_fmin(&b, coverage, nir_imm_float(&b, 1.0f)); in initialise_coverage_var() local 133 nir_store_var(&b, state->coverage, clamped, 0x1 /* writemask */); in initialise_coverage_var()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/a5xx/ |
H A D | fd5_emit.c | 176 srgb[4]; /* appears to duplicate fp16[], but clamped, used for srgb */ 248 uint16_t clamped; in setup_border_colors() local 252 clamped = CLAMP(bc->ui[j], 0, 0x3); in setup_border_colors() 256 clamped = CLAMP(bc->i[j], -128, 127); in setup_border_colors() 258 clamped = CLAMP(bc->ui[j], 0, 255); in setup_border_colors() 262 clamped = CLAMP(bc->ui[j], 0, 0x3ff); in setup_border_colors() 266 clamped = CLAMP(bc->i[j], -32768, 32767); in setup_border_colors() 268 clamped = CLAMP(bc->ui[j], 0, 65535); in setup_border_colors() 273 clamped = 0; in setup_border_colors() 277 e->fp16[cd] = clamped; in setup_border_colors() [all...] |
/third_party/mesa3d/src/gallium/drivers/freedreno/a6xx/ |
H A D | fd6_emit.c | 72 srgb[4]; /* appears to duplicate fp16[], but clamped, used for srgb */ 153 uint16_t clamped; in setup_border_colors() local 157 clamped = CLAMP(bc->ui[j], 0, 0x3); in setup_border_colors() 161 clamped = CLAMP(bc->i[j], -128, 127); in setup_border_colors() 163 clamped = CLAMP(bc->ui[j], 0, 255); in setup_border_colors() 167 clamped = CLAMP(bc->ui[j], 0, 0x3ff); in setup_border_colors() 171 clamped = CLAMP(bc->i[j], -32768, 32767); in setup_border_colors() 173 clamped = CLAMP(bc->ui[j], 0, 65535); in setup_border_colors() 178 clamped = 0; in setup_border_colors() 182 e->fp16[cd] = clamped; in setup_border_colors() [all...] |
/third_party/mesa3d/src/gallium/drivers/r600/sfn/ |
H A D | sfn_shader_vs.cpp | 216 auto clamped = m_parent->value_factory().temp_register(); in emit_varying_pos() local 217 m_parent->emit_instruction(new AluInstr(op1_mov, clamped, src, {alu_write, alu_dst_clamp, alu_last_instr})); in emit_varying_pos() 218 auto alu = new AluInstr(op1_flt_to_int, out_value[1], clamped, AluInstr::last_write); in emit_varying_pos()
|
/third_party/mesa3d/src/gallium/auxiliary/gallivm/ |
H A D | lp_bld_pack.h | 140 boolean clamped,
|
H A D | lp_bld_pack.c | 565 * It is assumed the values are already clamped into the destination type range. 722 * It is assumed the values are already clamped into the destination type range. 826 boolean clamped, in lp_build_pack() 843 if(clamped) in lp_build_pack() 823 lp_build_pack(struct gallivm_state *gallivm, struct lp_type src_type, struct lp_type dst_type, boolean clamped, const LLVMValueRef *src, unsigned num_srcs) lp_build_pack() argument
|
/third_party/mesa3d/src/panfrost/util/ |
H A D | pan_lower_framebuffer.c | 230 nir_ssa_def *clamped = in pan_pack_norm() local 235 nir_ssa_def *f = nir_fmul(b, clamped, scales); in pan_pack_norm()
|
/third_party/mesa3d/src/mesa/main/ |
H A D | texcompress_astc.cpp | 227 static uint8x4_t clamped(int a, int b, int c, int d) in clamped() function 245 return uint8x4_t::clamped((r+b) >> 1, (g+b) >> 1, b, a); in blue_contract_clamped() 1027 e1 = uint8x4_t::clamped(v0+v1, v0+v1, v0+v1, v2+v3); in decode_colour_endpoints() 1050 e1 = uint8x4_t::clamped(v0+v1, v2+v3, v4+v5, 0xff); in decode_colour_endpoints() 1078 e1 = uint8x4_t::clamped(v0+v1, v2+v3, v4+v5, v6+v7); in decode_colour_endpoints()
|
/third_party/mesa3d/src/gallium/drivers/zink/ |
H A D | zink_clear.c | 510 uint32_t clamped; in zink_clear_buffer() local 511 if (util_lower_clearsize_to_dword(clear_value, &clear_value_size, &clamped)) in zink_clear_buffer() 512 clear_value = &clamped; in zink_clear_buffer()
|
/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
H A D | si_compute_blit.c | 431 uint32_t clamped; in si_clear_buffer() local 432 if (util_lower_clearsize_to_dword(clear_value, (int*)&clear_value_size, &clamped)) in si_clear_buffer() 433 clear_value = &clamped; in si_clear_buffer()
|
/third_party/ffmpeg/libswscale/x86/ |
H A D | output.asm | 538 ; At this point we have clamped uint8s arranged in this order:
|
/third_party/mesa3d/src/gallium/auxiliary/tgsi/ |
H A D | tgsi_exec.c | 419 union tgsi_exec_channel clamped; in micro_exp2() local 423 clamped.f[i] = 127.99999f; in micro_exp2() 425 clamped.f[i] = -126.99999f; in micro_exp2() 427 clamped.f[i] = src->f[i]; in micro_exp2() 430 src = &clamped; in micro_exp2()
|
/third_party/mesa3d/src/gallium/frontends/nine/ |
H A D | device9.c | 1683 boolean scaled, clamped, ms, flip_x = FALSE, flip_y = FALSE; in NineDevice9_StretchRect() local 1838 clamped = !!xy; in NineDevice9_StretchRect() 1844 if (clamped || scaled || (blit.dst.format != blit.src.format) || ms) { in NineDevice9_StretchRect()
|
/third_party/mesa3d/src/gallium/drivers/softpipe/ |
H A D | sp_tex_sample.c | 1054 * Hence just make sure that the 2nd coord is clamped, will simply pick the in get_texel_cube_seamless() 1965 * clamped to lod_min and lod_max. 2057 float clamped[TGSI_QUAD_SIZE]) in clamp_lod() 2070 clamped[i] = cl; in clamp_lod() 2054 clamp_lod(const struct sp_sampler_view *sp_sview, const struct sp_sampler *sp_samp, const float lod[TGSI_QUAD_SIZE], float clamped[TGSI_QUAD_SIZE]) clamp_lod() argument
|
/third_party/mesa3d/src/amd/llvm/ |
H A D | ac_nir_to_llvm.c | 4787 * depth texture, then D_t and D_ref are clamped to the in visit_tex() 4791 * so the depth comparison value isn't clamped for Z16 and in visit_tex() 4793 * an explicitly clamped 32-bit float format. in visit_tex() 4797 LLVMValueRef upgraded, clamped; in visit_tex() local 4803 clamped = ac_build_clamp(&ctx->ac, args.compare); in visit_tex() 4804 args.compare = LLVMBuildSelect(ctx->ac.builder, upgraded, clamped, args.compare, ""); in visit_tex()
|
/third_party/skia/third_party/externals/swiftshader/src/Reactor/ |
H A D | SubzeroReactor.cpp | 3612 RValue<Float4> clamped = Min(cast, Float4(0x7FFFFF80)); 3617 return Int4((clamped + Float4(0x00C00000)) - Float4(0x00C00000)); 3624 nearbyint->addArg(clamped.value());
|
/third_party/openGLES/xml/ |
H A D | readme.tex | 278 <kind name="Clamped[0; 1]" desc="This parameter will get clamped to the 0 to 1 range." />
|