/third_party/mesa3d/src/amd/compiler/tests/ |
D | test_optimizer.cpp | 37 writeout(0, bld.vop2(aco_opcode::v_mul_f32, bld.def(v1), inputs[0], neg_b)); 44 writeout(1, bld.vop2(aco_opcode::v_mul_f32, bld.def(v1), Operand::c32(0x123456u), neg_a)); 49 writeout(2, bld.vop2(aco_opcode::v_mul_f32, bld.def(v1), neg_neg_a, inputs[1])); 54 writeout(3, bld.vop2(aco_opcode::v_mul_f32, bld.def(v1), abs_neg_a, inputs[1])); 60 writeout(4, bld.vop2(aco_opcode::v_mul_f32, bld.def(v1), neg_abs_a, inputs[1])); 64 … writeout(5, bld.vop2_dpp(aco_opcode::v_mul_f32, bld.def(v1), neg_a, inputs[1], dpp_row_sl(1))); 68 writeout(6, bld.vop2(aco_opcode::v_add_f32, bld.def(v1), neg_a, inputs[1])); 72 writeout(7, bld.vop2(aco_opcode::v_add_f32, bld.def(v1), inputs[1], neg_a)); 76 Temp neg_c = fneg(bld.copy(bld.def(v1), inputs[2])); 77 writeout(8, bld.vop2(aco_opcode::v_mul_f32, bld.def(v1), inputs[0], neg_c)); [all …]
|
D | test_optimizer_postRA.cpp | 39 auto &startpgm = bld.instructions->at(0); 51 auto vcmp = bld.vopc(aco_opcode::v_cmp_eq_u32, bld.def(bld.lm, vcc), Operand::zero(), 53 …auto sand = bld.sop2(Builder::s_and, bld.def(bld.lm, reg_s0), bld.def(s1, scc), bld.vcc(vcmp), Ope… 54 …auto br = bld.branch(aco_opcode::p_cbranch_z, bld.def(s2, reg_s2), bld.scc(sand.def(1).getTemp())); 68 auto vcmp = bld.vopc(aco_opcode::v_cmp_eq_u32, bld.def(bld.lm, vcc), Operand::zero(), 70 …auto sand = bld.sop2(Builder::s_and, bld.def(bld.lm, reg_s0), bld.def(s1, scc), bld.vcc(vcmp), Ope… 71 auto ovrwr = bld.sop1(Builder::s_mov, bld.def(bld.lm, vcc), Operand::zero()); 72 …auto br = bld.branch(aco_opcode::p_cbranch_z, bld.def(s2, reg_s2), bld.scc(sand.def(1).getTemp())); 85 auto vcmp = bld.vopc_e64(aco_opcode::v_cmp_eq_u32, bld.def(bld.lm, reg_s4), Operand::zero(), 87 …auto sand = bld.sop2(Builder::s_and, bld.def(bld.lm, reg_s0), bld.def(s1, scc), Operand(vcmp, reg_… [all …]
|
D | test_sdwa.cpp | 37 …SDWA_instruction *sdwa = &bld.vop2_sdwa(aco_opcode::v_mul_f32, bld.def(v1), inputs[0], inputs[1]).… 40 … sdwa = &bld.vop2_sdwa(aco_opcode::v_mul_f32, bld.def(v1b), inputs[0], inputs[1]).instr->sdwa(); 42 sdwa = &bld.vop2_sdwa(aco_opcode::v_mul_f32, bld.def(v1), inputs[0], inputs[1]).instr->sdwa(); 60 bld.vop2_sdwa(aco_opcode::v_mul_f32, bld.def(v1), inputs[0], inputs[1]); 75 bld.vop2_sdwa(aco_opcode::v_mul_f32, bld.def(v1), inputs[2], inputs[1]); 76 bld.vop2_sdwa(aco_opcode::v_mul_f32, bld.def(v1), inputs[0], inputs[3]); 80 bld.vop2_sdwa(aco_opcode::v_mul_f32, bld.def(v1), Operand::c32(4u), inputs[1]); 81 bld.vop2_sdwa(aco_opcode::v_mul_f32, bld.def(v1), inputs[0], Operand::c32(4u)); 86 bld.vop2_sdwa(aco_opcode::v_mul_f32, bld.def(v1), Operand::c32(0x1234u), inputs[1]); 87 bld.vop2_sdwa(aco_opcode::v_mul_f32, bld.def(v1), inputs[0], Operand::c32(0x1234u)); [all …]
|
D | test_regalloc.cpp | 47 …Builder::Result tmp = bld.pseudo(aco_opcode::p_split_vector, bld.def(v2b), bld.def(v2b), inputs[0]… 52 auto result1 = bld.vop1(aco_opcode::v_cvt_f32_f16, bld.def(v1), tmp.def(1).getTemp()); 53 auto result2 = bld.vop1(aco_opcode::v_cvt_f32_f16, bld.def(v1), tmp.def(0).getTemp()); 69 …Temp hi = bld.pseudo(aco_opcode::p_split_vector, bld.def(v2b), bld.def(v2b), inputs[0]).def(1).get… 73 Temp lo = bld.vop1(aco_opcode::v_not_b32, bld.def(v2b), Operand::zero()); 76 bld.pseudo(aco_opcode::p_create_vector, bld.def(v1), lo, hi); 89 Temp op1 = bld.pseudo(aco_opcode::p_unit_test, bld.def(s2)); 95 bld.pseudo(aco_opcode::p_unit_test, op, op1); 109 bld.pseudo(aco_opcode::p_unit_test, op); 112 bld.pseudo(aco_opcode::p_unit_test, inputs[0]); [all …]
|
D | test_builder.cpp | 37 writeout(0, bld.v_mul_imm(bld.def(v1), inputs[0], 0)); 40 writeout(1, bld.v_mul_imm(bld.def(v1), inputs[0], 1)); 44 writeout(2, bld.v_mul_imm(bld.def(v1), inputs[0], 4)); 48 writeout(3, bld.v_mul_imm(bld.def(v1), inputs[0], 2147483648u)); 56 writeout(4, bld.v_mul_imm(bld.def(v1), inputs[0], 9)); 63 writeout(5, bld.v_mul_imm(bld.def(v1), inputs[0], 7)); 74 writeout(6, bld.v_mul_imm(bld.def(v1), inputs[0], 4 | 64)); 83 writeout(7, bld.v_mul_imm(bld.def(v1), inputs[0], 4 | 64 | 256)); 93 writeout(8, bld.v_mul_imm(bld.def(v1), inputs[0], 4 | 64 | 256 | 2048)); 104 writeout(9, bld.v_mul_imm(bld.def(v1), inputs[0], 2 | 4)); [all …]
|
/third_party/icu/icu4c/source/test/intltest/ |
D | localebuildertest.cpp | 56 void LocaleBuilderTest::Verify(LocaleBuilder& bld, const char* expected, const char* msg) { in Verify() argument 60 if (bld.copyErrorTo(copyStatus)) { in Verify() 63 if (!bld.copyErrorTo(errorStatus) || errorStatus != U_ILLEGAL_ARGUMENT_ERROR) { in Verify() 66 Locale loc = bld.build(status); in Verify() 187 LocaleBuilder bld; in TestLocaleBuilder() local 202 bld.clear(); in TestLocaleBuilder() 208 bld.setLanguage(testCase[i++]); in TestLocaleBuilder() 209 bld.copyErrorTo(copyStatus); in TestLocaleBuilder() 210 bld.build(status); in TestLocaleBuilder() 212 bld.setScript(testCase[i++]); in TestLocaleBuilder() [all …]
|
/third_party/mesa3d/src/compiler/nir/tests/ |
D | comparison_pre_tests.cpp | 34 bld = nir_builder_init_simple_shader(MESA_SHADER_VERTEX, &options, in comparison_pre_test() 37 v1 = nir_imm_vec4(&bld, -2.0, -1.0, 1.0, 2.0); in comparison_pre_test() 38 v2 = nir_imm_vec4(&bld, 2.0, 1.0, -1.0, -2.0); in comparison_pre_test() 39 v3 = nir_imm_vec4(&bld, 3.0, 4.0, 5.0, 6.0); in comparison_pre_test() 44 ralloc_free(bld.shader); in ~comparison_pre_test() 48 struct nir_builder bld; member in comparison_pre_test 96 nir_ssa_def *one = nir_imm_float(&bld, 1.0f); in TEST_F() 97 nir_ssa_def *a = nir_channel(&bld, nir_fadd(&bld, v1, v3), 0); in TEST_F() 99 nir_ssa_def *flt = nir_flt(&bld, a, one); in TEST_F() 101 nir_if *nif = nir_push_if(&bld, flt); in TEST_F() [all …]
|
D | lower_returns_tests.cpp | 32 nir_builder bld; member in nir_opt_lower_returns_test 42 bld = nir_builder_init_simple_shader(MESA_SHADER_VERTEX, &options, "lower returns test"); in nir_opt_lower_returns_test() 44 nir_variable *var = nir_variable_create(bld.shader, nir_var_shader_in, glsl_int_type(), "in"); in nir_opt_lower_returns_test() 45 in_def = nir_load_var(&bld, var); in nir_opt_lower_returns_test() 50 ralloc_free(bld.shader); in ~nir_opt_lower_returns_test() 95 nir_loop *loop = nir_push_loop(&bld); in TEST_F() 97 nir_ssa_def *one = nir_imm_int(&bld, 1); in TEST_F() 99 nir_ssa_def *cmp_result = nir_ieq(&bld, in_def, one); in TEST_F() 100 nir_if *nif = nir_push_if(&bld, cmp_result); in TEST_F() 102 nir_jump(&bld, nir_jump_return); in TEST_F() [all …]
|
D | opt_if_tests.cpp | 32 nir_builder bld; member in nir_opt_if_test 43 bld = nir_builder_init_simple_shader(MESA_SHADER_VERTEX, &options, "if test"); in nir_opt_if_test() 45 nir_variable *var = nir_variable_create(bld.shader, nir_var_shader_in, glsl_int_type(), "in"); in nir_opt_if_test() 46 in_def = nir_load_var(&bld, var); in nir_opt_if_test() 48 out_var = nir_variable_create(bld.shader, nir_var_shader_out, glsl_int_type(), "out"); in nir_opt_if_test() 53 ralloc_free(bld.shader); in ~nir_opt_if_test() 70 nir_ssa_def *one = nir_imm_int(&bld, 1); in TEST_F() 72 nir_ssa_def *cmp_result = nir_ieq(&bld, in_def, one); in TEST_F() 73 nir_if *nif = nir_push_if(&bld, cmp_result); in TEST_F() 75 nir_push_else(&bld, NULL); in TEST_F() [all …]
|
/third_party/mesa3d/src/gallium/drivers/llvmpipe/ |
D | lp_bld_blend_aos.c | 94 lp_build_blend_factor_unswizzled(struct lp_build_blend_aos_context *bld, in lp_build_blend_factor_unswizzled() argument 98 LLVMValueRef src_alpha = bld->src_alpha ? bld->src_alpha : bld->src; in lp_build_blend_factor_unswizzled() 99 LLVMValueRef src1_alpha = bld->src1_alpha ? bld->src1_alpha : bld->src1; in lp_build_blend_factor_unswizzled() 100 LLVMValueRef const_alpha = bld->const_alpha ? bld->const_alpha : bld->const_; in lp_build_blend_factor_unswizzled() 104 return bld->base.zero; in lp_build_blend_factor_unswizzled() 106 return bld->base.one; in lp_build_blend_factor_unswizzled() 108 return bld->src; in lp_build_blend_factor_unswizzled() 113 return bld->dst; in lp_build_blend_factor_unswizzled() 116 return bld->base.one; in lp_build_blend_factor_unswizzled() 122 if (!bld->saturate) { in lp_build_blend_factor_unswizzled() [all …]
|
D | lp_bld_blend.c | 108 lp_build_mul_norm_expand(struct lp_build_context *bld, in lp_build_mul_norm_expand() argument 113 const struct lp_type type = bld->type; in lp_build_mul_norm_expand() 123 if (a == bld->zero || b == bld->zero) { in lp_build_mul_norm_expand() 124 LLVMValueRef zero = LLVMConstNull(lp_build_vec_type(bld->gallivm, wide_type)); in lp_build_mul_norm_expand() 135 lp_build_unpack2_native(bld->gallivm, type, wide_type, a, &al, &ah); in lp_build_mul_norm_expand() 136 lp_build_unpack2_native(bld->gallivm, type2, wide_type2, b, &bl, &bh); in lp_build_mul_norm_expand() 138 *resl = lp_build_mul_norm(bld->gallivm, wide_type, al, bl); in lp_build_mul_norm_expand() 139 *resh = lp_build_mul_norm(bld->gallivm, wide_type, ah, bh); in lp_build_mul_norm_expand() 147 lp_build_blend_func(struct lp_build_context *bld, in lp_build_blend_func() argument 154 return lp_build_add(bld, term1, term2); in lp_build_blend_func() [all …]
|
/third_party/mesa3d/src/gallium/auxiliary/gallivm/ |
D | lp_bld_tgsi_aos.c | 75 struct lp_build_tgsi_aos_context *bld = lp_aos_context(bld_base); in swizzle_aos() local 82 swizzles[bld->inv_swizzles[0]] = bld->swizzles[swizzle_x]; in swizzle_aos() 83 swizzles[bld->inv_swizzles[1]] = bld->swizzles[swizzle_y]; in swizzle_aos() 84 swizzles[bld->inv_swizzles[2]] = bld->swizzles[swizzle_z]; in swizzle_aos() 85 swizzles[bld->inv_swizzles[3]] = bld->swizzles[swizzle_w]; in swizzle_aos() 87 return lp_build_swizzle_aos(&bld->bld_base.base, a, swizzles); in swizzle_aos() 92 swizzle_scalar_aos(struct lp_build_tgsi_aos_context *bld, in swizzle_scalar_aos() argument 96 chan = bld->swizzles[chan]; in swizzle_scalar_aos() 97 return lp_build_swizzle_scalar_aos(&bld->bld_base.base, a, chan, 4); in swizzle_scalar_aos() 108 struct lp_build_tgsi_aos_context * bld = lp_aos_context(bld_base); in emit_fetch_constant() local [all …]
|
D | lp_bld_arit.c | 92 lp_build_min_simple(struct lp_build_context *bld, in lp_build_min_simple() argument 97 const struct lp_type type = bld->type; in lp_build_min_simple() 179 min = lp_build_intrinsic_binary_anylength(bld->gallivm, intrinsic, in lp_build_min_simple() 182 isnan = lp_build_isnan(bld, b); in lp_build_min_simple() 183 return lp_build_select(bld, isnan, a, min); in lp_build_min_simple() 185 return lp_build_intrinsic_binary_anylength(bld->gallivm, intrinsic, in lp_build_min_simple() 194 LLVMValueRef isnan = lp_build_isnan(bld, a); in lp_build_min_simple() 195 cond = lp_build_cmp(bld, PIPE_FUNC_LESS, a, b); in lp_build_min_simple() 196 cond = LLVMBuildXor(bld->gallivm->builder, cond, isnan, ""); in lp_build_min_simple() 197 return lp_build_select(bld, cond, a, b); in lp_build_min_simple() [all …]
|
D | lp_bld_sample_aos.c | 78 lp_build_sample_wrap_nearest_int(struct lp_build_sample_context *bld, in lp_build_sample_wrap_nearest_int() argument 90 struct lp_build_context *int_coord_bld = &bld->int_coord_bld; in lp_build_sample_wrap_nearest_int() 91 LLVMBuilderRef builder = bld->gallivm->builder; in lp_build_sample_wrap_nearest_int() 101 struct lp_build_context *coord_bld = &bld->coord_bld; in lp_build_sample_wrap_nearest_int() 139 lp_build_coord_repeat_npot_linear_int(struct lp_build_sample_context *bld, in lp_build_coord_repeat_npot_linear_int() argument 146 struct lp_build_context *coord_bld = &bld->coord_bld; in lp_build_coord_repeat_npot_linear_int() 147 struct lp_build_context *int_coord_bld = &bld->int_coord_bld; in lp_build_coord_repeat_npot_linear_int() 159 coord_f = lp_build_mul_imm(&bld->coord_bld, coord_f, 256); in lp_build_coord_repeat_npot_linear_int() 166 lp_build_context_init(&abs_coord_bld, bld->gallivm, abs_type); in lp_build_coord_repeat_npot_linear_int() 170 i32_c128 = lp_build_const_int_vec(bld->gallivm, bld->int_coord_type, -128); in lp_build_coord_repeat_npot_linear_int() [all …]
|
D | lp_bld_bitarit.c | 41 lp_build_or(struct lp_build_context *bld, LLVMValueRef a, LLVMValueRef b) in lp_build_or() argument 43 LLVMBuilderRef builder = bld->gallivm->builder; in lp_build_or() 44 const struct lp_type type = bld->type; in lp_build_or() 52 a = LLVMBuildBitCast(builder, a, bld->int_vec_type, ""); in lp_build_or() 53 b = LLVMBuildBitCast(builder, b, bld->int_vec_type, ""); in lp_build_or() 59 res = LLVMBuildBitCast(builder, res, bld->vec_type, ""); in lp_build_or() 67 lp_build_xor(struct lp_build_context *bld, LLVMValueRef a, LLVMValueRef b) in lp_build_xor() argument 69 LLVMBuilderRef builder = bld->gallivm->builder; in lp_build_xor() 70 const struct lp_type type = bld->type; in lp_build_xor() 78 a = LLVMBuildBitCast(builder, a, bld->int_vec_type, ""); in lp_build_xor() [all …]
|
D | lp_bld_tgsi_soa.c | 118 struct lp_build_tgsi_soa_context * bld = lp_soa_context(bld_base); in mask_vec() local 119 LLVMBuilderRef builder = bld->bld_base.base.gallivm->builder; in mask_vec() 120 struct lp_exec_mask *exec_mask = &bld->exec_mask; in mask_vec() 121 LLVMValueRef bld_mask = bld->mask ? lp_build_mask_value(bld->mask) : NULL; in mask_vec() 127 return LLVMBuildAnd(builder, lp_build_mask_value(bld->mask), in mask_vec() 175 LLVMBuilderRef builder = mask->bld->gallivm->builder; in lp_exec_endswitch() 227 LLVMBuilderRef builder = mask->bld->gallivm->builder; in lp_exec_case() 239 casemask = lp_build_cmp(mask->bld, PIPE_FUNC_EQUAL, caseval, ctx->switch_val); in lp_exec_case() 305 LLVMBuilderRef builder = mask->bld->gallivm->builder; in lp_exec_default() 386 LLVMBuilderRef builder = mask->bld->gallivm->builder; in lp_exec_mask_ret() [all …]
|
D | lp_bld_arit.h | 53 lp_build_comp(struct lp_build_context *bld, 57 lp_build_add(struct lp_build_context *bld, 62 lp_build_horizontal_add(struct lp_build_context *bld, 66 lp_build_hadd_partial4(struct lp_build_context *bld, 71 lp_build_sub(struct lp_build_context *bld, 83 lp_build_mul(struct lp_build_context *bld, 88 lp_build_mul_32_lohi_cpu(struct lp_build_context *bld, 94 lp_build_mul_32_lohi(struct lp_build_context *bld, 100 lp_build_mul_imm(struct lp_build_context *bld, 105 lp_build_div(struct lp_build_context *bld, [all …]
|
D | lp_bld_sample.c | 240 lp_build_pmin(struct lp_build_sample_context *bld, in lp_build_pmin() argument 246 struct gallivm_state *gallivm = bld->gallivm; in lp_build_pmin() 247 LLVMBuilderRef builder = bld->gallivm->builder; in lp_build_pmin() 248 struct lp_build_context *coord_bld = &bld->coord_bld; in lp_build_pmin() 249 struct lp_build_context *int_size_bld = &bld->int_size_in_bld; in lp_build_pmin() 250 struct lp_build_context *float_size_bld = &bld->float_size_in_bld; in lp_build_pmin() 251 struct lp_build_context *pmin_bld = &bld->lodf_bld; in lp_build_pmin() 252 LLVMTypeRef i32t = LLVMInt32TypeInContext(bld->gallivm->context); in lp_build_pmin() 263 first_level = bld->dynamic_state->first_level(bld->dynamic_state, bld->gallivm, in lp_build_pmin() 264 bld->context_ptr, texture_unit, NULL); in lp_build_pmin() [all …]
|
/third_party/mesa3d/src/compiler/nir/ |
D | nir_lower_idiv.c | 44 convert_instr(nir_builder *bld, nir_op op, in convert_instr() argument 55 af = nir_i2f32(bld, numer); in convert_instr() 56 bf = nir_i2f32(bld, denom); in convert_instr() 57 af = nir_fabs(bld, af); in convert_instr() 58 bf = nir_fabs(bld, bf); in convert_instr() 59 a = nir_iabs(bld, numer); in convert_instr() 60 b = nir_iabs(bld, denom); in convert_instr() 62 af = nir_u2f32(bld, numer); in convert_instr() 63 bf = nir_u2f32(bld, denom); in convert_instr() 69 bf = nir_frcp(bld, bf); in convert_instr() [all …]
|
/third_party/mesa3d/src/gallium/drivers/nouveau/codegen/ |
D | nv50_ir_lowering_nv50.cpp | 62 expandIntegerMUL(BuildUtil *bld, Instruction *mul) in expandIntegerMUL() argument 87 bld->setPosition(mul, true); in expandIntegerMUL() 93 t[j] = bld->getSSA(fullSize); in expandIntegerMUL() 96 s[0] = bld->getSSA(fullSize); in expandIntegerMUL() 97 s[1] = bld->getSSA(fullSize); in expandIntegerMUL() 98 bld->mkOp1(OP_ABS, mul->sType, s[0], mul->getSrc(0)); in expandIntegerMUL() 99 bld->mkOp1(OP_ABS, mul->sType, s[1], mul->getSrc(1)); in expandIntegerMUL() 107 i[0] = bld->mkSplit(a, halfSize, s[0]); in expandIntegerMUL() 108 i[1] = bld->mkSplit(b, halfSize, s[1]); in expandIntegerMUL() 111 i[2] = i[3] = bld->mkOp2(OP_MUL, fTy, t[1], a[1], in expandIntegerMUL() [all …]
|
D | nv50_ir_lowering_gv100.cpp | 35 Value *pred = bld.getSSA(1, FILE_PREDICATE); in handleCMP() 37 bld.mkCmp(OP_SET, reverseCondCode(i->asCmp()->setCond), TYPE_U8, pred, in handleCMP() 38 i->sType, bld.mkImm(0), i->getSrc(2))->ftz = i->ftz; in handleCMP() 39 bld.mkOp3(OP_SELP, TYPE_U32, i->getDef(0), i->getSrc(0), i->getSrc(1), pred); in handleCMP() 48 Value *carry = bld.getSSA(1, FILE_PREDICATE); in handleIADD64() 49 Value *def[2] = { bld.getSSA(), bld.getSSA() }; in handleIADD64() 54 bld.mkSplit(src[s], 4, i->getSrc(s)); in handleIADD64() 57 src[s][1] = bld.mkImm(0); in handleIADD64() 61 bld.mkOp2(OP_ADD, TYPE_U32, def[0], src[0][0], src[1][0])-> in handleIADD64() 63 bld.mkOp2(OP_ADD, TYPE_U32, def[1], src[0][1], src[1][1])-> in handleIADD64() [all …]
|
D | nv50_ir_lowering_nvc0.cpp | 49 bld.setPosition(i, false); in handleDIV() 57 bld.mkMovToReg(s, i->getSrc(s)); in handleDIV() 60 bld.mkMovToReg(s, ld->getSrc(0)); in handleDIV() 75 call = bld.mkFlow(OP_CALL, NULL, CC_ALWAYS, NULL); in handleDIV() 76 bld.mkMovFromReg(i->getDef(0), i->op == OP_DIV ? 0 : 1); in handleDIV() 77 bld.mkClobber(FILE_GPR, (i->op == OP_DIV) ? 0xe : 0xd, 2); in handleDIV() 78 bld.mkClobber(FILE_PREDICATE, (i->dType == TYPE_S32) ? 0xf : 0x3, 0); in handleDIV() 93 def[0] = bld.mkMovToReg(0, src[0])->getDef(0); in handleRCPRSQLib() 94 def[1] = bld.mkMovToReg(1, src[1])->getDef(0); in handleRCPRSQLib() 101 call = bld.mkFlow(OP_CALL, NULL, CC_ALWAYS, NULL); in handleRCPRSQLib() [all …]
|
/third_party/mesa3d/src/amd/compiler/ |
D | aco_instruction_selection.cpp | 138 Builder bld(ctx->program, ctx->block); in emit_mbcnt() local 140 assert(mask.isUndefined() || mask.bytes() == bld.lm.bytes()); in emit_mbcnt() 144 return bld.vop3(aco_opcode::v_mbcnt_lo_u32_b32, Definition(dst), mask_lo, base); in emit_mbcnt() 153 bld.pseudo(aco_opcode::p_split_vector, bld.def(rc), bld.def(rc), mask); in emit_mbcnt() 161 Temp mbcnt_lo = bld.vop3(aco_opcode::v_mbcnt_lo_u32_b32, bld.def(v1), mask_lo, base); in emit_mbcnt() 164 return bld.vop2(aco_opcode::v_mbcnt_hi_u32_b32, Definition(dst), mask_hi, mbcnt_lo); in emit_mbcnt() 166 return bld.vop3(aco_opcode::v_mbcnt_hi_u32_b32_e64, Definition(dst), mask_hi, mbcnt_lo); in emit_mbcnt() 170 emit_wqm(Builder& bld, Temp src, Temp dst = Temp(0, s1), bool program_needs_wqm = false) in emit_wqm() argument 173 dst = bld.tmp(src.regClass()); in emit_wqm() 177 if (bld.program->stage != fragment_fs) { in emit_wqm() [all …]
|
/third_party/mesa3d/src/intel/compiler/ |
D | brw_fs_nir.cpp | 50 bld.emit(SHADER_OPCODE_HALT_TARGET); in emit_nir_code() 89 fs_reg reg = bld.vgrf(BRW_REGISTER_TYPE_F, 4 * reg_size); in nir_setup_outputs() 92 outputs[loc + i] = offset(reg, bld, 4 * i); in nir_setup_outputs() 164 const fs_builder abld = v->bld.annotate("gl_InvocationID", NULL); in emit_system_values_block() 207 v->bld.annotate("gl_HelperInvocation", NULL); in emit_system_values_block() 283 const fs_builder abld = bld.annotate("gl_SubgroupInvocation", NULL); in nir_emit_system_values() 316 nir_locals[reg->index] = bld.vgrf(reg_type, size); in nir_emit_impl() 362 cond_reg = offset(cond_reg, bld, cond->src[0].swizzle[0]); in nir_emit_if() 369 fs_inst *inst = bld.MOV(bld.null_reg_d(), in nir_emit_if() 373 bld.IF(BRW_PREDICATE_NORMAL)->predicate_inverse = invert; in nir_emit_if() [all …]
|
D | test_fs_scoreboard.cpp | 99 emit_SEND(const fs_builder &bld, const fs_reg &dst, in emit_SEND() argument 102 fs_inst *inst = bld.emit(SHADER_OPCODE_SEND, dst, desc, desc, payload); in emit_SEND() 133 const fs_builder &bld = v->bld; in TEST_F() local 140 bld.ADD( x, g[1], g[2]); in TEST_F() 141 bld.MUL( y, g[3], g[4]); in TEST_F() 142 bld.AND(g[5], x, y); in TEST_F() 160 const fs_builder &bld = v->bld; in TEST_F() local 166 bld.ADD( x, g[1], g[2]); in TEST_F() 167 bld.MUL( g[3], g[4], g[5]); in TEST_F() 168 emit_SEND(bld, g[6], g[7], x); in TEST_F() [all …]
|