Lines Matching refs:DstReg
88 channel_mask = inst->DstReg.WriteMask & dst_mask; in get_src_arg_mask()
134 const GLuint mask = mov->DstReg.WriteMask; in get_dst_mask_for_mov()
234 if (inst->DstReg.File == file) { in replace_regs()
235 const GLuint index = inst->DstReg.Index; in replace_regs()
237 inst->DstReg.Index = map[index]; in replace_regs()
298 if (inst->DstReg.File == PROGRAM_TEMPORARY) { in _mesa_remove_dead_code_global()
299 const GLuint index = inst->DstReg.Index; in _mesa_remove_dead_code_global()
302 if (inst->DstReg.RelAddr) { in _mesa_remove_dead_code_global()
326 if (numDst != 0 && inst->DstReg.File == PROGRAM_TEMPORARY) { in _mesa_remove_dead_code_global()
327 GLint chan, index = inst->DstReg.Index; in _mesa_remove_dead_code_global()
331 inst->DstReg.WriteMask & (1 << chan)) { in _mesa_remove_dead_code_global()
336 inst->DstReg.WriteMask &= ~(1 << chan); in _mesa_remove_dead_code_global()
341 if (inst->DstReg.WriteMask == 0) { in _mesa_remove_dead_code_global()
419 inst->DstReg.File == PROGRAM_TEMPORARY && in find_next_use()
420 inst->DstReg.Index == index) { in find_next_use()
421 mask &= ~inst->DstReg.WriteMask; in find_next_use()
474 mov->DstReg.RelAddr == 0 && in can_downward_mov_be_modifed()
475 mov->DstReg.CondMask == COND_TR; in can_downward_mov_be_modifed()
484 mov->DstReg.File == PROGRAM_TEMPORARY && in can_upward_mov_be_modifed()
523 dst_mask = mov->DstReg.WriteMask; in _mesa_remove_extra_move_use()
541 if (inst2->SrcReg[arg].File != mov->DstReg.File || in _mesa_remove_extra_move_use()
542 inst2->SrcReg[arg].Index != mov->DstReg.Index || in _mesa_remove_extra_move_use()
570 if (inst2->DstReg.File == mov->DstReg.File && in _mesa_remove_extra_move_use()
571 (inst2->DstReg.RelAddr || in _mesa_remove_extra_move_use()
572 inst2->DstReg.Index == mov->DstReg.Index)) { in _mesa_remove_extra_move_use()
573 dst_mask &= ~inst2->DstReg.WriteMask; in _mesa_remove_extra_move_use()
578 if (inst2->DstReg.File == mov->SrcReg[0].File && in _mesa_remove_extra_move_use()
579 (inst2->DstReg.RelAddr || in _mesa_remove_extra_move_use()
580 inst2->DstReg.Index == mov->SrcReg[0].Index)) { in _mesa_remove_extra_move_use()
581 src_mask &= ~inst2->DstReg.WriteMask; in _mesa_remove_extra_move_use()
612 const GLuint index = inst->DstReg.Index; in _mesa_remove_dead_code_local()
613 const GLuint mask = inst->DstReg.WriteMask; in _mesa_remove_dead_code_local()
617 if (inst->DstReg.RelAddr) in _mesa_remove_dead_code_local()
625 inst->DstReg.File != PROGRAM_TEMPORARY || in _mesa_remove_dead_code_local()
626 inst->DstReg.RelAddr) in _mesa_remove_dead_code_local()
657 if (mask != (inst->DstReg.WriteMask & mask)) in _mesa_merge_mov_into_inst()
681 if (mov->DstReg.WriteMask & (1 << dst_comp)) { in _mesa_merge_mov_into_inst()
696 if ((mov->DstReg.WriteMask & (1 << dst_comp)) == 0) in _mesa_merge_mov_into_inst()
705 inst->DstReg = mov->DstReg; in _mesa_merge_mov_into_inst()
720 inst->DstReg = mov->DstReg; in _mesa_merge_mov_into_inst()
726 inst->DstReg.WriteMask != WRITEMASK_XYZW) in _mesa_merge_mov_into_inst()
728 inst->DstReg = mov->DstReg; in _mesa_merge_mov_into_inst()
791 if (prevInst->DstReg.File == PROGRAM_TEMPORARY && in _mesa_remove_extra_moves()
792 prevInst->DstReg.Index == id && in _mesa_remove_extra_moves()
793 prevInst->DstReg.RelAddr == 0 && in _mesa_remove_extra_moves()
794 prevInst->DstReg.CondSrc == 0 && in _mesa_remove_extra_moves()
795 prevInst->DstReg.CondMask == COND_TR) { in _mesa_remove_extra_moves()
797 const GLuint dst_mask = prevInst->DstReg.WriteMask; in _mesa_remove_extra_moves()
1029 if (inst->DstReg.File == PROGRAM_TEMPORARY) { in _mesa_find_temp_intervals()
1030 const GLuint index = inst->DstReg.Index; in _mesa_find_temp_intervals()
1031 if (inst->DstReg.RelAddr) in _mesa_find_temp_intervals()
1297 if (_mesa_is_flow_control_opcode(inst->Opcode) || inst->DstReg.RelAddr) { in _mesa_simplify_cmp()
1301 if (inst->DstReg.File == PROGRAM_OUTPUT) { in _mesa_simplify_cmp()
1302 assert(inst->DstReg.Index < MAX_PROGRAM_OUTPUTS); in _mesa_simplify_cmp()
1303 prevWriteMask = outputWrites[inst->DstReg.Index]; in _mesa_simplify_cmp()
1304 outputWrites[inst->DstReg.Index] |= inst->DstReg.WriteMask; in _mesa_simplify_cmp()
1305 } else if (inst->DstReg.File == PROGRAM_TEMPORARY) { in _mesa_simplify_cmp()
1306 assert(inst->DstReg.Index < REG_ALLOCATE_MAX_PROGRAM_TEMPS); in _mesa_simplify_cmp()
1307 prevWriteMask = tempWrites[inst->DstReg.Index]; in _mesa_simplify_cmp()
1308 tempWrites[inst->DstReg.Index] |= inst->DstReg.WriteMask; in _mesa_simplify_cmp()
1317 && !(inst->DstReg.WriteMask & prevWriteMask) in _mesa_simplify_cmp()
1318 && inst->SrcReg[2].File == inst->DstReg.File in _mesa_simplify_cmp()
1319 && inst->SrcReg[2].Index == inst->DstReg.Index in _mesa_simplify_cmp()
1320 && inst->DstReg.WriteMask == get_src_arg_mask(inst, 2, NO_MASK)) { in _mesa_simplify_cmp()