Home
last modified time | relevance | path

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

12

/external/mesa3d/src/intel/compiler/
Dtest_eu_validate.cpp317 struct brw_reg g = retype(g0, test_case[i].type); in TEST_P()
340 struct brw_reg g = retype(g0, t); in TEST_P()
341 brw_MOV(p, g, retype(brw_imm_w(0), test_case[i].type)); in TEST_P()
415 struct brw_reg g = retype(g0, test_case[i].type); in TEST_P()
507 struct brw_reg g = retype(g0, test_case[i].type); in TEST_P()
1191 brw_MOV(p, retype(g0, move[i].dst_type), retype(g0, move[i].src_type)); in TEST_P()
1201 brw_SEL(p, retype(g0, BRW_REGISTER_TYPE_UB), in TEST_P()
1202 retype(g0, BRW_REGISTER_TYPE_UB), in TEST_P()
1203 retype(g0, BRW_REGISTER_TYPE_UB)); in TEST_P()
1210 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_gen4()
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()
299 struct brw_reg addr = vec1(retype(brw_address_reg(0), BRW_REGISTER_TYPE_UD)); in generate_tex()
300 struct brw_reg surface_reg = vec1(retype(surface_index, BRW_REGISTER_TYPE_UD)); in generate_tex()
301 struct brw_reg sampler_reg = vec1(retype(sampler_index, BRW_REGISTER_TYPE_UD)); in generate_tex()
452 retype(src1, BRW_REGISTER_TYPE_UW)); in generate_gs_set_write_offset()
480 suboffset(stride(retype(dst, BRW_REGISTER_TYPE_UW), 2, 2, 1), 4), in generate_gs_set_vertex_count()
481 stride(retype(src, BRW_REGISTER_TYPE_UW), 8, 1, 0)); in generate_gs_set_vertex_count()
500 stride(retype(src0, BRW_REGISTER_TYPE_UD), 4, 4, 1)); in generate_gs_svb_write()
[all …]
Dbrw_fs_nir.cpp161 fs_reg g1(retype(brw_vec8_grf(1, 0), BRW_REGISTER_TYPE_UD)); in emit_system_values_block()
221 stride(retype(brw_vec1_grf(1 + i, 7), in emit_system_values_block()
248 abld.MOV(dst, negate(retype(anded, BRW_REGISTER_TYPE_D))); in emit_system_values_block()
424 retype(cond_reg, BRW_REGISTER_TYPE_D)); in nir_emit_if()
592 fs_reg g1 = fs_reg(retype(brw_vec1_grf(1, 1), BRW_REGISTER_TYPE_W)); in optimize_frontfacing_ternary()
609 fs_reg g0 = fs_reg(retype(brw_vec1_grf(0, 0), BRW_REGISTER_TYPE_W)); in optimize_frontfacing_ternary()
630 fs_reg g1_6 = fs_reg(retype(brw_vec1_grf(1, 6), BRW_REGISTER_TYPE_D)); in optimize_frontfacing_ternary()
649 bld.AND(retype(result, BRW_REGISTER_TYPE_D), tmp, brw_imm_d(0xbf800000)); in optimize_frontfacing_ternary()
689 bld.LZD(retype(result, BRW_REGISTER_TYPE_UD), in emit_find_msb_using_lzd()
690 retype(temp, BRW_REGISTER_TYPE_UD)); in emit_find_msb_using_lzd()
[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_generator.cpp150 brw_reg = retype(brw_reg, reg->type); in brw_reg_from_fs_reg()
275 retype(brw_sr0_reg(1), BRW_REGISTER_TYPE_UW)); in patch_discard_jumps_to_fb_writes()
310 brw_MOV(p, retype(brw_mask_stack_reg(0), BRW_REGISTER_TYPE_UW), in patch_discard_jumps_to_fb_writes()
368 brw_MOV(p, offset(retype(payload, BRW_REGISTER_TYPE_UD), 1), in fire_fb_write()
369 offset(retype(implied_header, BRW_REGISTER_TYPE_UD), 1)); in fire_fb_write()
383 retype(implied_header, BRW_REGISTER_TYPE_UW), in fire_fb_write()
416 struct brw_reg v1_null_ud = vec1(retype(brw_null_reg(), BRW_REGISTER_TYPE_UD)); in generate_fb_write()
424 retype(brw_vec1_grf(1, 6), BRW_REGISTER_TYPE_UD), in generate_fb_write()
500 retype(spread(indirect_byte_offset, 2), BRW_REGISTER_TYPE_UW); in generate_mov_indirect()
570 retype(brw_VxH_indirect(0, 0), BRW_REGISTER_TYPE_D)); in generate_mov_indirect()
[all …]
Dbrw_eu_emit.c63 brw_MOV(p, retype(brw_message_reg(msg_reg_nr), BRW_REGISTER_TYPE_UD), in gen6_resolve_implied_move()
64 retype(*src, BRW_REGISTER_TYPE_UD)); in gen6_resolve_implied_move()
1254 dst = spread(retype(dst, BRW_REGISTER_TYPE_W), 2); in brw_F32TO16()
1258 inst = brw_MOV(p, retype(dst, BRW_REGISTER_TYPE_HF), src); in brw_F32TO16()
1293 src = spread(retype(src, BRW_REGISTER_TYPE_W), 2); in brw_F16TO32()
1301 return brw_MOV(p, dst, retype(src, BRW_REGISTER_TYPE_HF)); in brw_F16TO32()
1414 brw_set_src0(p, insn, vec1(retype(brw_null_reg(), BRW_REGISTER_TYPE_D))); in brw_IF()
1415 brw_set_src1(p, insn, vec1(retype(brw_null_reg(), BRW_REGISTER_TYPE_D))); in brw_IF()
1417 brw_set_dest(p, insn, vec1(retype(brw_null_reg(), BRW_REGISTER_TYPE_D))); in brw_IF()
1418 brw_set_src0(p, insn, vec1(retype(brw_null_reg(), BRW_REGISTER_TYPE_D))); in brw_IF()
[all …]
Dbrw_reg.h556 retype(struct brw_reg reg, enum brw_reg_type type) in retype() function
603 return suboffset(retype(brw_vec16_reg(file, nr, 0), BRW_REGISTER_TYPE_UW), subnr); in brw_uw16_reg()
610 return suboffset(retype(brw_vec8_reg(file, nr, 0), BRW_REGISTER_TYPE_UW), subnr); in brw_uw8_reg()
617 return suboffset(retype(brw_vec1_reg(file, nr, 0), BRW_REGISTER_TYPE_UW), subnr); in brw_uw1_reg()
623 return retype(brw_vec1_reg(file, nr, subnr), BRW_REGISTER_TYPE_UD); in brw_ud1_reg()
945 return suboffset(retype(brw_vec16_reg(BRW_ARCHITECTURE_REGISTER_FILE, in brw_mask_stack_reg()
966 return retype(brw_vecn_reg(width, BRW_MESSAGE_REGISTER_FILE, nr, subnr), in brw_uvec_mrf()
1031 return suboffset(retype(spread(reg, scale), type), i); in subscript()
1074 return vec1(suboffset(retype(reg, BRW_REGISTER_TYPE_UD), elt)); in get_element_ud()
1080 return vec1(suboffset(retype(reg, BRW_REGISTER_TYPE_D), elt)); in get_element_d()
[all …]
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()
631 emit(BRW_OPCODE_CMP, retype(dst, src0.type), in ALU2_ACC()
660 retype(dst, BRW_REGISTER_TYPE_F), in CSEL()
661 retype(src0, BRW_REGISTER_TYPE_F), in CSEL()
662 retype(src1, BRW_REGISTER_TYPE_F), in CSEL()
716 retype(dst, BRW_REGISTER_TYPE_UD)); in UNDEF()
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()
416 src = retype(src, dest.type); in nir_emit_intrinsic()
471 src_reg offset_reg = retype(get_nir_src_imm(instr->src[2]), in nir_emit_intrinsic()
531 src_reg offset_reg = retype(get_nir_src_imm(instr->src[1]), in nir_emit_intrinsic()
669 src_reg temp_float = retype(temp, BRW_REGISTER_TYPE_F); in nir_emit_intrinsic()
695 emit(MOV(dest, retype(packed_consts, dest.type))); in nir_emit_intrinsic()
851 bld.LZD(retype(dst, BRW_REGISTER_TYPE_UD), in emit_find_msb_using_lzd()
852 retype(temp, BRW_REGISTER_TYPE_UD)); in emit_find_msb_using_lzd()
[all …]
Dbrw_clip_line.c45 c->reg.R0 = retype(brw_vec8_grf(i, 0), BRW_REGISTER_TYPE_UD); i++; in brw_clip_line_alloc_regs()
67 c->reg.planemask = retype(brw_vec1_grf(i, 3), BRW_REGISTER_TYPE_UD); in brw_clip_line_alloc_regs()
80 c->reg.vertex_src_mask = retype(brw_vec1_grf(i, 0), BRW_REGISTER_TYPE_UD); in brw_clip_line_alloc_regs()
81 c->reg.clipdistance_offset = retype(brw_vec1_grf(i, 1), BRW_REGISTER_TYPE_W); in brw_clip_line_alloc_regs()
85 c->reg.ff_sync = retype(brw_vec1_grf(i, 0), BRW_REGISTER_TYPE_UD); in brw_clip_line_alloc_regs()
129 struct brw_reg v1_null_ud = retype(vec1(brw_null_reg()), BRW_REGISTER_TYPE_UD); in clip_and_emit_line()
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()
468 emit(BRW_OPCODE_CMP, retype(dst, src0.type), in ALU2_ACC()
Dbrw_clip_tri.c52 c->reg.R0 = retype(brw_vec8_grf(i, 0), BRW_REGISTER_TYPE_UD); i++; in brw_clip_tri_alloc_regs()
83 c->reg.loopcount = retype(brw_vec1_grf(i, 1), BRW_REGISTER_TYPE_D); in brw_clip_tri_alloc_regs()
84 c->reg.nr_verts = retype(brw_vec1_grf(i, 2), BRW_REGISTER_TYPE_UD); in brw_clip_tri_alloc_regs()
85 c->reg.planemask = retype(brw_vec1_grf(i, 3), BRW_REGISTER_TYPE_UD); in brw_clip_tri_alloc_regs()
116 c->reg.vertex_src_mask = retype(brw_vec1_grf(i, 0), BRW_REGISTER_TYPE_UD); in brw_clip_tri_alloc_regs()
117 c->reg.clipdistance_offset = retype(brw_vec1_grf(i, 1), BRW_REGISTER_TYPE_W); in brw_clip_tri_alloc_regs()
121 c->reg.ff_sync = retype(brw_vec1_grf(i, 0), BRW_REGISTER_TYPE_UD); in brw_clip_tri_alloc_regs()
517 struct brw_reg t = retype(get_tmp(c), BRW_REGISTER_TYPE_UD); in brw_clip_test()
518 struct brw_reg t1 = retype(get_tmp(c), BRW_REGISTER_TYPE_UD); in brw_clip_test()
519 struct brw_reg t2 = retype(get_tmp(c), BRW_REGISTER_TYPE_UD); in brw_clip_test()
[all …]
Dbrw_fs_visitor.cpp74 fs_reg dst_f = retype(dst, BRW_REGISTER_TYPE_F); in emit_gen6_gather_wa()
158 struct brw_reg g1_uw = retype(brw_vec1_grf(1, 0), BRW_REGISTER_TYPE_UW); in emit_interpolation_setup_gen4()
279 struct brw_reg gi_uw = retype(brw_vec1_grf(1 + i, 0), BRW_REGISTER_TYPE_UW); in emit_interpolation_setup_gen6()
353 .MOV(retype(brw_flag_reg(0, i), BRW_REGISTER_TYPE_UW), in emit_interpolation_setup_gen6()
354 retype(brw_vec1_grf(1 + i, 7), BRW_REGISTER_TYPE_UW)); in emit_interpolation_setup_gen6()
417 fs_reg some_reg = fs_reg(retype(brw_vec8_grf(0, 0), in emit_alpha_test()
584 urb_handle = fs_reg(retype(brw_vec8_grf(4, 0), BRW_REGISTER_TYPE_UD)); in emit_urb_writes()
586 urb_handle = fs_reg(retype(brw_vec8_grf(1, 0), BRW_REGISTER_TYPE_UD)); in emit_urb_writes()
854 struct brw_reg g0 = retype(brw_vec8_grf(0, 0), BRW_REGISTER_TYPE_UD); in emit_cs_terminate()
890 fs_reg r0_2 = fs_reg(retype(brw_vec1_grf(0, 2), BRW_REGISTER_TYPE_UD)); in emit_barrier()
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_fs.cpp577 fs_reg ts = fs_reg(retype(brw_vec4_reg(BRW_ARCHITECTURE_REGISTER_FILE, in get_timestamp()
1300 fs_reg g1 = fs_reg(retype(brw_vec1_grf(1, 1), BRW_REGISTER_TYPE_W)); in emit_frontfacing_interpolation()
1317 fs_reg g0 = fs_reg(retype(brw_vec1_grf(0, 0), BRW_REGISTER_TYPE_W)); in emit_frontfacing_interpolation()
1332 fs_reg g1_6 = fs_reg(retype(brw_vec1_grf(1, 6), BRW_REGISTER_TYPE_D)); in emit_frontfacing_interpolation()
1449 stride(retype(brw_vec1_grf(1 + i, 0), BRW_REGISTER_TYPE_UB), in emit_sampleid_setup()
1483 .AND(t1, fs_reg(retype(brw_vec1_grf(0, 0), BRW_REGISTER_TYPE_UD)), in emit_sampleid_setup()
1592 abld.MOV(hdr, fs_reg(retype(brw_vec8_grf(1, 0), BRW_REGISTER_TYPE_UD))); in emit_gs_thread_end()
1598 sources[0] = fs_reg(retype(brw_vec8_grf(1, 0), BRW_REGISTER_TYPE_UD)); in emit_gs_thread_end()
1656 retype(brw_reg, inst->src[i].type), in assign_curb_setup()
1678 byte_offset(retype(mask, BRW_REGISTER_TYPE_W), i / 8), in assign_curb_setup()
[all …]
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.h83 return dst_reg(retype(brw_null_reg(), BRW_REGISTER_TYPE_DF)); in dst_null_df()
88 return dst_reg(retype(brw_null_reg(), BRW_REGISTER_TYPE_D)); in dst_null_d()
93 return dst_reg(retype(brw_null_reg(), BRW_REGISTER_TYPE_UD)); in dst_null_ud()
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.cpp212 read->dst = retype(dst_reg(this, glsl_type::ivec4_type), dst.type); in emit_output_urb_read()
233 inst = emit(MOV(byte_offset(dst_reg(retype(message, value.type)), REG_SIZE), in emit_urb_write()
264 src_reg vertex_index = retype(get_nir_src_imm(instr->src[0]), in nir_emit_intrinsic()
Dbrw_vec4_gs_visitor.cpp167 dst_reg r0(retype(brw_vec4_grf(0, 0), BRW_REGISTER_TYPE_UD)); in emit_prolog()
219 src_reg r0(retype(brw_vec8_grf(0, 0), BRW_REGISTER_TYPE_UD)); in emit_thread_end()
243 src_reg r0(retype(brw_vec8_grf(0, 0), BRW_REGISTER_TYPE_UD)); in emit_urb_write_header()
335 src_reg r0(retype(brw_vec8_grf(0, 0), BRW_REGISTER_TYPE_UD)); in emit_control_data_bits()
Dtest_eu_compact.cpp198 struct brw_reg g0 = retype(brw_vec8_grf(0, 0), BRW_REGISTER_TYPE_D); in gen_ADD_GRF_GRF_IMM_d()
199 struct brw_reg g2 = retype(brw_vec8_grf(2, 0), BRW_REGISTER_TYPE_D); in gen_ADD_GRF_GRF_IMM_d()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_ff_gs_emit.c61 c->reg.R0 = retype(brw_vec8_grf(i, 0), BRW_REGISTER_TYPE_UD); i++; in brw_ff_gs_alloc_regs()
65 c->reg.SVBI = retype(brw_vec8_grf(i++, 0), BRW_REGISTER_TYPE_UD); in brw_ff_gs_alloc_regs()
74 c->reg.header = retype(brw_vec8_grf(i++, 0), BRW_REGISTER_TYPE_UD); in brw_ff_gs_alloc_regs()
75 c->reg.temp = retype(brw_vec8_grf(i++, 0), BRW_REGISTER_TYPE_UD); in brw_ff_gs_alloc_regs()
79 retype(brw_vec4_grf(i++, 0), BRW_REGISTER_TYPE_UD); in brw_ff_gs_alloc_regs()
197 : retype(brw_null_reg(), BRW_REGISTER_TYPE_UD), in brw_ff_gs_emit_vue()
350 vec8(retype(c->reg.destination_indices, BRW_REGISTER_TYPE_UW)); in gen6_sol_program()
448 retype(vertex_slot, BRW_REGISTER_TYPE_UD)); in gen6_sol_program()
502 brw_AND(p, retype(brw_null_reg(), BRW_REGISTER_TYPE_UD), in gen6_sol_program()
518 brw_AND(p, retype(brw_null_reg(), BRW_REGISTER_TYPE_UD), in gen6_sol_program()
/external/igt-gpu-tools/assembler/
Dbrw_eu_emit.c78 brw_MOV(p, retype(brw_message_reg(msg_reg_nr), BRW_REGISTER_TYPE_UD), in gen6_resolve_implied_move()
79 retype(*src, BRW_REGISTER_TYPE_UD)); in gen6_resolve_implied_move()
1088 brw_set_dest(p, insn, retype(brw_vec4_grf(0,0), BRW_REGISTER_TYPE_UD)); in brw_NOP()
1089 brw_set_src0(p, insn, retype(brw_vec4_grf(0,0), BRW_REGISTER_TYPE_UD)); in brw_NOP()
1189 brw_set_src0(p, insn, vec1(retype(brw_null_reg(), BRW_REGISTER_TYPE_D))); in brw_IF()
1190 brw_set_src1(p, insn, vec1(retype(brw_null_reg(), BRW_REGISTER_TYPE_D))); in brw_IF()
1192 brw_set_dest(p, insn, vec1(retype(brw_null_reg(), BRW_REGISTER_TYPE_D))); in brw_IF()
1193 brw_set_src0(p, insn, vec1(retype(brw_null_reg(), BRW_REGISTER_TYPE_D))); in brw_IF()
1390 brw_set_src0(p, insn, retype(brw_null_reg(), BRW_REGISTER_TYPE_D)); in brw_ELSE()
1391 brw_set_src1(p, insn, retype(brw_null_reg(), BRW_REGISTER_TYPE_D)); in brw_ELSE()
[all …]
Dbrw_reg.h300 retype(struct brw_reg reg, unsigned type) in retype() function
344 return suboffset(retype(brw_vec16_reg(file, nr, 0), BRW_REGISTER_TYPE_UW), subnr); in brw_uw16_reg()
351 return suboffset(retype(brw_vec8_reg(file, nr, 0), BRW_REGISTER_TYPE_UW), subnr); in brw_uw8_reg()
358 return suboffset(retype(brw_vec1_reg(file, nr, 0), BRW_REGISTER_TYPE_UW), subnr); in brw_uw1_reg()
654 return vec1(suboffset(retype(reg, BRW_REGISTER_TYPE_UD), elt)); in get_element_ud()
660 return vec1(suboffset(retype(reg, BRW_REGISTER_TYPE_D), elt)); in get_element_d()
751 return retype(deref_4f(ptr, offset), BRW_REGISTER_TYPE_B); in deref_4b()
757 return retype(deref_1f(ptr, offset), BRW_REGISTER_TYPE_UW); in deref_1uw()
763 return retype(deref_1f(ptr, offset), BRW_REGISTER_TYPE_D); in deref_1d()
769 return retype(deref_1f(ptr, offset), BRW_REGISTER_TYPE_UD); in deref_1ud()
/external/mesa3d/src/intel/tools/
Di965_gram.y1111 brw_set_src0(p, brw_last_inst, retype(brw_null_reg(),
1113 brw_set_src1(p, brw_last_inst, retype(brw_null_reg(),
1116 brw_set_dest(p, brw_last_inst, retype(brw_null_reg(),
1118 brw_set_src0(p, brw_last_inst, retype(brw_null_reg(),
1133 brw_set_dest(p, brw_last_inst, retype(brw_null_reg(),
1135 brw_set_src0(p, brw_last_inst, retype(brw_null_reg(),
1156 brw_set_src0(p, brw_last_inst, retype(brw_null_reg(),
1158 brw_set_src1(p, brw_last_inst, retype(brw_null_reg(),
1161 brw_set_dest(p, brw_last_inst, retype(brw_null_reg(),
1163 brw_set_src0(p, brw_last_inst, retype(brw_null_reg(),
[all …]

12