Home
last modified time | relevance | path

Searched refs:retype (Results 1 – 25 of 42) sorted by relevance

12

/third_party/mesa3d/src/intel/compiler/
Dtest_eu_validate.cpp320 struct brw_reg g = retype(g0, test_case[i].type); in TEST_P()
343 struct brw_reg g = retype(g0, t); in TEST_P()
344 brw_MOV(p, g, retype(brw_imm_w(0), test_case[i].type)); in TEST_P()
418 struct brw_reg g = retype(g0, test_case[i].type); in TEST_P()
510 struct brw_reg g = retype(g0, test_case[i].type); in TEST_P()
1194 brw_MOV(p, retype(g0, move[i].dst_type), retype(g0, move[i].src_type)); in TEST_P()
1204 brw_SEL(p, retype(g0, BRW_REGISTER_TYPE_UB), in TEST_P()
1205 retype(g0, BRW_REGISTER_TYPE_UB), in TEST_P()
1206 retype(g0, BRW_REGISTER_TYPE_UB)); in TEST_P()
1213 brw_SEL(p, retype(g0, BRW_REGISTER_TYPE_B), in TEST_P()
[all …]
Dbrw_vec4_generator.cpp96 brw_MOV(p, retype(brw_message_reg(inst->base_mrf + 1), op1.type), op1); in generate_math2_gfx4()
219 retype(brw_message_reg(inst->base_mrf), BRW_REGISTER_TYPE_UD); in generate_tex()
225 brw_MOV(p, header, retype(brw_vec8_grf(0, 0), BRW_REGISTER_TYPE_UD)); in generate_tex()
294 struct brw_reg addr = vec1(retype(brw_address_reg(0), BRW_REGISTER_TYPE_UD)); in generate_tex()
295 struct brw_reg surface_reg = vec1(retype(surface_index, BRW_REGISTER_TYPE_UD)); in generate_tex()
296 struct brw_reg sampler_reg = vec1(retype(sampler_index, BRW_REGISTER_TYPE_UD)); in generate_tex()
445 retype(src1, BRW_REGISTER_TYPE_UW)); in generate_gs_set_write_offset()
473 suboffset(stride(retype(dst, BRW_REGISTER_TYPE_UW), 2, 2, 1), 4), in generate_gs_set_vertex_count()
474 stride(retype(src, BRW_REGISTER_TYPE_UW), 8, 1, 0)); in generate_gs_set_vertex_count()
493 stride(retype(src0, BRW_REGISTER_TYPE_UD), 4, 4, 1)); in generate_gs_svb_write()
[all …]
Dbrw_fs_nir.cpp173 fs_reg g1(retype(brw_vec8_grf(1, 0), BRW_REGISTER_TYPE_UD)); in emit_system_values_block()
233 stride(retype(brw_vec1_grf(1 + i, 7), in emit_system_values_block()
260 abld.MOV(dst, negate(retype(anded, BRW_REGISTER_TYPE_D))); in emit_system_values_block()
378 retype(cond_reg, BRW_REGISTER_TYPE_D)); in nir_emit_if()
560 fs_reg g1 = fs_reg(retype(brw_vec1_grf(1, 1), BRW_REGISTER_TYPE_W)); in optimize_frontfacing_ternary()
576 fs_reg g0 = fs_reg(retype(brw_vec1_grf(0, 0), BRW_REGISTER_TYPE_W)); in optimize_frontfacing_ternary()
597 fs_reg g1_6 = fs_reg(retype(brw_vec1_grf(1, 6), BRW_REGISTER_TYPE_D)); in optimize_frontfacing_ternary()
616 bld.AND(retype(result, BRW_REGISTER_TYPE_D), tmp, brw_imm_d(0xbf800000)); in optimize_frontfacing_ternary()
656 bld.LZD(retype(result, BRW_REGISTER_TYPE_UD), in emit_find_msb_using_lzd()
657 retype(temp, BRW_REGISTER_TYPE_UD)); in emit_find_msb_using_lzd()
[all …]
Dbrw_eu_emit.c63 brw_MOV(p, retype(brw_message_reg(msg_reg_nr), BRW_REGISTER_TYPE_UD), in gfx6_resolve_implied_move()
64 retype(*src, BRW_REGISTER_TYPE_UD)); in gfx6_resolve_implied_move()
1278 dst = spread(retype(dst, BRW_REGISTER_TYPE_W), 2); in brw_F32TO16()
1282 inst = brw_MOV(p, retype(dst, BRW_REGISTER_TYPE_HF), src); in brw_F32TO16()
1317 src = spread(retype(src, BRW_REGISTER_TYPE_W), 2); in brw_F16TO32()
1325 return brw_MOV(p, dst, retype(src, BRW_REGISTER_TYPE_HF)); in brw_F16TO32()
1438 brw_set_src0(p, insn, vec1(retype(brw_null_reg(), BRW_REGISTER_TYPE_D))); in brw_IF()
1439 brw_set_src1(p, insn, vec1(retype(brw_null_reg(), BRW_REGISTER_TYPE_D))); in brw_IF()
1441 brw_set_dest(p, insn, vec1(retype(brw_null_reg(), BRW_REGISTER_TYPE_D))); in brw_IF()
1442 brw_set_src0(p, insn, vec1(retype(brw_null_reg(), BRW_REGISTER_TYPE_D))); in brw_IF()
[all …]
Dbrw_lower_logical_sends.cpp195 .MOV(retype(brw_vec1_grf(0, 0), BRW_REGISTER_TYPE_UW), in lower_fb_write_logical_send()
217 ubld.group(16, 0).MOV(header, retype(brw_vec8_grf(0, 0), in lower_fb_write_logical_send()
223 retype(brw_vec8_grf(0, 0), BRW_REGISTER_TYPE_UD), in lower_fb_write_logical_send()
224 retype(brw_vec8_grf(2, 0), BRW_REGISTER_TYPE_UD), in lower_fb_write_logical_send()
247 retype(brw_vec1_grf(0, 0), in lower_fb_write_logical_send()
258 ubld.group(1, 0).MOV(retype(component(header, 15), in lower_fb_write_logical_send()
306 .MOV(horiz_offset(retype(sources[length], BRW_REGISTER_TYPE_UW), in lower_fb_write_logical_send()
344 .MOV(retype(sources[length], BRW_REGISTER_TYPE_UB), in lower_fb_write_logical_send()
421 ubld.group(16, 0).MOV(header, retype(brw_vec8_grf(0, 0), in lower_fb_read_logical_send()
426 retype(brw_vec8_grf(0, 0), BRW_REGISTER_TYPE_UD), in lower_fb_read_logical_send()
[all …]
Dbrw_fs_generator.cpp151 brw_reg = retype(brw_reg, reg->type); in brw_reg_from_fs_reg()
276 retype(brw_sr0_reg(1), BRW_REGISTER_TYPE_UW)); in patch_halt_jumps()
311 brw_MOV(p, retype(brw_mask_stack_reg(0), BRW_REGISTER_TYPE_UW), in patch_halt_jumps()
370 brw_MOV(p, offset(retype(payload, BRW_REGISTER_TYPE_UD), 1), in fire_fb_write()
371 offset(retype(implied_header, BRW_REGISTER_TYPE_UD), 1)); in fire_fb_write()
385 retype(implied_header, BRW_REGISTER_TYPE_UW), in fire_fb_write()
418 struct brw_reg v1_null_ud = vec1(retype(brw_null_reg(), BRW_REGISTER_TYPE_UD)); in generate_fb_write()
426 retype(brw_vec1_grf(1, 6), BRW_REGISTER_TYPE_UD), in generate_fb_write()
502 retype(spread(indirect_byte_offset, 2), BRW_REGISTER_TYPE_UW); in generate_mov_indirect()
572 retype(brw_VxH_indirect(0, 0), BRW_REGISTER_TYPE_D)); in generate_mov_indirect()
[all …]
Dbrw_vec4_gs_nir.cpp69 retype(get_nir_src(instr->src[0], 1), BRW_REGISTER_TYPE_UD); in nir_emit_intrinsic()
77 retype(get_nir_src(instr->src[0], 1), BRW_REGISTER_TYPE_UD); in nir_emit_intrinsic()
83 retype(get_nir_src(instr->src[0], 1), BRW_REGISTER_TYPE_UD); in nir_emit_intrinsic()
89 emit(MOV(dest, retype(brw_vec4_grf(1, 0), BRW_REGISTER_TYPE_D))); in nir_emit_intrinsic()
Dbrw_fs_builder.h209 return retype(null_reg_ud(), type);
218 return dst_reg(retype(brw_null_reg(), BRW_REGISTER_TYPE_F)); in null_reg_f()
224 return dst_reg(retype(brw_null_reg(), BRW_REGISTER_TYPE_DF)); in null_reg_df()
233 return dst_reg(retype(brw_null_reg(), BRW_REGISTER_TYPE_D)); in null_reg_d()
242 return dst_reg(retype(brw_null_reg(), BRW_REGISTER_TYPE_UD)); in null_reg_ud()
480 CMP(null_reg_ud(), retype(left_low, BRW_REGISTER_TYPE_UD), in emit_scan_step()
481 retype(right_low, BRW_REGISTER_TYPE_UD), mod); in emit_scan_step()
677 emit(BRW_OPCODE_CMP, retype(dst, src0.type), in ALU3()
702 emit(BRW_OPCODE_CMPN, retype(dst, src0.type), in CMPN()
731 retype(dst, BRW_REGISTER_TYPE_F), in CSEL()
[all …]
Dbrw_reg.h548 retype(struct brw_reg reg, enum brw_reg_type type) in retype() function
595 return suboffset(retype(brw_vec16_reg(file, nr, 0), BRW_REGISTER_TYPE_UW), subnr); in brw_uw16_reg()
602 return suboffset(retype(brw_vec8_reg(file, nr, 0), BRW_REGISTER_TYPE_UW), subnr); in brw_uw8_reg()
609 return suboffset(retype(brw_vec1_reg(file, nr, 0), BRW_REGISTER_TYPE_UW), subnr); in brw_uw1_reg()
615 return retype(brw_vec1_reg(file, nr, subnr), BRW_REGISTER_TYPE_UD); in brw_ud1_reg()
937 return suboffset(retype(brw_vec16_reg(BRW_ARCHITECTURE_REGISTER_FILE, in brw_mask_stack_reg()
958 return retype(brw_vecn_reg(width, BRW_MESSAGE_REGISTER_FILE, nr, subnr), in brw_uvec_mrf()
1026 return retype(reg, type); in subscript()
1029 return suboffset(retype(spread(reg, scale), type), i); in subscript()
1072 return vec1(suboffset(retype(reg, BRW_REGISTER_TYPE_UD), elt)); in get_element_ud()
[all …]
Dbrw_compile_ff_gs.c90 c->reg.R0 = retype(brw_vec8_grf(i, 0), BRW_REGISTER_TYPE_UD); i++; in brw_ff_gs_alloc_regs()
94 c->reg.SVBI = retype(brw_vec8_grf(i++, 0), BRW_REGISTER_TYPE_UD); in brw_ff_gs_alloc_regs()
103 c->reg.header = retype(brw_vec8_grf(i++, 0), BRW_REGISTER_TYPE_UD); in brw_ff_gs_alloc_regs()
104 c->reg.temp = retype(brw_vec8_grf(i++, 0), BRW_REGISTER_TYPE_UD); in brw_ff_gs_alloc_regs()
108 retype(brw_vec4_grf(i++, 0), BRW_REGISTER_TYPE_UD); in brw_ff_gs_alloc_regs()
226 : retype(brw_null_reg(), BRW_REGISTER_TYPE_UD), in brw_ff_gs_emit_vue()
380 vec8(retype(c->reg.destination_indices, BRW_REGISTER_TYPE_UW)); in gfx6_sol_program()
478 retype(vertex_slot, BRW_REGISTER_TYPE_UD)); in gfx6_sol_program()
532 brw_AND(p, retype(brw_null_reg(), BRW_REGISTER_TYPE_UD), in gfx6_sol_program()
548 brw_AND(p, retype(brw_null_reg(), BRW_REGISTER_TYPE_UD), in gfx6_sol_program()
Dbrw_vec4_builder.h177 return retype(dst_reg(VGRF, shader->alloc.allocate(
181 return retype(null_reg_ud(), type);
190 return dst_reg(retype(brw_null_vec(dispatch_width()), in null_reg_f()
200 return dst_reg(retype(brw_null_vec(dispatch_width()), in null_reg_d()
210 return dst_reg(retype(brw_null_vec(dispatch_width()), in null_reg_ud()
467 emit(BRW_OPCODE_CMP, retype(dst, src0.type), in ALU2_ACC()
492 emit(BRW_OPCODE_CMPN, retype(dst, src0.type), in CMPN()
Dbrw_vec4_nir.cpp210 return retype(get_nir_dest(dest), type); in get_nir_dest()
234 reg = retype(reg, type); in get_nir_src()
323 return swizzle(src_reg(retype(tmp, BRW_REGISTER_TYPE_DF)), BRW_SWIZZLE_XXXX); in setup_imm_df()
408 src = retype(src, dest.type); in nir_emit_intrinsic()
461 src_reg offset_reg = retype(get_nir_src_imm(instr->src[2]), in nir_emit_intrinsic()
521 src_reg offset_reg = retype(get_nir_src_imm(instr->src[1]), in nir_emit_intrinsic()
679 src_reg temp_float = retype(temp, BRW_REGISTER_TYPE_F); in nir_emit_intrinsic()
706 emit(MOV(dest, retype(packed_consts, dest.type))); in nir_emit_intrinsic()
862 bld.LZD(retype(dst, BRW_REGISTER_TYPE_UD), in emit_find_msb_using_lzd()
863 retype(temp, BRW_REGISTER_TYPE_UD)); in emit_find_msb_using_lzd()
[all …]
Dbrw_clip_line.c46 c->reg.R0 = retype(brw_vec8_grf(i, 0), BRW_REGISTER_TYPE_UD); i++; in brw_clip_line_alloc_regs()
68 c->reg.planemask = retype(brw_vec1_grf(i, 3), BRW_REGISTER_TYPE_UD); in brw_clip_line_alloc_regs()
81 c->reg.vertex_src_mask = retype(brw_vec1_grf(i, 0), BRW_REGISTER_TYPE_UD); in brw_clip_line_alloc_regs()
82 c->reg.clipdistance_offset = retype(brw_vec1_grf(i, 1), BRW_REGISTER_TYPE_W); in brw_clip_line_alloc_regs()
86 c->reg.ff_sync = retype(brw_vec1_grf(i, 0), BRW_REGISTER_TYPE_UD); in brw_clip_line_alloc_regs()
130 struct brw_reg v1_null_ud = retype(vec1(brw_null_reg()), BRW_REGISTER_TYPE_UD); in clip_and_emit_line()
Dbrw_clip_tri.c53 c->reg.R0 = retype(brw_vec8_grf(i, 0), BRW_REGISTER_TYPE_UD); i++; in brw_clip_tri_alloc_regs()
84 c->reg.loopcount = retype(brw_vec1_grf(i, 1), BRW_REGISTER_TYPE_D); in brw_clip_tri_alloc_regs()
85 c->reg.nr_verts = retype(brw_vec1_grf(i, 2), BRW_REGISTER_TYPE_UD); in brw_clip_tri_alloc_regs()
86 c->reg.planemask = retype(brw_vec1_grf(i, 3), BRW_REGISTER_TYPE_UD); in brw_clip_tri_alloc_regs()
117 c->reg.vertex_src_mask = retype(brw_vec1_grf(i, 0), BRW_REGISTER_TYPE_UD); in brw_clip_tri_alloc_regs()
118 c->reg.clipdistance_offset = retype(brw_vec1_grf(i, 1), BRW_REGISTER_TYPE_W); in brw_clip_tri_alloc_regs()
122 c->reg.ff_sync = retype(brw_vec1_grf(i, 0), BRW_REGISTER_TYPE_UD); in brw_clip_tri_alloc_regs()
518 struct brw_reg t = retype(get_tmp(c), BRW_REGISTER_TYPE_UD); in brw_clip_test()
519 struct brw_reg t1 = retype(get_tmp(c), BRW_REGISTER_TYPE_UD); in brw_clip_test()
520 struct brw_reg t2 = retype(get_tmp(c), BRW_REGISTER_TYPE_UD); in brw_clip_test()
[all …]
Dbrw_fs_visitor.cpp163 struct brw_reg g1_uw = retype(brw_vec1_grf(1, 0), BRW_REGISTER_TYPE_UW); in emit_interpolation_setup_gfx4()
347 … struct brw_reg r1_0 = retype(brw_vec1_reg(BRW_GENERAL_REGISTER_FILE, 1, 0), BRW_REGISTER_TYPE_UB); in emit_interpolation_setup_gfx6()
388 struct brw_reg gi_uw = retype(brw_vec1_grf(1 + i, 0), BRW_REGISTER_TYPE_UW); in emit_interpolation_setup_gfx6()
486 const fs_reg u8_cps_width = fs_reg(retype(brw_vec1_grf(1, 0), BRW_REGISTER_TYPE_UB)); in emit_interpolation_setup_gfx6()
536 .MOV(retype(brw_flag_reg(0, i), BRW_REGISTER_TYPE_UW), in emit_interpolation_setup_gfx6()
537 retype(brw_vec1_grf(1 + i, 7), BRW_REGISTER_TYPE_UW)); in emit_interpolation_setup_gfx6()
600 fs_reg some_reg = fs_reg(retype(brw_vec8_grf(0, 0), in emit_alpha_test()
774 urb_handle = fs_reg(retype(brw_vec8_grf(4, 0), BRW_REGISTER_TYPE_UD)); in emit_urb_writes()
776 urb_handle = fs_reg(retype(brw_vec8_grf(1, 0), BRW_REGISTER_TYPE_UD)); in emit_urb_writes()
1076 struct brw_reg g0 = retype(brw_vec8_grf(0, 0), BRW_REGISTER_TYPE_UD); in emit_cs_terminate()
[all …]
Dbrw_vec4_surface_builder.cpp110 retype(header, BRW_REGISTER_TYPE_UD)); in emit_send()
114 offset(retype(addr, BRW_REGISTER_TYPE_UD), 8, i)); in emit_send()
118 offset(retype(src, BRW_REGISTER_TYPE_UD), 8, i)); in emit_send()
Dbrw_vec4_dead_code_eliminate.cpp108 inst->dst = dst_reg(retype(brw_null_reg(), inst->dst.type)); in dead_code_eliminate()
118 inst->dst = dst_reg(retype(brw_null_reg(), inst->dst.type)); in dead_code_eliminate()
Dbrw_vec4.h84 return dst_reg(retype(brw_null_reg(), BRW_REGISTER_TYPE_DF)); in dst_null_df()
89 return dst_reg(retype(brw_null_reg(), BRW_REGISTER_TYPE_D)); in dst_null_d()
94 return dst_reg(retype(brw_null_reg(), BRW_REGISTER_TYPE_UD)); in dst_null_ud()
Dbrw_fs.cpp564 fs_reg ts = fs_reg(retype(brw_vec4_reg(BRW_ARCHITECTURE_REGISTER_FILE, in get_timestamp()
1231 fs_reg g1 = fs_reg(retype(brw_vec1_grf(1, 1), BRW_REGISTER_TYPE_W)); in emit_frontfacing_interpolation()
1248 fs_reg g0 = fs_reg(retype(brw_vec1_grf(0, 0), BRW_REGISTER_TYPE_W)); in emit_frontfacing_interpolation()
1263 fs_reg g1_6 = fs_reg(retype(brw_vec1_grf(1, 6), BRW_REGISTER_TYPE_D)); in emit_frontfacing_interpolation()
1366 stride(retype(brw_vec1_grf(1 + i, 0), BRW_REGISTER_TYPE_UB), in emit_sampleid_setup()
1400 .AND(t1, fs_reg(retype(brw_vec1_grf(0, 0), BRW_REGISTER_TYPE_UD)), in emit_sampleid_setup()
1488 fs_reg actual_x = fs_reg(retype(brw_vec1_grf(1, 0), BRW_REGISTER_TYPE_UB)); in emit_shading_rate_setup()
1549 srcs[URB_LOGICAL_SRC_HANDLE] = fs_reg(retype(brw_vec8_grf(1, 0), BRW_REGISTER_TYPE_UD)); in emit_gs_thread_end()
1555 srcs[URB_LOGICAL_SRC_HANDLE] = fs_reg(retype(brw_vec8_grf(1, 0), BRW_REGISTER_TYPE_UD)); in emit_gs_thread_end()
1599 retype(brw_vec1_grf(0, 0), BRW_REGISTER_TYPE_UD), in assign_curb_setup()
[all …]
Dbrw_vec4_gs_visitor.cpp168 dst_reg r0(retype(brw_vec4_grf(0, 0), BRW_REGISTER_TYPE_UD)); in emit_prolog()
220 src_reg r0(retype(brw_vec8_grf(0, 0), BRW_REGISTER_TYPE_UD)); in emit_thread_end()
242 src_reg r0(retype(brw_vec8_grf(0, 0), BRW_REGISTER_TYPE_UD)); in emit_urb_write_header()
334 src_reg r0(retype(brw_vec8_grf(0, 0), BRW_REGISTER_TYPE_UD)); in emit_control_data_bits()
Dbrw_clip_util.c342 allocate ? c->reg.R0 : retype(brw_null_reg(), BRW_REGISTER_TYPE_UD), in brw_clip_emit_vue()
363 retype(brw_null_reg(), BRW_REGISTER_TYPE_UD), in brw_clip_kill_thread()
422 struct brw_reg tmp = retype(vec1(get_tmp(c)), BRW_REGISTER_TYPE_UD); in brw_clip_init_clipmask()
Dbrw_vec4_tcs.cpp208 read->dst = retype(dst_reg(this, glsl_type::ivec4_type), dst.type); in emit_output_urb_read()
229 inst = emit(MOV(byte_offset(dst_reg(retype(message, value.type)), REG_SIZE), in emit_urb_write()
260 src_reg vertex_index = retype(get_nir_src_imm(instr->src[0]), in nir_emit_intrinsic()
Dbrw_vec4_visitor.cpp780 const dst_reg dst = retype(dst_reg(this, glsl_type::uint_type), in emit_uniformize()
890 emit(MOV(retype(reg, BRW_REGISTER_TYPE_UD), src_reg(header1))); in emit_psiz_and_flags()
892 emit(MOV(retype(reg, BRW_REGISTER_TYPE_UD), brw_imm_ud(0u))); in emit_psiz_and_flags()
894 emit(MOV(retype(reg, BRW_REGISTER_TYPE_D), brw_imm_d(0))); in emit_psiz_and_flags()
1127 dst_reg shuffled_float = retype(shuffled, BRW_REGISTER_TYPE_F); in emit_scratch_read()
1162 const src_reg temp = swizzle(retype(src_reg(this, alloc_type), in emit_scratch_write()
1179 src_reg shuffled_float = src_reg(retype(shuffled, BRW_REGISTER_TYPE_F)); in emit_scratch_write()
Dgfx6_gs_visitor.cpp76 retype(brw_vec8_grf(0, 0), in emit_prolog()
110 src_reg(retype(brw_vec1_grf(1, 4), BRW_REGISTER_TYPE_UD)))); in emit_prolog()
133 src_reg(retype(brw_vec8_grf(1, 0), BRW_REGISTER_TYPE_UD)); in emit_prolog()
/third_party/mesa3d/src/intel/tools/
Di965_gram.y1121 brw_set_src0(p, brw_last_inst, retype(brw_null_reg(),
1123 brw_set_src1(p, brw_last_inst, retype(brw_null_reg(),
1126 brw_set_dest(p, brw_last_inst, retype(brw_null_reg(),
1128 brw_set_src0(p, brw_last_inst, retype(brw_null_reg(),
1143 brw_set_dest(p, brw_last_inst, retype(brw_null_reg(),
1145 brw_set_src0(p, brw_last_inst, retype(brw_null_reg(),
1166 brw_set_src0(p, brw_last_inst, retype(brw_null_reg(),
1168 brw_set_src1(p, brw_last_inst, retype(brw_null_reg(),
1171 brw_set_dest(p, brw_last_inst, retype(brw_null_reg(),
1173 brw_set_src0(p, brw_last_inst, retype(brw_null_reg(),
[all …]

12