1 #include "radeon_program_constants.h"
3 #ifndef RADEON_PROGRAM_UTIL_H
4 #define RADEON_PROGRAM_UTIL_H
7 struct rc_src_register
;
9 unsigned int rc_swizzle_to_writemask(unsigned int swz
);
11 unsigned int rc_src_reads_dst_mask(
12 rc_register_file src_file
,
15 rc_register_file dst_file
,
17 unsigned int dst_mask
);
19 unsigned int rc_source_type_swz(unsigned int swizzle
, unsigned int channels
);
21 unsigned int rc_source_type_mask(unsigned int mask
);
23 unsigned int rc_inst_can_use_presub(
24 struct rc_instruction
* inst
,
25 rc_presubtract_op presub_op
,
26 unsigned int presub_writemask
,
27 struct rc_src_register replace_reg
,
28 struct rc_src_register presub_src0
,
29 struct rc_src_register presub_src1
);
31 #endif /* RADEON_PROGRAM_UTIL_H */