Home
last modified time | relevance | path

Searched refs:Negate (Results 1 - 25 of 91) sorted by relevance

1234

/third_party/mesa3d/src/gallium/drivers/r300/compiler/
H A Dradeon_optimize.c58 combine.Negate = outer.Negate; in chain_srcregs()
61 combine.Negate = swizzle_mask(outer.Swizzle, inner.Negate); in chain_srcregs()
62 combine.Negate ^= outer.Negate; in chain_srcregs()
170 inst->U.I.SrcReg[0].Negate) { in copy_propagate()
216 *pnegate = GET_BIT(src.Negate, chan); in is_src_uniform_constant()
219 if (swz != *pswz || *pnegate != GET_BIT(src.Negate, chan)) { in is_src_uniform_constant()
245 inst->U.I.SrcReg[0].Negate in constant_folding_mad()
[all...]
H A Dradeon_dataflow_swizzles.c71 masked_negate = split.Phase[phase] & mov->U.I.SrcReg[0].Negate; in rewrite_source()
73 mov->U.I.SrcReg[0].Negate = 0; in rewrite_source()
75 mov->U.I.SrcReg[0].Negate = RC_MASK_XYZW; in rewrite_source()
82 inst->U.I.SrcReg[src].Negate = RC_MASK_NONE; in rewrite_source()
392 if (reg->Negate & (1 << chan)) { in try_rewrite_constant()
399 if (reg->Negate & (1 << chan)) { in try_rewrite_constant()
407 reg->Swizzle, reg->Negate, chan); in try_rewrite_constant()
418 reg->Negate = w_inline_constant ? reg->Negate & (1 << 3) : 0; in try_rewrite_constant()
H A Dr300_fragprog_swizzle.c119 if (reg.Abs || reg.Negate) in r300_swizzle_is_native()
139 if ((reg.Negate & relevant) && ((reg.Negate & relevant) != relevant)) in r300_swizzle_is_native()
175 if (matchmask && (!!(src.Negate & matchmask) != !!(src.Negate & (1 << comp)))) in r300_swizzle_split()
H A Dradeon_pair_translate.c49 inst->SrcReg[1].Negate = RC_MASK_NONE; in final_rewrite()
247 pair->RGB.Arg[i].Negate = !!(srcmask & inst->SrcReg[i].Negate & (RC_MASK_X | RC_MASK_Y | RC_MASK_Z)); in set_pair_instruction()
275 pair->Alpha.Arg[i].Negate = in set_pair_instruction()
276 !!(inst->SrcReg[i].Negate & in set_pair_instruction()
279 pair->Alpha.Arg[i].Negate = in set_pair_instruction()
280 !!(inst->SrcReg[i].Negate & RC_MASK_W); in set_pair_instruction()
H A Dr500_fragprog.c179 inst_if->U.I.SrcReg[0].Negate = 0; in r500_transform_IF()
198 if (opcode == RC_OPCODE_KIL && (reg.Swizzle != RC_SWIZZLE_XYZW || reg.Negate != RC_MASK_NONE)) in r500_swizzle_is_native()
204 reg.Negate &= ~(1 << i); in r500_swizzle_is_native()
211 if (reg.Negate) in r500_swizzle_is_native()
218 if (reg.Swizzle == RC_SWIZZLE_XYZW && !reg.Abs && !reg.Negate) in r500_swizzle_is_native()
230 if ((reg.Negate & relevant) && ((reg.Negate & relevant) != relevant)) in r500_swizzle_is_native()
253 negatebase[GET_BIT(src.Negate, i)] |= 1 << i; in r500_swizzle_split()
H A Dradeon_program_print.c235 int trivial_negate = (src.Negate == RC_MASK_NONE || src.Negate == RC_MASK_XYZW); in rc_print_src_register()
237 if (src.Negate == RC_MASK_XYZW) in rc_print_src_register()
252 rc_print_swizzle(f, src.Swizzle, trivial_negate ? 0 : src.Negate); in rc_print_src_register()
406 const char* neg = inst->RGB.Arg[arg].Negate ? "-" : ""; in rc_print_pair_instruction()
441 const char* neg = inst->Alpha.Arg[arg].Negate ? "-" : ""; in rc_print_pair_instruction()
H A Dradeon_inline_literals.c167 src_reg->Negate = src_reg->Negate ^ negate_mask; in rc_inline_literals()
H A Dradeon_program_tex.c229 inst_add->U.I.SrcReg[1].Negate = inst_add->U.I.SrcReg[1].Negate ^ RC_MASK_XYZW; in radeonTransformTEX()
231 inst_add->U.I.SrcReg[0].Negate = inst_add->U.I.SrcReg[0].Negate ^ RC_MASK_XYZW; in radeonTransformTEX()
360 inst_mad->U.I.SrcReg[2].Negate = RC_MASK_XYZ; in radeonTransformTEX()
373 inst_add->U.I.SrcReg[1].Negate = RC_MASK_XYZ; in radeonTransformTEX()
H A Dr3xx_vertprog.c145 /* src->Negate uses the RC_MASK_ flags from program_instruction.h, in t_src()
154 src->Negate) | in t_src()
161 /* src->Negate uses the RC_MASK_ flags from program_instruction.h, in t_src_scalar()
172 src->Negate ? RC_MASK_XYZW : RC_MASK_NONE) | in t_src_scalar()
258 vpi->SrcReg[0].Negate ? RC_MASK_XYZW : RC_MASK_NONE) | in ei_lit()
265 vpi->SrcReg[0].Negate ? RC_MASK_XYZW : RC_MASK_NONE) | in ei_lit()
272 vpi->SrcReg[0].Negate ? RC_MASK_XYZW : RC_MASK_NONE) | in ei_lit()
721 new_inst->U.I.SrcReg[1].Negate ^= RC_MASK_XYZW; in transform_nonnative_modifiers()
752 inst_mov->U.I.SrcReg[0].Negate = 0; in transform_source_conflicts()
770 inst_mov->U.I.SrcReg[0].Negate in transform_source_conflicts()
[all...]
H A Dradeon_program_alu.c153 newreg.Negate = RC_MASK_NONE; in absolute()
160 newreg.Negate = newreg.Negate ^ RC_MASK_XYZW; in negate()
255 src0.Negate &= ~(RC_MASK_Z | RC_MASK_W); in transform_DP2()
258 src1.Negate &= ~(RC_MASK_Z | RC_MASK_W); in transform_DP2()
664 src0.Negate &= ~RC_MASK_W; in transform_r300_vertex_DP3()
667 src1.Negate &= ~RC_MASK_W; in transform_r300_vertex_DP3()
757 inst->U.I.SrcReg[0].Negate ^= RC_MASK_XYZW; in transform_r300_vertex_SGT()
758 inst->U.I.SrcReg[1].Negate ^= RC_MASK_XYZW; in transform_r300_vertex_SGT()
766 inst->U.I.SrcReg[0].Negate in transform_r300_vertex_SLE()
[all...]
H A Dradeon_program_pair.h68 unsigned int Negate:1; member
H A Dradeon_compiler_util.c300 tmp.Negate = 0; in lmul_swizzle()
305 tmp.Negate |= GET_BIT(srcreg.Negate, swz) << i; in lmul_swizzle()
H A Dradeon_program.h54 unsigned int Negate:4; member
/third_party/mesa3d/src/gallium/drivers/r300/compiler/tests/
H A Drc_test_helpers.c117 struct match_info Negate; member
153 tokens.Negate.String = src_str + matches[1].rm_so; in init_rc_normal_src()
154 tokens.Negate.Length = match_length(matches, 1); in init_rc_normal_src()
164 /* Negate */ in init_rc_normal_src()
165 if (tokens.Negate.Length > 0) { in init_rc_normal_src()
166 src_reg->Negate = RC_MASK_XYZW; in init_rc_normal_src()
206 src_reg->Negate |= (1 << i); in init_rc_normal_src()
243 src_reg->Negate, src_reg->Abs); in init_rc_normal_src()
/third_party/mesa3d/src/gallium/auxiliary/tgsi/
H A Dtgsi_lowering.c298 new_inst.Src[2].Register.Negate = !new_inst.Src[2].Register.Negate; in transform_lrp()
310 new_inst.Src[2].Register.Negate = true; in transform_lrp()
354 new_inst.Src[1].Register.Negate = 1; in transform_frc()
470 new_inst.Src[1].Register.Negate = true; in transform_lit()
508 new_inst.Src[0].Register.Negate = true; in transform_lit()
585 new_inst.Src[1].Register.Negate = 1; in transform_exp()
619 new_inst.Src[1].Register.Negate = 1; in transform_exp()
720 new_inst.Src[1].Register.Negate = 1; in transform_log()
924 new_inst.Src[0].Register.Negate in transform_flr_ceil()
[all...]
H A Dtgsi_ureg.h60 unsigned Negate : 1; /* BOOL */ member
871 reg.Negate ^= 1; in ureg_negate()
880 reg.Negate = 0; in ureg_abs()
1090 src.Negate = 0; in ureg_src_array_register()
1125 src.Negate = 0; in ureg_src()
1180 src.Negate = 0; in ureg_src_undef()
H A Dtgsi_transform.h336 inst.Src[1].Register.Negate = src1_negate; in tgsi_transform_op2_inst()
439 inst.Src[1].Register.Negate = src1_negate; in tgsi_transform_op2_swz_inst()
492 inst.Src[0].Register.Negate = src0_negate; in tgsi_transform_op3_swz_inst()
542 inst.Src[0].Register.Negate = negate; in tgsi_transform_kill_inst()
/third_party/mesa3d/src/gallium/drivers/i915/
H A Di915_fpc_optimize.c74 d1->Register.Negate == d2->Register.Negate); in same_src_reg()
223 o->Negate = i->Negate; in copy_src_reg()
570 current.FullInstruction.Src[0].Register.Negate == 0 && in i915_fpc_useless_mov()
602 next->FullInstruction.Src[0].Register.Negate == 0 && in i915_fpc_optimize_useless_mov_after_inst()
H A Di915_fpc_translate.c214 source->Register.Negate, in src_vector()
215 source->Register.Negate, in src_vector()
216 source->Register.Negate, in src_vector()
217 source->Register.Negate in src_vector()
271 int n = source->Register.Negate; in src_vector()
/third_party/node/deps/v8/src/common/
H A Doperation.h26 V(Negate) \
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
H A DVFABIDemangling.cpp165 const bool Negate = ParseString.consume_front("n"); in tryParseCompileTimeLinearToken() local
168 if (Negate) in tryParseCompileTimeLinearToken()
/third_party/mesa3d/src/mesa/program/
H A Dprog_print.c545 srcReg->Negate, GL_FALSE)); in fprint_src_reg()
551 srcReg->Negate, GL_FALSE)); in fprint_src_reg()
634 inst->SrcReg[0].Negate, GL_TRUE)); in _mesa_fprint_instruction_opt()
H A Dprog_instruction.h202 GLuint Negate:4; member
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/MCTargetDesc/
H A DX86InstComments.cpp254 bool Negate = false; in printFMA3Comments() local
346 Negate = true; in printFMA3Comments()
358 Negate = true; in printFMA3Comments()
370 Negate = true; in printFMA3Comments()
383 Negate = true; in printFMA3Comments()
396 Negate = true; in printFMA3Comments()
409 Negate = true; in printFMA3Comments()
482 if (Negate) in printFMA3Comments()
/third_party/skia/src/effects/imagefilters/
H A DSkOffsetImageFilter.cpp139 SkPointPriv::Negate(vec); in onFilterNodeBounds()

Completed in 20 milliseconds

1234