1 #if !defined TGSI_BUILD_H
4 #if defined __cplusplus
6 #endif // defined __cplusplus
13 tgsi_build_version( void );
20 tgsi_build_header( void );
23 tgsi_default_processor( void );
28 struct tgsi_header
*header
);
34 struct tgsi_declaration
35 tgsi_default_declaration( void );
37 struct tgsi_declaration
38 tgsi_build_declaration(
42 struct tgsi_header
*header
);
44 struct tgsi_full_declaration
45 tgsi_default_full_declaration( void );
48 tgsi_build_full_declaration(
49 const struct tgsi_full_declaration
*full_decl
,
50 struct tgsi_token
*tokens
,
51 struct tgsi_header
*header
,
54 struct tgsi_declaration_range
55 tgsi_build_declaration_range(
58 struct tgsi_declaration
*declaration
,
59 struct tgsi_header
*header
);
61 struct tgsi_declaration_mask
62 tgsi_build_declaration_mask(
64 struct tgsi_declaration
*declaration
,
65 struct tgsi_header
*header
);
67 struct tgsi_declaration_interpolation
68 tgsi_default_declaration_interpolation( void );
70 struct tgsi_declaration_interpolation
71 tgsi_build_declaration_interpolation(
73 struct tgsi_declaration
*declaration
,
74 struct tgsi_header
*header
);
81 tgsi_default_immediate( void );
85 struct tgsi_header
*header
);
87 struct tgsi_full_immediate
88 tgsi_default_full_immediate( void );
90 struct tgsi_immediate_float32
91 tgsi_build_immediate_float32(
93 struct tgsi_immediate
*immediate
,
94 struct tgsi_header
*header
);
97 tgsi_build_full_immediate(
98 const struct tgsi_full_immediate
*full_imm
,
99 struct tgsi_token
*tokens
,
100 struct tgsi_header
*header
,
107 struct tgsi_instruction
108 tgsi_default_instruction( void );
110 struct tgsi_instruction
111 tgsi_build_instruction(
114 unsigned num_dst_regs
,
115 unsigned num_src_regs
,
116 struct tgsi_header
*header
);
118 struct tgsi_full_instruction
119 tgsi_default_full_instruction( void );
122 tgsi_build_full_instruction(
123 const struct tgsi_full_instruction
*full_inst
,
124 struct tgsi_token
*tokens
,
125 struct tgsi_header
*header
,
128 struct tgsi_instruction_ext_nv
129 tgsi_default_instruction_ext_nv( void );
132 tgsi_compare_instruction_ext_nv(
133 struct tgsi_instruction_ext_nv a
,
134 struct tgsi_instruction_ext_nv b
);
136 struct tgsi_instruction_ext_nv
137 tgsi_build_instruction_ext_nv(
139 unsigned cond_dst_index
,
140 unsigned cond_flow_index
,
142 unsigned cond_swizzle_x
,
143 unsigned cond_swizzle_y
,
144 unsigned cond_swizzle_z
,
145 unsigned cond_swizzle_w
,
146 unsigned cond_dst_update
,
147 unsigned cond_flow_update
,
148 struct tgsi_token
*prev_token
,
149 struct tgsi_instruction
*instruction
,
150 struct tgsi_header
*header
);
152 struct tgsi_instruction_ext_label
153 tgsi_default_instruction_ext_label( void );
156 tgsi_compare_instruction_ext_label(
157 struct tgsi_instruction_ext_label a
,
158 struct tgsi_instruction_ext_label b
);
160 struct tgsi_instruction_ext_label
161 tgsi_build_instruction_ext_label(
163 struct tgsi_token
*prev_token
,
164 struct tgsi_instruction
*instruction
,
165 struct tgsi_header
*header
);
167 struct tgsi_instruction_ext_texture
168 tgsi_default_instruction_ext_texture( void );
171 tgsi_compare_instruction_ext_texture(
172 struct tgsi_instruction_ext_texture a
,
173 struct tgsi_instruction_ext_texture b
);
175 struct tgsi_instruction_ext_texture
176 tgsi_build_instruction_ext_texture(
178 struct tgsi_token
*prev_token
,
179 struct tgsi_instruction
*instruction
,
180 struct tgsi_header
*header
);
182 struct tgsi_src_register
183 tgsi_default_src_register( void );
185 struct tgsi_src_register
186 tgsi_build_src_register(
196 struct tgsi_instruction
*instruction
,
197 struct tgsi_header
*header
);
199 struct tgsi_full_src_register
200 tgsi_default_full_src_register( void );
202 struct tgsi_src_register_ext_swz
203 tgsi_default_src_register_ext_swz( void );
206 tgsi_compare_src_register_ext_swz(
207 struct tgsi_src_register_ext_swz a
,
208 struct tgsi_src_register_ext_swz b
);
210 struct tgsi_src_register_ext_swz
211 tgsi_build_src_register_ext_swz(
212 unsigned ext_swizzle_x
,
213 unsigned ext_swizzle_y
,
214 unsigned ext_swizzle_z
,
215 unsigned ext_swizzle_w
,
221 struct tgsi_token
*prev_token
,
222 struct tgsi_instruction
*instruction
,
223 struct tgsi_header
*header
);
225 struct tgsi_src_register_ext_mod
226 tgsi_default_src_register_ext_mod( void );
229 tgsi_compare_src_register_ext_mod(
230 struct tgsi_src_register_ext_mod a
,
231 struct tgsi_src_register_ext_mod b
);
233 struct tgsi_src_register_ext_mod
234 tgsi_build_src_register_ext_mod(
240 struct tgsi_token
*prev_token
,
241 struct tgsi_instruction
*instruction
,
242 struct tgsi_header
*header
);
244 struct tgsi_dimension
245 tgsi_default_dimension( void );
247 struct tgsi_dimension
248 tgsi_build_dimension(
251 struct tgsi_instruction
*instruction
,
252 struct tgsi_header
*header
);
254 struct tgsi_dst_register
255 tgsi_default_dst_register( void );
257 struct tgsi_dst_register
258 tgsi_build_dst_register(
262 struct tgsi_instruction
*instruction
,
263 struct tgsi_header
*header
);
265 struct tgsi_full_dst_register
266 tgsi_default_full_dst_register( void );
268 struct tgsi_dst_register_ext_concode
269 tgsi_default_dst_register_ext_concode( void );
272 tgsi_compare_dst_register_ext_concode(
273 struct tgsi_dst_register_ext_concode a
,
274 struct tgsi_dst_register_ext_concode b
);
276 struct tgsi_dst_register_ext_concode
277 tgsi_build_dst_register_ext_concode(
284 struct tgsi_token
*prev_token
,
285 struct tgsi_instruction
*instruction
,
286 struct tgsi_header
*header
);
288 struct tgsi_dst_register_ext_modulate
289 tgsi_default_dst_register_ext_modulate( void );
292 tgsi_compare_dst_register_ext_modulate(
293 struct tgsi_dst_register_ext_modulate a
,
294 struct tgsi_dst_register_ext_modulate b
);
296 struct tgsi_dst_register_ext_modulate
297 tgsi_build_dst_register_ext_modulate(
299 struct tgsi_token
*prev_token
,
300 struct tgsi_instruction
*instruction
,
301 struct tgsi_header
*header
);
303 #if defined __cplusplus
305 #endif // defined __cplusplus
307 #endif // !defined TGSI_BUILD_H