Lines Matching refs:bits3

278       insn->bits3.ud = reg.dw1.ud;  in brw_set_src0()
368 insn->bits3.da1.src1_abs = reg.abs; in brw_set_src1()
369 insn->bits3.da1.src1_negate = reg.negate; in brw_set_src1()
370 insn->bits3.da1.src1_address_mode = reg.address_mode; in brw_set_src1()
377 insn->bits3.ud = reg.dw1.ud; in brw_set_src1()
386 insn->bits3.da1.src1_subreg_nr = reg.subnr; in brw_set_src1()
387 insn->bits3.da1.src1_reg_nr = reg.nr; in brw_set_src1()
390 insn->bits3.da16.src1_subreg_nr = reg.subnr / 16; in brw_set_src1()
391 insn->bits3.da16.src1_reg_nr = reg.nr; in brw_set_src1()
395 insn->bits3.ia1.src1_subreg_nr = reg.subnr; in brw_set_src1()
398 insn->bits3.ia1.src1_indirect_offset = reg.dw1.bits.indirect_offset; in brw_set_src1()
400 insn->bits3.ia16.src1_indirect_offset = reg.dw1.bits.indirect_offset / 16; in brw_set_src1()
414 insn->bits3.da1.src1_horiz_stride = reg.hstride; in brw_set_src1()
415 insn->bits3.da1.src1_width = reg.width; in brw_set_src1()
416 insn->bits3.da1.src1_vert_stride = reg.vstride; in brw_set_src1()
420 insn->bits3.da16.src1_swz_x = BRW_GET_SWZ(reg.dw1.bits.swizzle, BRW_CHANNEL_X); in brw_set_src1()
421 insn->bits3.da16.src1_swz_y = BRW_GET_SWZ(reg.dw1.bits.swizzle, BRW_CHANNEL_Y); in brw_set_src1()
422 insn->bits3.da16.src1_swz_z = BRW_GET_SWZ(reg.dw1.bits.swizzle, BRW_CHANNEL_Z); in brw_set_src1()
423 insn->bits3.da16.src1_swz_w = BRW_GET_SWZ(reg.dw1.bits.swizzle, BRW_CHANNEL_W); in brw_set_src1()
429 insn->bits3.da16.src1_vert_stride = BRW_VERTICAL_STRIDE_4; in brw_set_src1()
431 insn->bits3.da16.src1_vert_stride = reg.vstride; in brw_set_src1()
458 inst->bits3.generic_gen5.header_present = header_present; in brw_set_message_descriptor()
459 inst->bits3.generic_gen5.response_length = response_length; in brw_set_message_descriptor()
460 inst->bits3.generic_gen5.msg_length = msg_length; in brw_set_message_descriptor()
461 inst->bits3.generic_gen5.end_of_thread = end_of_thread; in brw_set_message_descriptor()
472 inst->bits3.generic.response_length = response_length; in brw_set_message_descriptor()
473 inst->bits3.generic.msg_length = msg_length; in brw_set_message_descriptor()
474 inst->bits3.generic.msg_target = sfid; in brw_set_message_descriptor()
475 inst->bits3.generic.end_of_thread = end_of_thread; in brw_set_message_descriptor()
519 insn->bits3.math_gen5.function = function; in brw_set_math_message()
520 insn->bits3.math_gen5.int_type = integer_type; in brw_set_math_message()
521 insn->bits3.math_gen5.precision = low_precision; in brw_set_math_message()
522 insn->bits3.math_gen5.saturate = insn->header.saturate; in brw_set_math_message()
523 insn->bits3.math_gen5.data_type = dataType; in brw_set_math_message()
524 insn->bits3.math_gen5.snapshot = 0; in brw_set_math_message()
526 insn->bits3.math.function = function; in brw_set_math_message()
527 insn->bits3.math.int_type = integer_type; in brw_set_math_message()
528 insn->bits3.math.precision = low_precision; in brw_set_math_message()
529 insn->bits3.math.saturate = insn->header.saturate; in brw_set_math_message()
530 insn->bits3.math.data_type = dataType; in brw_set_math_message()
544 insn->bits3.urb_gen5.opcode = 1; /* FF_SYNC */ in brw_set_ff_sync_message()
545 insn->bits3.urb_gen5.offset = 0; /* Not used by FF_SYNC */ in brw_set_ff_sync_message()
546 insn->bits3.urb_gen5.swizzle_control = 0; /* Not used by FF_SYNC */ in brw_set_ff_sync_message()
547 insn->bits3.urb_gen5.allocate = allocate; in brw_set_ff_sync_message()
548 insn->bits3.urb_gen5.used = 0; /* Not used by FF_SYNC */ in brw_set_ff_sync_message()
549 insn->bits3.urb_gen5.complete = 0; /* Not used by FF_SYNC */ in brw_set_ff_sync_message()
569 insn->bits3.urb_gen7.opcode = 0; /* URB_WRITE_HWORD */ in brw_set_urb_message()
570 insn->bits3.urb_gen7.offset = offset; in brw_set_urb_message()
572 insn->bits3.urb_gen7.swizzle_control = swizzle_control; in brw_set_urb_message()
574 insn->bits3.urb_gen7.per_slot_offset = 0; in brw_set_urb_message()
575 insn->bits3.urb_gen7.complete = complete; in brw_set_urb_message()
577 insn->bits3.urb_gen5.opcode = 0; /* URB_WRITE */ in brw_set_urb_message()
578 insn->bits3.urb_gen5.offset = offset; in brw_set_urb_message()
579 insn->bits3.urb_gen5.swizzle_control = swizzle_control; in brw_set_urb_message()
580 insn->bits3.urb_gen5.allocate = allocate; in brw_set_urb_message()
581 insn->bits3.urb_gen5.used = used; /* ? */ in brw_set_urb_message()
582 insn->bits3.urb_gen5.complete = complete; in brw_set_urb_message()
584 insn->bits3.urb.opcode = 0; /* ? */ in brw_set_urb_message()
585 insn->bits3.urb.offset = offset; in brw_set_urb_message()
586 insn->bits3.urb.swizzle_control = swizzle_control; in brw_set_urb_message()
587 insn->bits3.urb.allocate = allocate; in brw_set_urb_message()
588 insn->bits3.urb.used = used; /* ? */ in brw_set_urb_message()
589 insn->bits3.urb.complete = complete; in brw_set_urb_message()
627 insn->bits3.gen7_dp.binding_table_index = binding_table_index; in brw_set_dp_write_message()
628 insn->bits3.gen7_dp.msg_control = msg_control | in brw_set_dp_write_message()
630 insn->bits3.gen7_dp.msg_type = msg_type; in brw_set_dp_write_message()
632 insn->bits3.gen6_dp.binding_table_index = binding_table_index; in brw_set_dp_write_message()
633 insn->bits3.gen6_dp.msg_control = msg_control | in brw_set_dp_write_message()
635 insn->bits3.gen6_dp.msg_type = msg_type; in brw_set_dp_write_message()
636 insn->bits3.gen6_dp.send_commit_msg = send_commit_msg; in brw_set_dp_write_message()
638 insn->bits3.dp_write_gen5.binding_table_index = binding_table_index; in brw_set_dp_write_message()
639 insn->bits3.dp_write_gen5.msg_control = msg_control; in brw_set_dp_write_message()
640 insn->bits3.dp_write_gen5.last_render_target = last_render_target; in brw_set_dp_write_message()
641 insn->bits3.dp_write_gen5.msg_type = msg_type; in brw_set_dp_write_message()
642 insn->bits3.dp_write_gen5.send_commit_msg = send_commit_msg; in brw_set_dp_write_message()
644 insn->bits3.dp_write.binding_table_index = binding_table_index; in brw_set_dp_write_message()
645 insn->bits3.dp_write.msg_control = msg_control; in brw_set_dp_write_message()
646 insn->bits3.dp_write.last_render_target = last_render_target; in brw_set_dp_write_message()
647 insn->bits3.dp_write.msg_type = msg_type; in brw_set_dp_write_message()
648 insn->bits3.dp_write.send_commit_msg = send_commit_msg; in brw_set_dp_write_message()
682 insn->bits3.gen7_dp.binding_table_index = binding_table_index; in brw_set_dp_read_message()
683 insn->bits3.gen7_dp.msg_control = msg_control; in brw_set_dp_read_message()
684 insn->bits3.gen7_dp.msg_type = msg_type; in brw_set_dp_read_message()
686 insn->bits3.gen6_dp.binding_table_index = binding_table_index; in brw_set_dp_read_message()
687 insn->bits3.gen6_dp.msg_control = msg_control; in brw_set_dp_read_message()
688 insn->bits3.gen6_dp.msg_type = msg_type; in brw_set_dp_read_message()
689 insn->bits3.gen6_dp.send_commit_msg = 0; in brw_set_dp_read_message()
691 insn->bits3.dp_read_gen5.binding_table_index = binding_table_index; in brw_set_dp_read_message()
692 insn->bits3.dp_read_gen5.msg_control = msg_control; in brw_set_dp_read_message()
693 insn->bits3.dp_read_gen5.msg_type = msg_type; in brw_set_dp_read_message()
694 insn->bits3.dp_read_gen5.target_cache = target_cache; in brw_set_dp_read_message()
696 insn->bits3.dp_read_g4x.binding_table_index = binding_table_index; /*0:7*/ in brw_set_dp_read_message()
697 insn->bits3.dp_read_g4x.msg_control = msg_control; /*8:10*/ in brw_set_dp_read_message()
698 insn->bits3.dp_read_g4x.msg_type = msg_type; /*11:13*/ in brw_set_dp_read_message()
699 insn->bits3.dp_read_g4x.target_cache = target_cache; /*14:15*/ in brw_set_dp_read_message()
701 insn->bits3.dp_read.binding_table_index = binding_table_index; /*0:7*/ in brw_set_dp_read_message()
702 insn->bits3.dp_read.msg_control = msg_control; /*8:11*/ in brw_set_dp_read_message()
703 insn->bits3.dp_read.msg_type = msg_type; /*12:13*/ in brw_set_dp_read_message()
704 insn->bits3.dp_read.target_cache = target_cache; /*14:15*/ in brw_set_dp_read_message()
727 insn->bits3.sampler_gen7.binding_table_index = binding_table_index; in brw_set_sampler_message()
728 insn->bits3.sampler_gen7.sampler = sampler; in brw_set_sampler_message()
729 insn->bits3.sampler_gen7.msg_type = msg_type; in brw_set_sampler_message()
730 insn->bits3.sampler_gen7.simd_mode = simd_mode; in brw_set_sampler_message()
732 insn->bits3.sampler_gen5.binding_table_index = binding_table_index; in brw_set_sampler_message()
733 insn->bits3.sampler_gen5.sampler = sampler; in brw_set_sampler_message()
734 insn->bits3.sampler_gen5.msg_type = msg_type; in brw_set_sampler_message()
735 insn->bits3.sampler_gen5.simd_mode = simd_mode; in brw_set_sampler_message()
737 insn->bits3.sampler_g4x.binding_table_index = binding_table_index; in brw_set_sampler_message()
738 insn->bits3.sampler_g4x.sampler = sampler; in brw_set_sampler_message()
739 insn->bits3.sampler_g4x.msg_type = msg_type; in brw_set_sampler_message()
741 insn->bits3.sampler.binding_table_index = binding_table_index; in brw_set_sampler_message()
742 insn->bits3.sampler.sampler = sampler; in brw_set_sampler_message()
743 insn->bits3.sampler.msg_type = msg_type; in brw_set_sampler_message()
744 insn->bits3.sampler.return_format = return_format; in brw_set_sampler_message()
880 insn->bits3.da3src.src1_subreg_nr_high = get_3src_subreg_nr(src1) >> 2; in brw_set_3src_src1()
882 insn->bits3.da3src.src1_reg_nr = src1.nr; in brw_set_3src_src1()
896 insn->bits3.da3src.src2_swizzle = src2.dw1.bits.swizzle; in brw_set_3src_src2()
897 insn->bits3.da3src.src2_subreg_nr = get_3src_subreg_nr(src2); in brw_set_3src_src2()
898 insn->bits3.da3src.src2_rep_ctrl = src2.vstride == BRW_VERTICAL_STRIDE_0; in brw_set_3src_src2()
899 insn->bits3.da3src.src2_reg_nr = src2.nr; in brw_set_3src_src2()
1195 insn->bits3.break_cont.jip = 0; in brw_IF()
1196 insn->bits3.break_cont.uip = 0; in brw_IF()
1278 if_inst->bits3.ud = (else_inst - if_inst + 1) * 16; in convert_IF_ELSE_to_ADD()
1279 else_inst->bits3.ud = (next_inst - else_inst) * 16; in convert_IF_ELSE_to_ADD()
1281 if_inst->bits3.ud = (next_inst - if_inst) * 16; in convert_IF_ELSE_to_ADD()
1332 if_inst->bits3.if_else.jump_count = br * (endif_inst - if_inst + 1); in patch_IF_ELSE()
1333 if_inst->bits3.if_else.pop_count = 0; in patch_IF_ELSE()
1334 if_inst->bits3.if_else.pad0 = 0; in patch_IF_ELSE()
1339 if_inst->bits3.break_cont.uip = br * (endif_inst - if_inst); in patch_IF_ELSE()
1340 if_inst->bits3.break_cont.jip = br * (endif_inst - if_inst); in patch_IF_ELSE()
1347 if_inst->bits3.if_else.jump_count = br * (else_inst - if_inst); in patch_IF_ELSE()
1348 if_inst->bits3.if_else.pop_count = 0; in patch_IF_ELSE()
1349 if_inst->bits3.if_else.pad0 = 0; in patch_IF_ELSE()
1359 else_inst->bits3.if_else.jump_count = br*(endif_inst - else_inst + 1); in patch_IF_ELSE()
1360 else_inst->bits3.if_else.pop_count = 1; in patch_IF_ELSE()
1361 else_inst->bits3.if_else.pad0 = 0; in patch_IF_ELSE()
1367 if_inst->bits3.break_cont.jip = br * (else_inst - if_inst + 1); in patch_IF_ELSE()
1369 if_inst->bits3.break_cont.uip = br * (endif_inst - if_inst); in patch_IF_ELSE()
1370 else_inst->bits3.break_cont.jip = br * (endif_inst - else_inst); in patch_IF_ELSE()
1396 insn->bits3.break_cont.jip = 0; in brw_ELSE()
1397 insn->bits3.break_cont.uip = 0; in brw_ELSE()
1476 insn->bits3.if_else.jump_count = 0; in brw_ENDIF()
1477 insn->bits3.if_else.pop_count = 1; in brw_ENDIF()
1478 insn->bits3.if_else.pad0 = 0; in brw_ENDIF()
1482 insn->bits3.break_cont.jip = 2; in brw_ENDIF()
1501 insn->bits3.if_else.pad0 = 0; in brw_BREAK()
1502 insn->bits3.if_else.pop_count = p->if_depth_in_loop[p->loop_stack_depth]; in brw_BREAK()
1536 insn->bits3.if_else.pad0 = 0; in brw_CONT()
1537 insn->bits3.if_else.pop_count = p->if_depth_in_loop[p->loop_stack_depth]; in brw_CONT()
1624 inst->bits3.if_else.jump_count == 0) { in brw_patch_break_cont()
1625 inst->bits3.if_else.jump_count = br * ((while_inst - inst) + 1); in brw_patch_break_cont()
1627 inst->bits3.if_else.jump_count == 0) { in brw_patch_break_cont()
1628 inst->bits3.if_else.jump_count = br * (while_inst - inst); in brw_patch_break_cont()
1649 insn->bits3.break_cont.jip = br * (do_insn - insn); in brw_WHILE()
1682 insn->bits3.if_else.jump_count = br * (do_insn - insn + 1); in brw_WHILE()
1683 insn->bits3.if_else.pop_count = 0; in brw_WHILE()
1684 insn->bits3.if_else.pad0 = 0; in brw_WHILE()
1712 jmp_insn->bits3.ud = jmpi * (p->nr_insn - jmp_insn_idx - 1); in brw_land_fwd_jump()
2425 : insn->bits3.break_cont.jip; in brw_find_loop_end()
2463 insn->bits3.break_cont.jip = (block_end_ip - ip) / scale; in brw_set_uip_jip()
2465 insn->bits3.break_cont.uip = in brw_set_uip_jip()
2471 insn->bits3.break_cont.jip = (block_end_ip - ip) / scale; in brw_set_uip_jip()
2472 insn->bits3.break_cont.uip = in brw_set_uip_jip()
2475 assert(insn->bits3.break_cont.uip != 0); in brw_set_uip_jip()
2476 assert(insn->bits3.break_cont.jip != 0); in brw_set_uip_jip()
2481 insn->bits3.break_cont.jip = 2; in brw_set_uip_jip()
2483 insn->bits3.break_cont.jip = (block_end_ip - ip) / scale; in brw_set_uip_jip()
2499 insn->bits3.break_cont.jip = insn->bits3.break_cont.uip; in brw_set_uip_jip()
2501 insn->bits3.break_cont.jip = (block_end_ip - ip) / scale; in brw_set_uip_jip()
2503 assert(insn->bits3.break_cont.uip != 0); in brw_set_uip_jip()
2504 assert(insn->bits3.break_cont.jip != 0); in brw_set_uip_jip()
2622 send->bits3.ud |= 6 << 14; /* untyped atomic op */ in brw_shader_time_add()
2623 send->bits3.ud |= 0 << 13; /* no return data */ in brw_shader_time_add()
2624 send->bits3.ud |= 1 << 12; /* SIMD8 mode */ in brw_shader_time_add()
2625 send->bits3.ud |= BRW_AOP_ADD << 8; in brw_shader_time_add()
2626 send->bits3.ud |= surf_index << 0; in brw_shader_time_add()