/third_party/mesa3d/src/intel/compiler/ |
D | gfx6_gs_visitor.cpp | 70 emit(MOV(dst_reg(this->vertex_output_offset), brw_imm_ud(0u))); in emit_prolog() 92 emit(MOV(dst_reg(this->first_vertex), brw_imm_ud(URB_WRITE_PRIM_START))); in emit_prolog() 98 emit(MOV(dst_reg(this->prim_count), brw_imm_ud(0u))); in emit_prolog() 173 this->vertex_output_offset, brw_imm_ud(1u))); in gs_emit_vertex() 186 emit(ADD(dst_reg(this->prim_count), this->prim_count, brw_imm_ud(1u))); in gs_emit_vertex() 194 brw_imm_ud(gs_prog_data->output_topology << in gs_emit_vertex() 196 emit(MOV(dst_reg(this->first_vertex), brw_imm_ud(0u))); in gs_emit_vertex() 199 this->vertex_output_offset, brw_imm_ud(1u))); in gs_emit_vertex() 223 brw_imm_ud(num_output_vertices + 1), BRW_CONDITIONAL_L)); in gs_end_primitive() 225 this->vertex_count, brw_imm_ud(0u), in gs_end_primitive() [all …]
|
D | brw_clip_tri.c | 142 brw_AND(p, tmp0, get_element_ud(c->reg.R0, 2), brw_imm_ud(PRIM_MASK)); in brw_clip_tri_init_vertices() 147 brw_imm_ud(_3DPRIM_TRISTRIP_REVERSE)); in brw_clip_tri_init_vertices() 170 brw_MOV(p, c->reg.nr_verts, brw_imm_ud(3)); in brw_clip_tri_init_vertices() 180 brw_AND(p, tmp0, get_element_ud(c->reg.R0, 2), brw_imm_ud(PRIM_MASK)); in brw_clip_tri_flat_shade() 185 brw_imm_ud(_3DPRIM_POLYGON)); in brw_clip_tri_flat_shade() 199 brw_imm_ud(_3DPRIM_TRIFAN)); in brw_clip_tri_flat_shade() 235 brw_AND(p, vec1(brw_null_reg()), c->reg.vertex_src_mask, brw_imm_ud(1)); in load_clip_distance() 281 brw_MOV(p, c->reg.vertex_src_mask, brw_imm_ud(0x3fc0)); in brw_clip_tri() 291 brw_AND(p, vec1(brw_null_reg()), c->reg.planemask, brw_imm_ud(1)); in brw_clip_tri() 307 brw_MOV(p, c->reg.nr_verts, brw_imm_ud(0)); in brw_clip_tri() [all …]
|
D | brw_fs_nir.cpp | 175 abld.SHR(iid, g1, brw_imm_ud(27u)); in emit_system_values_block() 890 bld.AND(result, op[0], brw_imm_ud(0x80000000u)); in emit_fsign() 893 inst = bld.OR(result, result, brw_imm_ud(0x3f800000u)); in emit_fsign() 916 brw_imm_ud(0x80000000u)); in emit_fsign() 920 bld.OR(r, r, brw_imm_ud(0x3ff00000u))); in emit_fsign() 1292 bld.AND(tmp, tmp, retype(brw_imm_ud(1), result.type)); in nir_emit_alu() 1676 brw_imm_ud(0x80000000)); in nir_emit_alu() 2251 abld.ADD(prev_count, vertex_count, brw_imm_ud(0xffffffffu)); in emit_gs_end_primitive() 2315 abld.ADD(prev_count, vertex_count, brw_imm_ud(0xffffffffu)); in emit_gs_control_data_bits() 2318 abld.SHR(dword_index, prev_count, brw_imm_ud(6u - log2_bits_per_vertex)); in emit_gs_control_data_bits() [all …]
|
D | brw_vec4_gs_visitor.cpp | 169 vec4_instruction *inst = emit(GS_OPCODE_SET_DWORD_2, r0, brw_imm_ud(0u)); in emit_prolog() 177 inst = emit(MOV(dst_reg(this->vertex_count), brw_imm_ud(0u))); in emit_prolog() 192 inst = emit(MOV(dst_reg(this->control_data_bits), brw_imm_ud(0u))); in emit_prolog() 247 brw_imm_ud(gs_prog_data->output_vertex_size_hwords)); in emit_urb_write_header() 322 brw_imm_ud(0xffffffffu))); in emit_control_data_bits() 326 brw_imm_ud(6 - log2_bits_per_vertex))); in emit_control_data_bits() 343 emit(SHR(dst_reg(per_slot_offset), dword_index, brw_imm_ud(2u))); in emit_control_data_bits() 345 brw_imm_ud(1u)); in emit_control_data_bits() 357 inst = emit(AND(dst_reg(channel), dword_index, brw_imm_ud(3u))); in emit_control_data_bits() 360 inst = emit(MOV(dst_reg(one), brw_imm_ud(1u))); in emit_control_data_bits() [all …]
|
D | brw_lower_logical_sends.cpp | 72 inst->src[0] = brw_imm_ud(0); /* desc */ in lower_urb_read_logical_send() 73 inst->src[1] = brw_imm_ud(0); /* ex_desc */ in lower_urb_read_logical_send() 125 inst->src[0] = brw_imm_ud(0); /* desc */ in lower_urb_write_logical_send() 126 inst->src[1] = brw_imm_ud(0); /* ex_desc */ in lower_urb_write_logical_send() 249 brw_imm_ud(g00_bits)); in lower_fb_write_logical_send() 254 ubld.group(1, 0).MOV(component(header, 2), brw_imm_ud(inst->target)); in lower_fb_write_logical_send() 379 inst->src[0] = brw_imm_ud(0); in lower_fb_write_logical_send() 380 inst->src[1] = brw_imm_ud(0); in lower_fb_write_logical_send() 457 brw_imm_ud(~INTEL_MASK(14, 11))); in lower_fb_read_logical_send() 648 bld.MOV(retype(msg_lod, BRW_REGISTER_TYPE_UD), brw_imm_ud(0u)); in lower_sampler_logical_send_gfx5() [all …]
|
D | brw_clip_util.c | 59 return brw_imm_ud((w<<24) | (z<<16) | (y<<8) | x); in make_plane_ud() 332 brw_MOV(p, get_element_ud(c->reg.R0, 2), brw_imm_ud(header)); in brw_clip_emit_vue() 419 brw_SHR(p, c->reg.planemask, incoming, brw_imm_ud(26)); in brw_clip_init_clipmask() 428 brw_AND(p, tmp, incoming, brw_imm_ud(0xff<<14)); in brw_clip_init_clipmask() 430 brw_AND(p, tmp, incoming, brw_imm_ud(0x3f<<14)); in brw_clip_init_clipmask() 432 brw_SHR(p, tmp, tmp, brw_imm_ud(8)); in brw_clip_init_clipmask() 444 brw_AND(p, brw_null_reg(), c->reg.ff_sync, brw_imm_ud(0x1)); in brw_clip_ff_sync() 448 brw_OR(p, c->reg.ff_sync, c->reg.ff_sync, brw_imm_ud(0x1)); in brw_clip_ff_sync() 467 brw_MOV(p, c->reg.ff_sync, brw_imm_ud(0)); in brw_clip_init_ff_sync()
|
D | brw_vec4_generator.cpp | 241 brw_MOV(p, get_element_ud(header, 2), brw_imm_ud(dw2)); in generate_tex() 306 brw_OR(p, addr, surface_reg, brw_imm_ud(sampler_reg.ud << 8)); in generate_tex() 308 brw_SHL(p, addr, sampler_reg, brw_imm_ud(8)); in generate_tex() 312 brw_AND(p, addr, addr, brw_imm_ud(0xfff)); in generate_tex() 439 brw_imm_ud(src0.ud * src1.ud)); in generate_gs_set_write_offset() 561 brw_SHL(p, dst, dst, brw_imm_ud(4)); in generate_gs_prepare_channel_masks() 643 brw_imm_ud(GFX7_GS_PAYLOAD_INSTANCE_ID_SHIFT)); in generate_gs_get_instance_id() 658 brw_imm_ud(0xffffu)); in generate_gs_ff_sync_set_primitives() 659 brw_SHL(p, suboffset(vec1(dst), 0), suboffset(vec1(dst), 0), brw_imm_ud(16)); in generate_gs_ff_sync_set_primitives() 662 brw_imm_ud(0xffffu)); in generate_gs_ff_sync_set_primitives() [all …]
|
D | brw_fs_visitor.cpp | 47 srcs[TEX_LOGICAL_SRC_SAMPLER] = brw_imm_ud(0); in emit_mcs_fetch() 382 bld.SHR(half_int_pixel_offset_x, suboffset(r1_0, 0), brw_imm_ud(1)); in emit_interpolation_setup_gfx6() 383 bld.SHR(half_int_pixel_offset_y, suboffset(r1_0, 1), brw_imm_ud(1)); in emit_interpolation_setup_gfx6() 648 brw_imm_ud(components) in emit_single_fb_write() 804 per_slot_offsets = brw_imm_ud(output_vertex_size_owords * in emit_urb_writes() 809 brw_imm_ud(output_vertex_size_owords)); in emit_urb_writes() 844 bld.MOV(zero, brw_imm_ud(0u)); in emit_urb_writes() 852 bld.MOV(one_by_one_fp16, brw_imm_ud((one_fp16 << 16) | one_fp16)); in emit_urb_writes() 1030 bld.exec_all().MOV(uniform_mask, brw_imm_ud(0x10000u)); in emit_urb_writes() 1031 bld.exec_all().MOV(offset(payload, bld, 0), brw_imm_ud(0u)); in emit_urb_writes() [all …]
|
D | brw_compile_ff_gs.c | 147 brw_MOV(p, get_element_ud(c->reg.header, 2), brw_imm_ud(dw2)); in brw_ff_gs_overwrite_header_dw2() 162 brw_imm_ud(0x1f)); in brw_ff_gs_overwrite_header_dw2_from_r0() 164 get_element_ud(c->reg.header, 2), brw_imm_ud(2)); in brw_ff_gs_overwrite_header_dw2_from_r0() 258 brw_MOV(p, get_element_ud(c->reg.header, 1), brw_imm_ud(num_prim)); in brw_ff_gs_ff_sync() 391 get_element_ud(c->reg.SVBI, 0), brw_imm_ud(num_verts)); in gfx6_sol_program() 420 get_element_ud(c->reg.R0, 2), brw_imm_ud(0x1f)); in gfx6_sol_program() 428 brw_imm_ud(_3DPRIM_TRISTRIP_REVERSE)); in gfx6_sol_program() 534 brw_imm_ud(BRW_GS_EDGE_INDICATOR_0)); in gfx6_sol_program() 550 brw_imm_ud(BRW_GS_EDGE_INDICATOR_1)); in gfx6_sol_program()
|
D | brw_clip_line.c | 152 brw_imm_ud(1<<20)); in clip_and_emit_line() 154 brw_OR(p, c->reg.planemask, c->reg.planemask, brw_imm_ud(0x3f)); in clip_and_emit_line() 161 brw_MOV(p, c->reg.vertex_src_mask, brw_imm_ud(0x3fc0)); in clip_and_emit_line() 171 brw_AND(p, v1_null_ud, c->reg.planemask, brw_imm_ud(1)); in clip_and_emit_line() 176 brw_AND(p, v1_null_ud, c->reg.vertex_src_mask, brw_imm_ud(1)); in clip_and_emit_line() 264 brw_SHR(p, c->reg.planemask, c->reg.planemask, brw_imm_ud(1)); in clip_and_emit_line() 266 brw_SHR(p, c->reg.vertex_src_mask, c->reg.vertex_src_mask, brw_imm_ud(1)); in clip_and_emit_line()
|
D | brw_mesh.cpp | 827 ubld8.AND(h, h, brw_imm_ud(0xFFFF)); in get_mesh_urb_handle() 853 ubld8.ADD(urb_handle, urb_handle, brw_imm_ud(adjustment)); in adjust_handle_and_offset() 909 srcs[URB_LOGICAL_SRC_CHANNEL_MASK] = brw_imm_ud(first_mask << 16); in emit_urb_direct_writes() 937 srcs[URB_LOGICAL_SRC_CHANNEL_MASK] = brw_imm_ud(second_mask << 16); in emit_urb_direct_writes() 982 bld8.ADD(off, off, brw_imm_ud(c + base_in_dwords)); in emit_urb_indirect_writes() 985 bld8.AND(mask, off, brw_imm_ud(0x3)); in emit_urb_indirect_writes() 988 bld8.MOV(one, brw_imm_ud(1)); in emit_urb_indirect_writes() 990 bld8.SHL(mask, mask, brw_imm_ud(16)); in emit_urb_indirect_writes() 992 bld8.SHR(off, off, brw_imm_ud(2)); in emit_urb_indirect_writes() 1077 ubld8.SHL(seq_ud, seq_ud, brw_imm_ud(2)); in emit_urb_indirect_reads() [all …]
|
D | brw_compile_sf.c | 271 brw_JMPI(p, brw_imm_ud(jmpi*nr), BRW_PREDICATE_NONE); in do_flatshade_line() 669 brw_MOV(p, c->m1Cx, brw_imm_ud(0)); in brw_emit_point_sprite_setup() 670 brw_MOV(p, c->m2Cy, brw_imm_ud(0)); in brw_emit_point_sprite_setup() 708 brw_MOV(p, c->m1Cx, brw_imm_ud(0)); /* zero - move out of loop */ in brw_emit_point_setup() 709 brw_MOV(p, c->m2Cy, brw_imm_ud(0)); /* zero - move out of loop */ in brw_emit_point_setup() 768 brw_MOV(p, primmask, brw_imm_ud(1)); in brw_emit_anyprim_setup() 771 brw_AND(p, v1_null_ud, primmask, brw_imm_ud((1<<_3DPRIM_TRILIST) | in brw_emit_anyprim_setup() 783 brw_AND(p, v1_null_ud, primmask, brw_imm_ud((1<<_3DPRIM_LINELIST) | in brw_emit_anyprim_setup() 794 brw_AND(p, v1_null_ud, payload_attr, brw_imm_ud(1<<BRW_SPRITE_POINT_ENABLE)); in brw_emit_anyprim_setup()
|
D | brw_vec4_nir.cpp | 319 ubld.MOV(writemask(offset(tmp, 8, n), WRITEMASK_X), brw_imm_ud(di.i1)); in setup_imm_df() 320 ubld.MOV(writemask(offset(tmp, 8, n), WRITEMASK_Y), brw_imm_ud(di.i2)); in setup_imm_df() 384 return brw_imm_ud(nir_src_as_uint(instr->src[src])); in get_nir_ssbo_intrinsic_index() 440 inst->src[1] = brw_imm_ud(ssbo_index); in nir_emit_intrinsic() 609 indirect, brw_imm_ud(instr->const_index[1])); in nir_emit_intrinsic() 624 surf_index = brw_imm_ud(index); in nir_emit_intrinsic() 641 offset_reg = brw_imm_ud(aligned_offset); in nir_emit_intrinsic() 686 emit(ADD(dst_reg(offset_reg), offset_reg, brw_imm_ud(16u))); in nir_emit_intrinsic() 1411 brw_imm_ud(0x80000000))); in nir_emit_alu() 1601 emit(SHL(tmp1, op[0], src_reg(brw_imm_ud(16u)))); in nir_emit_alu() [all …]
|
D | brw_vec4_tcs.cpp | 87 brw_imm_ud(nir->info.tess.tcs_vertices_out), in emit_prolog() 139 emit(TCS_OPCODE_RELEASE_INPUT, header, brw_imm_ud(i), in emit_thread_end() 140 brw_imm_ud(is_unpaired)); in emit_thread_end() 198 brw_imm_ud(dst.writemask << first_component), indirect_offset); in emit_output_urb_read() 227 brw_imm_ud(writemask), indirect_offset); in emit_urb_write()
|
D | brw_clip_unfilled.c | 232 brw_AND(p, tmp0, get_element_ud(c->reg.R0, 2), brw_imm_ud(PRIM_MASK)); in merge_edgeflags() 237 brw_imm_ud(_3DPRIM_POLYGON)); in merge_edgeflags() 244 brw_AND(p, vec1(brw_null_reg()), get_element_ud(c->reg.R0, 2), brw_imm_ud(1<<8)); in merge_edgeflags() 252 brw_AND(p, vec1(brw_null_reg()), get_element_ud(c->reg.R0, 2), brw_imm_ud(1<<9)); in merge_edgeflags() 521 brw_CMP(p, vec1(brw_null_reg()), BRW_CONDITIONAL_NZ, c->reg.planemask, brw_imm_ud(0)); in brw_emit_unfilled_clip()
|
D | brw_fs.cpp | 185 bld.ADD(vec4_offset, varying_offset, brw_imm_ud(const_offset & ~0xf)); in VARYING_PULL_CONSTANT_LOAD() 196 brw_imm_ud(alignment)); in VARYING_PULL_CONSTANT_LOAD() 1401 brw_imm_ud(0xc0)); in emit_sampleid_setup() 1495 abld.SHR(int_rate_y, actual_y, brw_imm_ud(1)); in emit_shading_rate_setup() 1496 abld.SHR(int_rate_x, actual_x, brw_imm_ud(1)); in emit_shading_rate_setup() 1497 abld.SHL(int_rate_x, int_rate_x, brw_imm_ud(2)); in emit_shading_rate_setup() 1500 abld.MOV(rate, brw_imm_ud(0)); in emit_shading_rate_setup() 1600 brw_imm_ud(INTEL_MASK(31, 6))); in assign_curb_setup() 1603 ubld.MOV(header0, brw_imm_ud(0)); in assign_curb_setup() 1604 ubld.group(1, 0).SHR(component(header0, 2), base_addr, brw_imm_ud(4)); in assign_curb_setup() [all …]
|
D | brw_fs_reg_allocate.cpp | 765 brw_imm_ud(spill_offset / 16)); in emit_unspill() 775 ex_desc = brw_imm_ud(0); in emit_unspill() 778 fs_reg srcs[] = { brw_imm_ud(0), ex_desc, header }; in emit_unspill() 834 brw_imm_ud(spill_offset / 16)); in emit_spill() 844 ex_desc = brw_imm_ud(0); in emit_spill() 847 fs_reg srcs[] = { brw_imm_ud(0), ex_desc, header, src }; in emit_spill() 1043 inst = ubld.MOV(this->scratch_header, brw_imm_ud(0)); in spill_reg() 1048 brw_imm_ud(INTEL_MASK(31, 10))); in spill_reg()
|
D | brw_eu_emit.c | 2201 brw_imm_ud(offset)); in brw_oword_block_write_scratch() 2315 brw_MOV(p, get_element_ud(mrf, 2), brw_imm_ud(offset)); in brw_oword_block_read_scratch() 2420 brw_imm_ud(offset)); in brw_oword_block_read() 2611 brw_imm_ud(16 * (sampler / 16) * sampler_state_size)); in brw_adjust_sampler_state_pointer() 2622 brw_AND(p, temp, get_element_ud(sampler_index, 0), brw_imm_ud(0x0f0)); in brw_adjust_sampler_state_pointer() 2624 brw_SHL(p, temp, temp, brw_imm_ud(4)); in brw_adjust_sampler_state_pointer() 2661 brw_imm_ud(0xff00)); in brw_urb_WRITE() 2720 brw_OR(p, addr, desc, brw_imm_ud(desc_imm)); in brw_send_indirect_message() 2775 brw_OR(p, addr, desc, brw_imm_ud(desc_imm)); in brw_send_indirect_split_message() 2815 brw_MOV(p, addr, brw_imm_ud(ex_desc.ud | imm_part)); in brw_send_indirect_split_message() [all …]
|
D | brw_vec4_visitor.cpp | 403 emit(MOV(tmp_dst, brw_imm_ud(0x12345678u))); in emit_pack_half_2x16() 422 emit(SHL(dst, tmp_src, brw_imm_ud(16u))); in emit_pack_half_2x16() 461 emit(AND(tmp_dst, src0, brw_imm_ud(0xffffu))); in emit_unpack_half_2x16() 464 emit(SHR(tmp_dst, src0, brw_imm_ud(16u))); in emit_unpack_half_2x16() 841 emit(MOV(header1, brw_imm_ud(0u))); in emit_psiz_and_flags() 883 inst = emit(OR(header1_w, src_reg(header1_w), brw_imm_ud(1u << 6))); in emit_psiz_and_flags() 892 emit(MOV(retype(reg, BRW_REGISTER_TYPE_UD), brw_imm_ud(0u))); in emit_psiz_and_flags()
|
D | brw_fs_generator.cpp | 427 brw_imm_ud(1<<26)); in generate_fb_write() 430 int jmp = brw_JMPI(p, brw_imm_ud(0), BRW_PREDICATE_NORMAL) - p->store; in generate_fb_write() 797 brw_set_src1(p, insn, brw_imm_ud(0u)); in generate_cs_terminate() 1190 brw_imm_ud(inst->offset)); in generate_tex() 1487 brw_inst *insn = brw_MOV(p, dst, brw_imm_ud(0)); in generate_scratch_header() 1497 brw_imm_ud(INTEL_MASK(3, 0))); in generate_scratch_header() 1506 brw_imm_ud(INTEL_MASK(31, 10))); in generate_scratch_header() 1574 brw_set_src1(p, insn_and, brw_imm_ud(0x0ff)); in generate_uniform_pull_constant_load_gfx7() 1734 brw_MOV(p, dst, brw_imm_ud(hhhh0000)); in generate_pack_half_2x16_split() 1747 brw_SHL(p, dst, dst, brw_imm_ud(16u)); in generate_pack_half_2x16_split() [all …]
|
D | brw_vec4_gs_nir.cpp | 97 emit(MOV(dest, brw_imm_ud(0))); in nir_emit_intrinsic()
|
D | brw_vec4_tes.cpp | 168 brw_imm_ud(0x0fffffffu)); in nir_emit_intrinsic()
|
D | brw_vec4_surface_builder.cpp | 128 bld.emit(op, dst, src_reg(payload), usurface, brw_imm_ud(arg)); in emit_send()
|
D | brw_fs_scoreboard.cpp | 1286 brw_imm_ud(TGL_SYNC_NOP)); in emit_inst_dependencies() 1310 brw_imm_ud(TGL_SYNC_NOP)); in emit_inst_dependencies()
|
D | test_fs_cmod_propagation.cpp | 227 fs_reg zero(brw_imm_ud(0u)); in TEST_F() 886 fs_reg zero(brw_imm_ud(0)); in TEST_F() 944 fs_reg zero(brw_imm_ud(0)); in TEST_F() 1516 brw_imm_ud(0u), BRW_CONDITIONAL_LE); in TEST_F() 2170 fs_reg zero(brw_imm_ud(0)); in test_saturate_prop()
|