/external/mesa3d/src/intel/compiler/ |
D | brw_vec4_generator.cpp | 95 brw_MOV(p, retype(brw_message_reg(inst->base_mrf + 1), op1.type), op1); in generate_math2_gen4() 222 retype(brw_message_reg(inst->base_mrf), BRW_REGISTER_TYPE_UD); in generate_tex() 228 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() 450 retype(src1, BRW_REGISTER_TYPE_UW)); in generate_gs_set_write_offset() 465 brw_MOV(p, retype(brw_message_reg(dst.nr + 1), BRW_REGISTER_TYPE_UD), in generate_gs_set_vertex_count() 483 suboffset(stride(retype(dst, BRW_REGISTER_TYPE_UW), 2, 2, 1), 4), in generate_gs_set_vertex_count() 484 stride(retype(src, BRW_REGISTER_TYPE_UW), 8, 1, 0)); in generate_gs_set_vertex_count() [all …]
|
D | brw_fs_generator.cpp | 140 brw_reg = retype(brw_reg, reg->type); in brw_reg_from_fs_reg() 342 pixel_mask = retype(brw_vec1_grf(1, 7), BRW_REGISTER_TYPE_UW); in generate_fb_write() 344 pixel_mask = retype(brw_vec1_grf(0, 0), BRW_REGISTER_TYPE_UW); in generate_fb_write() 354 retype(payload, BRW_REGISTER_TYPE_UD), in generate_fb_write() 355 retype(brw_vec8_grf(0, 0), BRW_REGISTER_TYPE_UD)); in generate_fb_write() 363 vec1(retype(payload, BRW_REGISTER_TYPE_UD)), in generate_fb_write() 364 vec1(retype(brw_vec8_grf(0, 0), BRW_REGISTER_TYPE_UD)), in generate_fb_write() 370 brw_MOV(p, retype(vec1(suboffset(payload, 2)), in generate_fb_write() 378 vec1(retype(payload, BRW_REGISTER_TYPE_UD)), in generate_fb_write() 379 vec1(retype(brw_vec8_grf(0, 0), BRW_REGISTER_TYPE_UD)), in generate_fb_write() [all …]
|
D | test_eu_validate.cpp | 803 brw_MOV(p, retype(g0, move[i].dst_type), retype(g0, move[i].src_type)); in TEST_P() 813 brw_SEL(p, retype(g0, BRW_REGISTER_TYPE_UB), in TEST_P() 814 retype(g0, BRW_REGISTER_TYPE_UB), in TEST_P() 815 retype(g0, BRW_REGISTER_TYPE_UB)); in TEST_P() 822 brw_SEL(p, retype(g0, BRW_REGISTER_TYPE_B), in TEST_P() 823 retype(g0, BRW_REGISTER_TYPE_B), in TEST_P() 824 retype(g0, BRW_REGISTER_TYPE_B)); in TEST_P() 832 brw_SEL(p, retype(g0, BRW_REGISTER_TYPE_B), in TEST_P() 833 retype(g0, BRW_REGISTER_TYPE_W), in TEST_P() 834 retype(g0, BRW_REGISTER_TYPE_W)); in TEST_P() [all …]
|
D | brw_fs_nir.cpp | 131 fs_reg g1(retype(brw_vec8_grf(1, 0), BRW_REGISTER_TYPE_UD)); in emit_system_values_block() 187 stride(byte_offset(retype(brw_vec1_grf(1, 0), in emit_system_values_block() 213 abld.MOV(dst, negate(retype(anded, BRW_REGISTER_TYPE_D))); in emit_system_values_block() 372 retype(get_nir_src(if_stmt->condition), in nir_emit_if() 532 fs_reg g0 = fs_reg(retype(brw_vec1_grf(0, 0), BRW_REGISTER_TYPE_W)); in optimize_frontfacing_ternary() 553 fs_reg g1_6 = fs_reg(retype(brw_vec1_grf(1, 6), BRW_REGISTER_TYPE_D)); in optimize_frontfacing_ternary() 572 bld.AND(retype(result, BRW_REGISTER_TYPE_D), tmp, brw_imm_d(0xbf800000)); in optimize_frontfacing_ternary() 612 bld.LZD(retype(result, BRW_REGISTER_TYPE_UD), in emit_find_msb_using_lzd() 613 retype(temp, BRW_REGISTER_TYPE_UD)); in emit_find_msb_using_lzd() 620 inst = bld.ADD(result, retype(result, BRW_REGISTER_TYPE_D), brw_imm_d(31)); in emit_find_msb_using_lzd() [all …]
|
D | brw_eu_emit.c | 62 brw_MOV(p, retype(brw_message_reg(msg_reg_nr), BRW_REGISTER_TYPE_UD), in gen6_resolve_implied_move() 63 retype(*src, BRW_REGISTER_TYPE_UD)); in gen6_resolve_implied_move() 1135 dst = spread(retype(dst, BRW_REGISTER_TYPE_W), 2); in brw_F32TO16() 1139 inst = brw_MOV(p, retype(dst, BRW_REGISTER_TYPE_HF), src); in brw_F32TO16() 1171 src = spread(retype(src, BRW_REGISTER_TYPE_W), 2); in brw_F16TO32() 1179 return brw_MOV(p, dst, retype(src, BRW_REGISTER_TYPE_HF)); in brw_F16TO32() 1290 brw_set_src0(p, insn, vec1(retype(brw_null_reg(), BRW_REGISTER_TYPE_D))); in brw_IF() 1291 brw_set_src1(p, insn, vec1(retype(brw_null_reg(), BRW_REGISTER_TYPE_D))); in brw_IF() 1293 brw_set_dest(p, insn, vec1(retype(brw_null_reg(), BRW_REGISTER_TYPE_D))); in brw_IF() 1294 brw_set_src0(p, insn, vec1(retype(brw_null_reg(), BRW_REGISTER_TYPE_D))); in brw_IF() [all …]
|
D | brw_reg.h | 497 retype(struct brw_reg reg, enum brw_reg_type type) in retype() function 544 return suboffset(retype(brw_vec16_reg(file, nr, 0), BRW_REGISTER_TYPE_UW), subnr); in brw_uw16_reg() 551 return suboffset(retype(brw_vec8_reg(file, nr, 0), BRW_REGISTER_TYPE_UW), subnr); in brw_uw8_reg() 558 return suboffset(retype(brw_vec1_reg(file, nr, 0), BRW_REGISTER_TYPE_UW), subnr); in brw_uw1_reg() 564 return retype(brw_vec1_reg(file, nr, subnr), BRW_REGISTER_TYPE_UD); in brw_ud1_reg() 877 return retype(brw_vecn_reg(width, BRW_MESSAGE_REGISTER_FILE, nr, subnr), in brw_uvec_mrf() 942 return suboffset(retype(spread(reg, scale), type), i); in subscript() 985 return vec1(suboffset(retype(reg, BRW_REGISTER_TYPE_UD), elt)); in get_element_ud() 991 return vec1(suboffset(retype(reg, BRW_REGISTER_TYPE_D), elt)); in get_element_d() 1097 return retype(deref_4f(ptr, offset), BRW_REGISTER_TYPE_B); in deref_4b() [all …]
|
D | brw_vec4_gs_nir.cpp | 85 retype(get_nir_src(instr->src[0], 1), BRW_REGISTER_TYPE_UD); in nir_emit_intrinsic() 93 retype(get_nir_src(instr->src[0], 1), BRW_REGISTER_TYPE_UD); in nir_emit_intrinsic() 99 retype(get_nir_src(instr->src[0], 1), BRW_REGISTER_TYPE_UD); in nir_emit_intrinsic() 105 emit(MOV(dest, retype(brw_vec4_grf(1, 0), BRW_REGISTER_TYPE_D))); in nir_emit_intrinsic()
|
D | brw_vec4_nir.cpp | 215 return retype(get_nir_dest(dest), type); in get_nir_dest() 239 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() 396 src = retype(src, dest.type); in nir_emit_intrinsic() 425 src = retype(data, BRW_REGISTER_TYPE_F); in nir_emit_intrinsic() 558 shuffle_64bit_data(tmp, retype(val_reg, tmp.type), true); in nir_emit_intrinsic() 559 val_reg = src_reg(retype(tmp, BRW_REGISTER_TYPE_F)); in nir_emit_intrinsic() 690 emit(MOV(dst_reg(retype(shuffled, temp.type)), temp)); in nir_emit_intrinsic() 700 emit(MOV(dst_reg(retype(byte_offset(shuffled, REG_SIZE), temp.type)), in nir_emit_intrinsic() 859 src_reg temp_float = retype(temp, BRW_REGISTER_TYPE_F); in nir_emit_intrinsic() [all …]
|
D | brw_fs_builder.h | 195 return retype(null_reg_ud(), type); 204 return dst_reg(retype(brw_null_reg(), BRW_REGISTER_TYPE_F)); in null_reg_f() 210 return dst_reg(retype(brw_null_reg(), BRW_REGISTER_TYPE_DF)); in null_reg_df() 219 return dst_reg(retype(brw_null_reg(), BRW_REGISTER_TYPE_D)); in null_reg_d() 228 return dst_reg(retype(brw_null_reg(), BRW_REGISTER_TYPE_UD)); in null_reg_ud() 245 return retype(brw_vec1_grf(1, 7), BRW_REGISTER_TYPE_UD); in sample_mask_reg() 522 emit(BRW_OPCODE_CMP, retype(dst, src0.type), in ALU2_ACC()
|
D | brw_clip_line.c | 45 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()
|
D | brw_clip_tri.c | 52 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 …]
|
D | brw_vec4_builder.h | 177 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()
|
D | brw_vec4_tcs.cpp | 212 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() 278 dst_reg tmp_d = retype(tmp, BRW_REGISTER_TYPE_D); in nir_emit_intrinsic() 286 src_reg tmp_src = retype(src_reg(tmp_d), BRW_REGISTER_TYPE_DF); in nir_emit_intrinsic() 339 value = swizzle(retype(value, BRW_REGISTER_TYPE_DF), swiz); in nir_emit_intrinsic() 342 src_reg shuffled_float = src_reg(retype(shuffled, BRW_REGISTER_TYPE_F)); in nir_emit_intrinsic()
|
D | brw_fs_surface_builder.cpp | 426 retype(size, BRW_REGISTER_TYPE_UD), in emit_typed_atomic_check() 452 offset(retype(addr, BRW_REGISTER_TYPE_UD), bld, c), in emit_bounds_check() 554 offset(retype(coord, BRW_REGISTER_TYPE_UD), bld, c) : in emit_address_calculation() 583 offset(retype(coord, BRW_REGISTER_TYPE_UD), bld, 2)); in emit_address_calculation() 585 offset(retype(coord, BRW_REGISTER_TYPE_UD), bld, 2), in emit_address_calculation() 840 const fs_reg fdst = retype(dst, BRW_REGISTER_TYPE_F); in emit_convert_to_scaled() 887 const fs_reg fdst = retype(dst, BRW_REGISTER_TYPE_F); in emit_convert_from_float() 918 const fs_reg fdst = retype(dst, BRW_REGISTER_TYPE_F); in emit_convert_to_float() 1033 tmp = retype(tmp, BRW_REGISTER_TYPE_D); in emit_image_load() 1060 tmp = retype(tmp, BRW_REGISTER_TYPE_F); in emit_image_load() [all …]
|
D | brw_fs.cpp | 201 bld.MOV(dst, retype(dw, dst.type)); in VARYING_PULL_CONSTANT_LOAD() 514 fs_reg ts = fs_reg(retype(brw_vec4_reg(BRW_ARCHITECTURE_REGISTER_FILE, in get_timestamp() 1120 fs_reg g0 = fs_reg(retype(brw_vec1_grf(0, 0), BRW_REGISTER_TYPE_W)); in emit_frontfacing_interpolation() 1135 fs_reg g1_6 = fs_reg(retype(brw_vec1_grf(1, 6), BRW_REGISTER_TYPE_D)); in emit_frontfacing_interpolation() 1190 stride(retype(brw_vec1_grf(payload.sample_pos_reg, 0), in emit_samplepos_setup() 1263 abld.SHR(tmp, fs_reg(stride(retype(brw_vec1_grf(1, 0), in emit_sampleid_setup() 1296 .AND(t1, fs_reg(retype(brw_vec1_grf(0, 0), BRW_REGISTER_TYPE_UD)), in emit_sampleid_setup() 1321 fs_reg coverage_mask(retype(brw_vec8_grf(payload.sample_mask_in_reg, 0), in emit_samplemaskin_setup() 1413 abld.MOV(hdr, fs_reg(retype(brw_vec8_grf(1, 0), BRW_REGISTER_TYPE_UD))); in emit_gs_thread_end() 1419 sources[0] = fs_reg(retype(brw_vec8_grf(1, 0), BRW_REGISTER_TYPE_UD)); in emit_gs_thread_end() [all …]
|
D | brw_fs_visitor.cpp | 72 fs_reg dst_f = retype(dst, BRW_REGISTER_TYPE_F); in emit_gen6_gather_wa() 155 struct brw_reg g1_uw = retype(brw_vec1_grf(1, 0), BRW_REGISTER_TYPE_UW); in emit_interpolation_setup_gen4() 205 struct brw_reg g1_uw = retype(brw_vec1_grf(1, 0), BRW_REGISTER_TYPE_UW); in emit_interpolation_setup_gen6() 342 fs_reg some_reg = fs_reg(retype(brw_vec8_grf(0, 0), in emit_alpha_test() 565 urb_handle = fs_reg(retype(brw_vec8_grf(4, 0), BRW_REGISTER_TYPE_UD)); in emit_urb_writes() 567 urb_handle = fs_reg(retype(brw_vec8_grf(1, 0), BRW_REGISTER_TYPE_UD)); in emit_urb_writes() 776 struct brw_reg g0 = retype(brw_vec8_grf(0, 0), BRW_REGISTER_TYPE_UD); in emit_cs_terminate() 802 fs_reg r0_2 = fs_reg(retype(brw_vec1_grf(0, 2), BRW_REGISTER_TYPE_UD)); in emit_barrier()
|
D | brw_vec4_surface_builder.cpp | 128 retype(header, BRW_REGISTER_TYPE_UD)); in emit_send() 132 offset(retype(addr, BRW_REGISTER_TYPE_UD), 8, i)); in emit_send() 136 offset(retype(src, BRW_REGISTER_TYPE_UD), 8, i)); in emit_send()
|
D | test_fs_cmod_propagation.cpp | 427 bld.CMP(bld.null_reg_f(), retype(dest, BRW_REGISTER_TYPE_F), zero, in TEST_F() 461 bld.CMP(retype(dest, BRW_REGISTER_TYPE_F), src0, zero, BRW_CONDITIONAL_L); in TEST_F() 484 EXPECT_TRUE(retype(dest, BRW_REGISTER_TYPE_F) in TEST_F() 496 bld.CMP(retype(dest, BRW_REGISTER_TYPE_F), src0, zero, BRW_CONDITIONAL_L); in TEST_F() 531 bld.CMP(retype(dest, BRW_REGISTER_TYPE_F), src0, zero, BRW_CONDITIONAL_L); in TEST_F()
|
D | brw_vec4.h | 83 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()
|
D | brw_vec4_gs_visitor.cpp | 167 dst_reg r0(retype(brw_vec4_grf(0, 0), BRW_REGISTER_TYPE_UD)); in emit_prolog() 236 src_reg r0(retype(brw_vec8_grf(0, 0), BRW_REGISTER_TYPE_UD)); in emit_thread_end() 261 src_reg r0(retype(brw_vec8_grf(0, 0), BRW_REGISTER_TYPE_UD)); in emit_urb_write_header() 359 src_reg r0(retype(brw_vec8_grf(0, 0), BRW_REGISTER_TYPE_UD)); in emit_control_data_bits()
|
D | brw_clip_util.c | 342 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()
|
D | brw_vec4_visitor.cpp | 792 dst_reg index_reg = retype(byte_offset(dst_reg(header), REG_SIZE), in emit_pull_constant_load_reg() 843 const dst_reg dst = retype(dst_reg(this, glsl_type::uint_type), in emit_uniformize() 1235 emit(MOV(retype(reg, BRW_REGISTER_TYPE_UD), src_reg(header1))); in emit_psiz_and_flags() 1237 emit(MOV(retype(reg, BRW_REGISTER_TYPE_UD), brw_imm_ud(0u))); in emit_psiz_and_flags() 1239 emit(MOV(retype(reg, BRW_REGISTER_TYPE_D), brw_imm_d(0))); in emit_psiz_and_flags() 1485 dst_reg shuffled_float = retype(shuffled, BRW_REGISTER_TYPE_F); in emit_scratch_read() 1520 const src_reg temp = swizzle(retype(src_reg(this, alloc_type), in emit_scratch_write() 1537 src_reg shuffled_float = src_reg(retype(shuffled, BRW_REGISTER_TYPE_F)); in emit_scratch_write() 1717 temp = retype(temp_df, BRW_REGISTER_TYPE_F); in emit_pull_constant_load() 1749 temp = retype(temp, BRW_REGISTER_TYPE_DF); in emit_pull_constant_load()
|
D | test_eu_compact.cpp | 194 struct brw_reg g0 = retype(brw_vec8_grf(0, 0), BRW_REGISTER_TYPE_D); in gen_ADD_GRF_GRF_IMM_d() 195 struct brw_reg g2 = retype(brw_vec8_grf(2, 0), BRW_REGISTER_TYPE_D); in gen_ADD_GRF_GRF_IMM_d()
|
D | gen6_gs_visitor.cpp | 75 retype(brw_vec8_grf(0, 0), in emit_prolog() 109 src_reg(retype(brw_vec1_grf(1, 4), BRW_REGISTER_TYPE_UD)))); in emit_prolog() 134 src_reg(retype(brw_vec8_grf(1, 0), BRW_REGISTER_TYPE_UD)); in emit_prolog()
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_ff_gs_emit.c | 61 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()
|