src/lima/pp_lir/pp_lir.h
//Returns the number of channels possibly used for an argument
Returns the number of channels possibly used for an argument
Returns the number of channels possibly used for an argument
static inline unsigned lima_pp_lir_arg_size(lima_pp_lir_instr_t* instr, unsigned arg)
{
	if (lima_pp_hir_op[instr->op].arg_sizes[arg] != 0)
		return lima_pp_hir_op[instr->op].arg_sizes[arg];
	if (!instr->dest.pipeline)
		return instr->dest.reg->size;
	else
		return 4;
}
static inline unsigned lima_pp_lir_arg_size ( lima_pp_lir_instr_t * instr , unsigned arg ) { if ( lima_pp_hir_op [ instr -> op ] . arg_sizes [ arg ] != 0 ) return lima_pp_hir_op [ instr -> op ] . arg_sizes [ arg ] ; if ( ! instr -> dest . pipeline ) return instr -> dest . reg -> size ; else return 4 ; }
Returns the number of channels possibly used for an argument
Returns the number of channels possibly used for an argument