gallium: Add PIPE_SHADER_CAP_FP16
[mesa.git] / src / gallium / auxiliary / tgsi / tgsi_exec.h
1 /**************************************************************************
2 *
3 * Copyright 2007-2008 VMware, Inc.
4 * All Rights Reserved.
5 * Copyright 2009-2010 VMware, Inc. All rights Reserved.
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a
8 * copy of this software and associated documentation files (the
9 * "Software"), to deal in the Software without restriction, including
10 * without limitation the rights to use, copy, modify, merge, publish,
11 * distribute, sub license, and/or sell copies of the Software, and to
12 * permit persons to whom the Software is furnished to do so, subject to
13 * the following conditions:
14 *
15 * The above copyright notice and this permission notice (including the
16 * next paragraph) shall be included in all copies or substantial portions
17 * of the Software.
18 *
19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
20 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
22 * IN NO EVENT SHALL VMWARE AND/OR ITS SUPPLIERS BE LIABLE FOR
23 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
24 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
25 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26 *
27 **************************************************************************/
28
29 #ifndef TGSI_EXEC_H
30 #define TGSI_EXEC_H
31
32 #include "pipe/p_compiler.h"
33 #include "pipe/p_state.h"
34 #include "pipe/p_shader_tokens.h"
35
36 #if defined __cplusplus
37 extern "C" {
38 #endif
39
40 #define TGSI_CHAN_X 0
41 #define TGSI_CHAN_Y 1
42 #define TGSI_CHAN_Z 2
43 #define TGSI_CHAN_W 3
44
45 #define TGSI_NUM_CHANNELS 4 /* R,G,B,A */
46 #define TGSI_QUAD_SIZE 4 /* 4 pixel/quad */
47
48 #define TGSI_FOR_EACH_CHANNEL( CHAN )\
49 for (CHAN = 0; CHAN < TGSI_NUM_CHANNELS; CHAN++)
50
51 #define TGSI_IS_DST0_CHANNEL_ENABLED( INST, CHAN )\
52 ((INST)->Dst[0].Register.WriteMask & (1 << (CHAN)))
53
54 #define TGSI_IF_IS_DST0_CHANNEL_ENABLED( INST, CHAN )\
55 if (TGSI_IS_DST0_CHANNEL_ENABLED( INST, CHAN ))
56
57 #define TGSI_FOR_EACH_DST0_ENABLED_CHANNEL( INST, CHAN )\
58 TGSI_FOR_EACH_CHANNEL( CHAN )\
59 TGSI_IF_IS_DST0_CHANNEL_ENABLED( INST, CHAN )
60
61
62 /**
63 * Registers may be treated as float, signed int or unsigned int.
64 */
65 union tgsi_exec_channel
66 {
67 float f[TGSI_QUAD_SIZE];
68 int i[TGSI_QUAD_SIZE];
69 unsigned u[TGSI_QUAD_SIZE];
70 };
71
72 /**
73 * A vector[RGBA] of channels[4 pixels]
74 */
75 struct tgsi_exec_vector
76 {
77 union tgsi_exec_channel xyzw[TGSI_NUM_CHANNELS];
78 };
79
80 /**
81 * For fragment programs, information for computing fragment input
82 * values from plane equation of the triangle/line.
83 */
84 struct tgsi_interp_coef
85 {
86 float a0[TGSI_NUM_CHANNELS]; /* in an xyzw layout */
87 float dadx[TGSI_NUM_CHANNELS];
88 float dady[TGSI_NUM_CHANNELS];
89 };
90
91 enum tgsi_sampler_control
92 {
93 TGSI_SAMPLER_LOD_NONE,
94 TGSI_SAMPLER_LOD_BIAS,
95 TGSI_SAMPLER_LOD_EXPLICIT,
96 TGSI_SAMPLER_LOD_ZERO,
97 TGSI_SAMPLER_DERIVS_EXPLICIT,
98 TGSI_SAMPLER_GATHER,
99 };
100
101 struct tgsi_image_params {
102 unsigned unit;
103 unsigned tgsi_tex_instr;
104 enum pipe_format format;
105 unsigned execmask;
106 };
107
108 struct tgsi_image {
109 /* image interfaces */
110 void (*load)(const struct tgsi_image *image,
111 const struct tgsi_image_params *params,
112 const int s[TGSI_QUAD_SIZE],
113 const int t[TGSI_QUAD_SIZE],
114 const int r[TGSI_QUAD_SIZE],
115 const int sample[TGSI_QUAD_SIZE],
116 float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]);
117
118 void (*store)(const struct tgsi_image *image,
119 const struct tgsi_image_params *params,
120 const int s[TGSI_QUAD_SIZE],
121 const int t[TGSI_QUAD_SIZE],
122 const int r[TGSI_QUAD_SIZE],
123 const int sample[TGSI_QUAD_SIZE],
124 float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]);
125
126 void (*op)(const struct tgsi_image *image,
127 const struct tgsi_image_params *params,
128 unsigned opcode,
129 const int s[TGSI_QUAD_SIZE],
130 const int t[TGSI_QUAD_SIZE],
131 const int r[TGSI_QUAD_SIZE],
132 const int sample[TGSI_QUAD_SIZE],
133 float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE],
134 float rgba2[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]);
135
136 void (*get_dims)(const struct tgsi_image *image,
137 const struct tgsi_image_params *params,
138 int dims[4]);
139 };
140
141 struct tgsi_buffer_params {
142 unsigned unit;
143 unsigned execmask;
144 unsigned writemask;
145 };
146
147 struct tgsi_buffer {
148 /* buffer interfaces */
149 void (*load)(const struct tgsi_buffer *buffer,
150 const struct tgsi_buffer_params *params,
151 const int s[TGSI_QUAD_SIZE],
152 float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]);
153
154 void (*store)(const struct tgsi_buffer *buffer,
155 const struct tgsi_buffer_params *params,
156 const int s[TGSI_QUAD_SIZE],
157 float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]);
158
159 void (*op)(const struct tgsi_buffer *buffer,
160 const struct tgsi_buffer_params *params,
161 unsigned opcode,
162 const int s[TGSI_QUAD_SIZE],
163 float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE],
164 float rgba2[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]);
165
166 void (*get_dims)(const struct tgsi_buffer *buffer,
167 const struct tgsi_buffer_params *params,
168 int *dim);
169 };
170
171 /**
172 * Information for sampling textures, which must be implemented
173 * by code outside the TGSI executor.
174 */
175 struct tgsi_sampler
176 {
177 /** Get samples for four fragments in a quad */
178 /* this interface contains 5 sets of channels that vary
179 * depending on the sampler.
180 * s - the first texture coordinate for sampling.
181 * t - the second texture coordinate for sampling - unused for 1D,
182 layer for 1D arrays.
183 * r - the third coordinate for sampling for 3D, cube, cube arrays,
184 * layer for 2D arrays. Compare value for 1D/2D shadows.
185 * c0 - Compare value for shadow cube and shadow 2d arrays,
186 * layer for cube arrays.
187 * derivs - explicit derivatives.
188 * offset - texel offsets
189 * lod - lod value, except for shadow cube arrays (compare value there).
190 */
191 void (*get_samples)(struct tgsi_sampler *sampler,
192 const unsigned sview_index,
193 const unsigned sampler_index,
194 const float s[TGSI_QUAD_SIZE],
195 const float t[TGSI_QUAD_SIZE],
196 const float r[TGSI_QUAD_SIZE],
197 const float c0[TGSI_QUAD_SIZE],
198 const float c1[TGSI_QUAD_SIZE],
199 float derivs[3][2][TGSI_QUAD_SIZE],
200 const int8_t offset[3],
201 enum tgsi_sampler_control control,
202 float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]);
203 void (*get_dims)(struct tgsi_sampler *sampler,
204 const unsigned sview_index,
205 int level, int dims[4]);
206 void (*get_texel)(struct tgsi_sampler *sampler,
207 const unsigned sview_index,
208 const int i[TGSI_QUAD_SIZE],
209 const int j[TGSI_QUAD_SIZE], const int k[TGSI_QUAD_SIZE],
210 const int lod[TGSI_QUAD_SIZE], const int8_t offset[3],
211 float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE]);
212 void (*query_lod)(const struct tgsi_sampler *tgsi_sampler,
213 const unsigned sview_index,
214 const unsigned sampler_index,
215 const float s[TGSI_QUAD_SIZE],
216 const float t[TGSI_QUAD_SIZE],
217 const float p[TGSI_QUAD_SIZE],
218 const float c0[TGSI_QUAD_SIZE],
219 const enum tgsi_sampler_control control,
220 float mipmap[TGSI_QUAD_SIZE],
221 float lod[TGSI_QUAD_SIZE]);
222 };
223
224 #define TGSI_EXEC_NUM_TEMPS 4096
225 #define TGSI_EXEC_NUM_IMMEDIATES 256
226
227 /*
228 * Locations of various utility registers (_I = Index, _C = Channel)
229 */
230 #define TGSI_EXEC_TEMP_00000000_I (TGSI_EXEC_NUM_TEMPS + 0)
231 #define TGSI_EXEC_TEMP_00000000_C 0
232
233 #define TGSI_EXEC_TEMP_7FFFFFFF_I (TGSI_EXEC_NUM_TEMPS + 0)
234 #define TGSI_EXEC_TEMP_7FFFFFFF_C 1
235
236 #define TGSI_EXEC_TEMP_80000000_I (TGSI_EXEC_NUM_TEMPS + 0)
237 #define TGSI_EXEC_TEMP_80000000_C 2
238
239 #define TGSI_EXEC_TEMP_FFFFFFFF_I (TGSI_EXEC_NUM_TEMPS + 0)
240 #define TGSI_EXEC_TEMP_FFFFFFFF_C 3
241
242 #define TGSI_EXEC_TEMP_ONE_I (TGSI_EXEC_NUM_TEMPS + 1)
243 #define TGSI_EXEC_TEMP_ONE_C 0
244
245 #define TGSI_EXEC_TEMP_TWO_I (TGSI_EXEC_NUM_TEMPS + 1)
246 #define TGSI_EXEC_TEMP_TWO_C 1
247
248 #define TGSI_EXEC_TEMP_128_I (TGSI_EXEC_NUM_TEMPS + 1)
249 #define TGSI_EXEC_TEMP_128_C 2
250
251 #define TGSI_EXEC_TEMP_MINUS_128_I (TGSI_EXEC_NUM_TEMPS + 1)
252 #define TGSI_EXEC_TEMP_MINUS_128_C 3
253
254 #define TGSI_EXEC_TEMP_KILMASK_I (TGSI_EXEC_NUM_TEMPS + 2)
255 #define TGSI_EXEC_TEMP_KILMASK_C 0
256
257 #define TGSI_EXEC_TEMP_OUTPUT_I (TGSI_EXEC_NUM_TEMPS + 2)
258 #define TGSI_EXEC_TEMP_OUTPUT_C 1
259
260 #define TGSI_EXEC_TEMP_PRIMITIVE_I (TGSI_EXEC_NUM_TEMPS + 2)
261 #define TGSI_EXEC_TEMP_PRIMITIVE_C 2
262
263 #define TGSI_EXEC_TEMP_THREE_I (TGSI_EXEC_NUM_TEMPS + 2)
264 #define TGSI_EXEC_TEMP_THREE_C 3
265
266 #define TGSI_EXEC_TEMP_HALF_I (TGSI_EXEC_NUM_TEMPS + 3)
267 #define TGSI_EXEC_TEMP_HALF_C 0
268
269 /* 4 register buffer for various purposes */
270 #define TGSI_EXEC_TEMP_R0 (TGSI_EXEC_NUM_TEMPS + 4)
271 #define TGSI_EXEC_NUM_TEMP_R 4
272
273 #define TGSI_EXEC_TEMP_ADDR (TGSI_EXEC_NUM_TEMPS + 8)
274 #define TGSI_EXEC_NUM_ADDRS 3
275
276 #define TGSI_EXEC_NUM_TEMP_EXTRAS 12
277
278
279
280 #define TGSI_EXEC_MAX_NESTING 32
281 #define TGSI_EXEC_MAX_COND_NESTING TGSI_EXEC_MAX_NESTING
282 #define TGSI_EXEC_MAX_LOOP_NESTING TGSI_EXEC_MAX_NESTING
283 #define TGSI_EXEC_MAX_SWITCH_NESTING TGSI_EXEC_MAX_NESTING
284 #define TGSI_EXEC_MAX_CALL_NESTING TGSI_EXEC_MAX_NESTING
285
286 /* The maximum number of input attributes per vertex. For 2D
287 * input register files, this is the stride between two 1D
288 * arrays.
289 */
290 #define TGSI_EXEC_MAX_INPUT_ATTRIBS 32
291
292 /* The maximum number of bytes per constant buffer.
293 */
294 #define TGSI_EXEC_MAX_CONST_BUFFER_SIZE (4096 * sizeof(float[4]))
295
296 /* The maximum number of vertices per primitive */
297 #define TGSI_MAX_PRIM_VERTICES 6
298
299 /* The maximum number of primitives to be generated */
300 #define TGSI_MAX_PRIMITIVES 64
301
302 /* The maximum total number of vertices */
303 #define TGSI_MAX_TOTAL_VERTICES (TGSI_MAX_PRIM_VERTICES * TGSI_MAX_PRIMITIVES * PIPE_MAX_ATTRIBS)
304
305 #define TGSI_MAX_MISC_INPUTS 8
306
307 /** function call/activation record */
308 struct tgsi_call_record
309 {
310 uint CondStackTop;
311 uint LoopStackTop;
312 uint ContStackTop;
313 int SwitchStackTop;
314 int BreakStackTop;
315 uint ReturnAddr;
316 };
317
318
319 /* Switch-case block state. */
320 struct tgsi_switch_record {
321 uint mask; /**< execution mask */
322 union tgsi_exec_channel selector; /**< a value case statements are compared to */
323 uint defaultMask; /**< non-execute mask for default case */
324 };
325
326
327 enum tgsi_break_type {
328 TGSI_EXEC_BREAK_INSIDE_LOOP,
329 TGSI_EXEC_BREAK_INSIDE_SWITCH
330 };
331
332
333 #define TGSI_EXEC_MAX_BREAK_STACK (TGSI_EXEC_MAX_LOOP_NESTING + TGSI_EXEC_MAX_SWITCH_NESTING)
334
335
336 /**
337 * Run-time virtual machine state for executing TGSI shader.
338 */
339 struct tgsi_exec_machine
340 {
341 /* Total = program temporaries + internal temporaries
342 */
343 struct tgsi_exec_vector Temps[TGSI_EXEC_NUM_TEMPS +
344 TGSI_EXEC_NUM_TEMP_EXTRAS];
345
346 float Imms[TGSI_EXEC_NUM_IMMEDIATES][4];
347
348 float ImmArray[TGSI_EXEC_NUM_IMMEDIATES][4];
349
350 struct tgsi_exec_vector *Inputs;
351 struct tgsi_exec_vector *Outputs;
352
353 /* System values */
354 unsigned SysSemanticToIndex[TGSI_SEMANTIC_COUNT];
355 struct tgsi_exec_vector SystemValue[TGSI_MAX_MISC_INPUTS];
356
357 struct tgsi_exec_vector *Addrs;
358
359 struct tgsi_sampler *Sampler;
360
361 struct tgsi_image *Image;
362 struct tgsi_buffer *Buffer;
363 unsigned ImmLimit;
364
365 const void *Consts[PIPE_MAX_CONSTANT_BUFFERS];
366 unsigned ConstsSize[PIPE_MAX_CONSTANT_BUFFERS];
367
368 const struct tgsi_token *Tokens; /**< Declarations, instructions */
369 enum pipe_shader_type ShaderType; /**< PIPE_SHADER_x */
370
371 /* GEOMETRY processor only. */
372 unsigned *Primitives;
373 unsigned NumOutputs;
374 unsigned MaxGeometryShaderOutputs;
375 unsigned MaxOutputVertices;
376
377 /* FRAGMENT processor only. */
378 const struct tgsi_interp_coef *InterpCoefs;
379 struct tgsi_exec_vector QuadPos;
380 float Face; /**< +1 if front facing, -1 if back facing */
381 bool flatshade_color;
382
383 /* Compute Only */
384 void *LocalMem;
385 unsigned LocalMemSize;
386
387 /* See GLSL 4.50 specification for definition of helper invocations */
388 uint NonHelperMask; /**< non-helpers */
389 /* Conditional execution masks */
390 uint CondMask; /**< For IF/ELSE/ENDIF */
391 uint LoopMask; /**< For BGNLOOP/ENDLOOP */
392 uint ContMask; /**< For loop CONT statements */
393 uint FuncMask; /**< For function calls */
394 uint ExecMask; /**< = CondMask & LoopMask */
395
396 /* Current switch-case state. */
397 struct tgsi_switch_record Switch;
398
399 /* Current break type. */
400 enum tgsi_break_type BreakType;
401
402 /** Condition mask stack (for nested conditionals) */
403 uint CondStack[TGSI_EXEC_MAX_COND_NESTING];
404 int CondStackTop;
405
406 /** Loop mask stack (for nested loops) */
407 uint LoopStack[TGSI_EXEC_MAX_LOOP_NESTING];
408 int LoopStackTop;
409
410 /** Loop label stack */
411 uint LoopLabelStack[TGSI_EXEC_MAX_LOOP_NESTING];
412 int LoopLabelStackTop;
413
414 /** Loop continue mask stack (see comments in tgsi_exec.c) */
415 uint ContStack[TGSI_EXEC_MAX_LOOP_NESTING];
416 int ContStackTop;
417
418 /** Switch case stack */
419 struct tgsi_switch_record SwitchStack[TGSI_EXEC_MAX_SWITCH_NESTING];
420 int SwitchStackTop;
421
422 enum tgsi_break_type BreakStack[TGSI_EXEC_MAX_BREAK_STACK];
423 int BreakStackTop;
424
425 /** Function execution mask stack (for executing subroutine code) */
426 uint FuncStack[TGSI_EXEC_MAX_CALL_NESTING];
427 int FuncStackTop;
428
429 /** Function call stack for saving/restoring the program counter */
430 struct tgsi_call_record CallStack[TGSI_EXEC_MAX_CALL_NESTING];
431 int CallStackTop;
432
433 struct tgsi_full_instruction *Instructions;
434 uint NumInstructions;
435
436 struct tgsi_full_declaration *Declarations;
437 uint NumDeclarations;
438
439 struct tgsi_declaration_sampler_view
440 SamplerViews[PIPE_MAX_SHADER_SAMPLER_VIEWS];
441
442 boolean UsedGeometryShader;
443
444 int pc;
445 };
446
447 struct tgsi_exec_machine *
448 tgsi_exec_machine_create(enum pipe_shader_type shader_type);
449
450 void
451 tgsi_exec_machine_destroy(struct tgsi_exec_machine *mach);
452
453
454 void
455 tgsi_exec_machine_bind_shader(
456 struct tgsi_exec_machine *mach,
457 const struct tgsi_token *tokens,
458 struct tgsi_sampler *sampler,
459 struct tgsi_image *image,
460 struct tgsi_buffer *buffer);
461
462 uint
463 tgsi_exec_machine_run(
464 struct tgsi_exec_machine *mach, int start_pc );
465
466
467 void
468 tgsi_exec_machine_free_data(struct tgsi_exec_machine *mach);
469
470
471 boolean
472 tgsi_check_soa_dependencies(const struct tgsi_full_instruction *inst);
473
474
475 extern void
476 tgsi_exec_set_constant_buffers(struct tgsi_exec_machine *mach,
477 unsigned num_bufs,
478 const void **bufs,
479 const unsigned *buf_sizes);
480
481
482 static inline int
483 tgsi_exec_get_shader_param(enum pipe_shader_cap param)
484 {
485 switch(param) {
486 case PIPE_SHADER_CAP_MAX_INSTRUCTIONS:
487 case PIPE_SHADER_CAP_MAX_ALU_INSTRUCTIONS:
488 case PIPE_SHADER_CAP_MAX_TEX_INSTRUCTIONS:
489 case PIPE_SHADER_CAP_MAX_TEX_INDIRECTIONS:
490 return INT_MAX;
491 case PIPE_SHADER_CAP_MAX_CONTROL_FLOW_DEPTH:
492 return TGSI_EXEC_MAX_NESTING;
493 case PIPE_SHADER_CAP_MAX_INPUTS:
494 return TGSI_EXEC_MAX_INPUT_ATTRIBS;
495 case PIPE_SHADER_CAP_MAX_OUTPUTS:
496 return 32;
497 case PIPE_SHADER_CAP_MAX_CONST_BUFFER_SIZE:
498 return TGSI_EXEC_MAX_CONST_BUFFER_SIZE;
499 case PIPE_SHADER_CAP_MAX_CONST_BUFFERS:
500 return PIPE_MAX_CONSTANT_BUFFERS;
501 case PIPE_SHADER_CAP_MAX_TEMPS:
502 return TGSI_EXEC_NUM_TEMPS;
503 case PIPE_SHADER_CAP_TGSI_CONT_SUPPORTED:
504 return 1;
505 case PIPE_SHADER_CAP_INDIRECT_INPUT_ADDR:
506 case PIPE_SHADER_CAP_INDIRECT_OUTPUT_ADDR:
507 case PIPE_SHADER_CAP_INDIRECT_TEMP_ADDR:
508 case PIPE_SHADER_CAP_INDIRECT_CONST_ADDR:
509 return 1;
510 case PIPE_SHADER_CAP_SUBROUTINES:
511 return 1;
512 case PIPE_SHADER_CAP_INTEGERS:
513 return 1;
514 case PIPE_SHADER_CAP_FP16:
515 return 0;
516 case PIPE_SHADER_CAP_MAX_TEXTURE_SAMPLERS:
517 return PIPE_MAX_SAMPLERS;
518 case PIPE_SHADER_CAP_MAX_SAMPLER_VIEWS:
519 return PIPE_MAX_SHADER_SAMPLER_VIEWS;
520 case PIPE_SHADER_CAP_PREFERRED_IR:
521 return PIPE_SHADER_IR_TGSI;
522 case PIPE_SHADER_CAP_SUPPORTED_IRS:
523 return 1 << PIPE_SHADER_IR_TGSI;
524 case PIPE_SHADER_CAP_TGSI_SQRT_SUPPORTED:
525 return 1;
526 case PIPE_SHADER_CAP_TGSI_DFRACEXP_DLDEXP_SUPPORTED:
527 case PIPE_SHADER_CAP_TGSI_ANY_INOUT_DECL_RANGE:
528 return 1;
529 case PIPE_SHADER_CAP_TGSI_DROUND_SUPPORTED:
530 case PIPE_SHADER_CAP_TGSI_FMA_SUPPORTED:
531 case PIPE_SHADER_CAP_LOWER_IF_THRESHOLD:
532 case PIPE_SHADER_CAP_TGSI_SKIP_MERGE_REGISTERS:
533 return 0;
534 case PIPE_SHADER_CAP_MAX_SHADER_BUFFERS:
535 return PIPE_MAX_SHADER_BUFFERS;
536 case PIPE_SHADER_CAP_MAX_SHADER_IMAGES:
537 return PIPE_MAX_SHADER_IMAGES;
538
539 case PIPE_SHADER_CAP_MAX_UNROLL_ITERATIONS_HINT:
540 return 32;
541 }
542 /* if we get here, we missed a shader cap above (and should have seen
543 * a compiler warning.)
544 */
545 return 0;
546 }
547
548 #if defined __cplusplus
549 } /* extern "C" */
550 #endif
551
552 #endif /* TGSI_EXEC_H */