30dc9f4594e29a1dfc3b3fa66e89c36bfdcdb482
2 ".emtcode REVISION 0x0a\n"
3 ".emtcode FRAGMENT_PROGRAM 0x01\n"
4 ".emtcode VERTEX_PROGRAM 0x02\n"
5 ".emtcode OPTION 0x01\n"
6 ".emtcode INSTRUCTION 0x02\n"
7 ".emtcode DECLARATION 0x03\n"
9 ".emtcode ARB_PRECISION_HINT_FASTEST 0x00\n"
10 ".emtcode ARB_PRECISION_HINT_NICEST 0x01\n"
11 ".emtcode ARB_FOG_EXP 0x02\n"
12 ".emtcode ARB_FOG_EXP2 0x03\n"
13 ".emtcode ARB_FOG_LINEAR 0x04\n"
14 ".emtcode ARB_POSITION_INVARIANT 0x05\n"
15 ".emtcode ARB_FRAGMENT_PROGRAM_SHADOW 0x06\n"
16 ".emtcode ARB_DRAW_BUFFERS 0x07\n"
17 ".emtcode MESA_TEXTURE_ARRAY 0x08\n"
18 ".emtcode OP_ALU_INST 0x00\n"
19 ".emtcode OP_TEX_INST 0x01\n"
20 ".emtcode OP_ALU_VECTOR 0x00\n"
21 ".emtcode OP_ALU_SCALAR 0x01\n"
22 ".emtcode OP_ALU_BINSC 0x02\n"
23 ".emtcode OP_ALU_BIN 0x03\n"
24 ".emtcode OP_ALU_TRI 0x04\n"
25 ".emtcode OP_ALU_SWZ 0x05\n"
26 ".emtcode OP_TEX_SAMPLE 0x06\n"
27 ".emtcode OP_TEX_KIL 0x07\n"
28 ".emtcode OP_ALU_ARL 0x08\n"
29 ".emtcode OP_ABS 0x00\n"
30 ".emtcode OP_ABS_SAT 0x1B\n"
31 ".emtcode OP_FLR 0x09\n"
32 ".emtcode OP_FLR_SAT 0x26\n"
33 ".emtcode OP_FRC 0x0A\n"
34 ".emtcode OP_FRC_SAT 0x27\n"
35 ".emtcode OP_LIT 0x0C\n"
36 ".emtcode OP_LIT_SAT 0x2A\n"
37 ".emtcode OP_MOV 0x11\n"
38 ".emtcode OP_MOV_SAT 0x30\n"
39 ".emtcode OP_COS 0x1F\n"
40 ".emtcode OP_COS_SAT 0x20\n"
41 ".emtcode OP_EX2 0x07\n"
42 ".emtcode OP_EX2_SAT 0x25\n"
43 ".emtcode OP_LG2 0x0B\n"
44 ".emtcode OP_LG2_SAT 0x29\n"
45 ".emtcode OP_RCP 0x14\n"
46 ".emtcode OP_RCP_SAT 0x33\n"
47 ".emtcode OP_RSQ 0x15\n"
48 ".emtcode OP_RSQ_SAT 0x34\n"
49 ".emtcode OP_SIN 0x38\n"
50 ".emtcode OP_SIN_SAT 0x39\n"
51 ".emtcode OP_SCS 0x35\n"
52 ".emtcode OP_SCS_SAT 0x36\n"
53 ".emtcode OP_POW 0x13\n"
54 ".emtcode OP_POW_SAT 0x32\n"
55 ".emtcode OP_ADD 0x01\n"
56 ".emtcode OP_ADD_SAT 0x1C\n"
57 ".emtcode OP_DP3 0x03\n"
58 ".emtcode OP_DP3_SAT 0x21\n"
59 ".emtcode OP_DP4 0x04\n"
60 ".emtcode OP_DP4_SAT 0x22\n"
61 ".emtcode OP_DPH 0x05\n"
62 ".emtcode OP_DPH_SAT 0x23\n"
63 ".emtcode OP_DST 0x06\n"
64 ".emtcode OP_DST_SAT 0x24\n"
65 ".emtcode OP_MAX 0x0F\n"
66 ".emtcode OP_MAX_SAT 0x2E\n"
67 ".emtcode OP_MIN 0x10\n"
68 ".emtcode OP_MIN_SAT 0x2F\n"
69 ".emtcode OP_MUL 0x12\n"
70 ".emtcode OP_MUL_SAT 0x31\n"
71 ".emtcode OP_SGE 0x16\n"
72 ".emtcode OP_SGE_SAT 0x37\n"
73 ".emtcode OP_SLT 0x17\n"
74 ".emtcode OP_SLT_SAT 0x3A\n"
75 ".emtcode OP_SUB 0x18\n"
76 ".emtcode OP_SUB_SAT 0x3B\n"
77 ".emtcode OP_XPD 0x1A\n"
78 ".emtcode OP_XPD_SAT 0x43\n"
79 ".emtcode OP_CMP 0x1D\n"
80 ".emtcode OP_CMP_SAT 0x1E\n"
81 ".emtcode OP_LRP 0x2B\n"
82 ".emtcode OP_LRP_SAT 0x2C\n"
83 ".emtcode OP_MAD 0x0E\n"
84 ".emtcode OP_MAD_SAT 0x2D\n"
85 ".emtcode OP_SWZ 0x19\n"
86 ".emtcode OP_SWZ_SAT 0x3C\n"
87 ".emtcode OP_TEX 0x3D\n"
88 ".emtcode OP_TEX_SAT 0x3E\n"
89 ".emtcode OP_TXB 0x3F\n"
90 ".emtcode OP_TXB_SAT 0x40\n"
91 ".emtcode OP_TXP 0x41\n"
92 ".emtcode OP_TXP_SAT 0x42\n"
93 ".emtcode OP_KIL 0x28\n"
94 ".emtcode OP_ARL 0x02\n"
95 ".emtcode OP_EXP 0x08\n"
96 ".emtcode OP_LOG 0x0D\n"
97 ".emtcode FRAGMENT_ATTRIB_COLOR 0x01\n"
98 ".emtcode FRAGMENT_ATTRIB_TEXCOORD 0x02\n"
99 ".emtcode FRAGMENT_ATTRIB_FOGCOORD 0x03\n"
100 ".emtcode FRAGMENT_ATTRIB_POSITION 0x04\n"
101 ".emtcode VERTEX_ATTRIB_POSITION 0x01\n"
102 ".emtcode VERTEX_ATTRIB_WEIGHT 0x02\n"
103 ".emtcode VERTEX_ATTRIB_NORMAL 0x03\n"
104 ".emtcode VERTEX_ATTRIB_COLOR 0x04\n"
105 ".emtcode VERTEX_ATTRIB_FOGCOORD 0x05\n"
106 ".emtcode VERTEX_ATTRIB_TEXCOORD 0x06\n"
107 ".emtcode VERTEX_ATTRIB_MATRIXINDEX 0x07\n"
108 ".emtcode VERTEX_ATTRIB_GENERIC 0x08\n"
109 ".emtcode FRAGMENT_RESULT_COLOR 0x01\n"
110 ".emtcode FRAGMENT_RESULT_DEPTH 0x02\n"
111 ".emtcode VERTEX_RESULT_POSITION 0x01\n"
112 ".emtcode VERTEX_RESULT_COLOR 0x02\n"
113 ".emtcode VERTEX_RESULT_FOGCOORD 0x03\n"
114 ".emtcode VERTEX_RESULT_POINTSIZE 0x04\n"
115 ".emtcode VERTEX_RESULT_TEXCOORD 0x05\n"
116 ".emtcode TEXTARGET_1D 0x01\n"
117 ".emtcode TEXTARGET_2D 0x02\n"
118 ".emtcode TEXTARGET_3D 0x03\n"
119 ".emtcode TEXTARGET_RECT 0x04\n"
120 ".emtcode TEXTARGET_CUBE 0x05\n"
121 ".emtcode TEXTARGET_SHADOW1D 0x06\n"
122 ".emtcode TEXTARGET_SHADOW2D 0x07\n"
123 ".emtcode TEXTARGET_SHADOWRECT 0x08\n"
124 ".emtcode TEXTARGET_1D_ARRAY 0x09\n"
125 ".emtcode TEXTARGET_2D_ARRAY 0x0A\n"
126 ".emtcode FACE_FRONT 0x00\n"
127 ".emtcode FACE_BACK 0x01\n"
128 ".emtcode COLOR_PRIMARY 0x00\n"
129 ".emtcode COLOR_SECONDARY 0x01\n"
130 ".emtcode COMPONENT_X 0x00\n"
131 ".emtcode COMPONENT_Y 0x01\n"
132 ".emtcode COMPONENT_Z 0x02\n"
133 ".emtcode COMPONENT_W 0x03\n"
134 ".emtcode COMPONENT_0 0x04\n"
135 ".emtcode COMPONENT_1 0x05\n"
136 ".emtcode ARRAY_INDEX_ABSOLUTE 0x00\n"
137 ".emtcode ARRAY_INDEX_RELATIVE 0x01\n"
138 ".emtcode MATRIX_MODELVIEW 0x01\n"
139 ".emtcode MATRIX_PROJECTION 0x02\n"
140 ".emtcode MATRIX_MVP 0x03\n"
141 ".emtcode MATRIX_TEXTURE 0x04\n"
142 ".emtcode MATRIX_PALETTE 0x05\n"
143 ".emtcode MATRIX_PROGRAM 0x06\n"
144 ".emtcode MATRIX_MODIFIER_IDENTITY 0x00\n"
145 ".emtcode MATRIX_MODIFIER_INVERSE 0x01\n"
146 ".emtcode MATRIX_MODIFIER_TRANSPOSE 0x02\n"
147 ".emtcode MATRIX_MODIFIER_INVTRANS 0x03\n"
148 ".emtcode CONSTANT_SCALAR 0x01\n"
149 ".emtcode CONSTANT_VECTOR 0x02\n"
150 ".emtcode PROGRAM_PARAM_ENV 0x01\n"
151 ".emtcode PROGRAM_PARAM_LOCAL 0x02\n"
152 ".emtcode REGISTER_ATTRIB 0x01\n"
153 ".emtcode REGISTER_PARAM 0x02\n"
154 ".emtcode REGISTER_RESULT 0x03\n"
155 ".emtcode REGISTER_ESTABLISHED_NAME 0x04\n"
156 ".emtcode PARAM_NULL 0x00\n"
157 ".emtcode PARAM_ARRAY_ELEMENT 0x01\n"
158 ".emtcode PARAM_STATE_ELEMENT 0x02\n"
159 ".emtcode PARAM_PROGRAM_ELEMENT 0x03\n"
160 ".emtcode PARAM_PROGRAM_ELEMENTS 0x04\n"
161 ".emtcode PARAM_CONSTANT 0x05\n"
162 ".emtcode STATE_MATERIAL 0x01\n"
163 ".emtcode STATE_LIGHT 0x02\n"
164 ".emtcode STATE_LIGHT_MODEL 0x03\n"
165 ".emtcode STATE_LIGHT_PROD 0x04\n"
166 ".emtcode STATE_FOG 0x05\n"
167 ".emtcode STATE_MATRIX_ROWS 0x06\n"
168 ".emtcode STATE_TEX_ENV 0x07\n"
169 ".emtcode STATE_DEPTH 0x08\n"
170 ".emtcode STATE_TEX_GEN 0x09\n"
171 ".emtcode STATE_CLIP_PLANE 0x0A\n"
172 ".emtcode STATE_POINT 0x0B\n"
173 ".emtcode MATERIAL_AMBIENT 0x01\n"
174 ".emtcode MATERIAL_DIFFUSE 0x02\n"
175 ".emtcode MATERIAL_SPECULAR 0x03\n"
176 ".emtcode MATERIAL_EMISSION 0x04\n"
177 ".emtcode MATERIAL_SHININESS 0x05\n"
178 ".emtcode LIGHT_AMBIENT 0x01\n"
179 ".emtcode LIGHT_DIFFUSE 0x02\n"
180 ".emtcode LIGHT_SPECULAR 0x03\n"
181 ".emtcode LIGHT_POSITION 0x04\n"
182 ".emtcode LIGHT_ATTENUATION 0x05\n"
183 ".emtcode LIGHT_HALF 0x06\n"
184 ".emtcode LIGHT_SPOT_DIRECTION 0x07\n"
185 ".emtcode LIGHT_MODEL_AMBIENT 0x01\n"
186 ".emtcode LIGHT_MODEL_SCENECOLOR 0x02\n"
187 ".emtcode LIGHT_PROD_AMBIENT 0x01\n"
188 ".emtcode LIGHT_PROD_DIFFUSE 0x02\n"
189 ".emtcode LIGHT_PROD_SPECULAR 0x03\n"
190 ".emtcode TEX_ENV_COLOR 0x01\n"
191 ".emtcode TEX_GEN_EYE 0x01\n"
192 ".emtcode TEX_GEN_OBJECT 0x02\n"
193 ".emtcode FOG_COLOR 0x01\n"
194 ".emtcode FOG_PARAMS 0x02\n"
195 ".emtcode DEPTH_RANGE 0x01\n"
196 ".emtcode POINT_SIZE 0x01\n"
197 ".emtcode POINT_ATTENUATION 0x02\n"
198 ".emtcode ATTRIB 0x01\n"
199 ".emtcode PARAM 0x02\n"
200 ".emtcode TEMP 0x03\n"
201 ".emtcode OUTPUT 0x04\n"
202 ".emtcode ALIAS 0x05\n"
203 ".emtcode ADDRESS 0x06\n"
204 ".errtext UNKNOWN_PROGRAM_SIGNATURE \"1001: '$e_signature$': unknown program signature\"\n"
205 ".errtext MISSING_END_OR_INVALID_STATEMENT \"1002: '$e_statement$': invalid statement\"\n"
206 ".errtext CODE_AFTER_END \"1003: '$e_statement$': code after 'END' keyword\"\n"
207 ".errtext INVALID_PROGRAM_OPTION \"1004: '$e_identifier$': invalid program option\"\n"
208 ".errtext EXT_SWIZ_COMP_EXPECTED \"1005: extended swizzle component expected but '$e_token$' found\"\n"
209 ".errtext TEX_TARGET_EXPECTED \"1006: texture target expected but '$e_token$' found\"\n"
210 ".errtext TEXTURE_EXPECTED \"1007: 'texture' expected but '$e_identifier$' found\"\n"
211 ".errtext SOURCE_REGISTER_EXPECTED \"1008: source register expected but '$e_token$' found\"\n"
212 ".errtext DESTINATION_REGISTER_EXPECTED \"1009: destination register expected but '$e_token$' found\"\n"
213 ".errtext INVALID_ADDRESS_COMPONENT \"1010: '$e_identifier$': invalid address component\"\n"
214 ".errtext INVALID_ADDRESS_WRITEMASK \"1011: '$e_identifier$': invalid address writemask\"\n"
215 ".errtext INVALID_COMPONENT \"1012: '$e_charordigit$': invalid component\"\n"
216 ".errtext INVALID_SUFFIX \"1013: '$e_identifier$': invalid suffix\"\n"
217 ".errtext INVALID_WRITEMASK \"1014: '$e_identifier$': invalid writemask\"\n"
218 ".errtext FRAGMENT_EXPECTED \"1015: 'fragment' expected but '$e_identifier$' found\"\n"
219 ".errtext VERTEX_EXPECTED \"1016: 'vertex' expected but '$e_identifier$' found\"\n"
220 ".errtext INVALID_FRAGMENT_PROPERTY \"1017: '$e_identifier$': invalid fragment property\"\n"
221 ".errtext INVALID_VERTEX_PROPERTY \"1018: '$e_identifier$': invalid vertex property\"\n"
222 ".errtext INVALID_STATE_PROPERTY \"1019: '$e_identifier$': invalid state property\"\n"
223 ".errtext INVALID_MATERIAL_PROPERTY \"1020: '$e_identifier$': invalid material property\"\n"
224 ".errtext INVALID_LIGHT_PROPERTY \"1021: '$e_identifier$': invalid light property\"\n"
225 ".errtext INVALID_SPOT_PROPERTY \"1022: '$e_identifier$': invalid spot property\"\n"
226 ".errtext INVALID_LIGHTMODEL_PROPERTY \"1023: '$e_identifier$': invalid light model property\"\n"
227 ".errtext INVALID_LIGHTPROD_PROPERTY \"1024: '$e_identifier$': invalid light product property\"\n"
228 ".errtext INVALID_TEXENV_PROPERTY \"1025: '$e_identifier$': invalid texture environment property\"\n"
229 ".errtext INVALID_TEXGEN_PROPERTY \"1026: '$e_identifier$': invalid texture generating property\"\n"
230 ".errtext INVALID_TEXGEN_COORD \"1027: '$e_identifier$': invalid texture generating coord\"\n"
231 ".errtext INVALID_FOG_PROPERTY \"1028: '$e_identifier$': invalid fog property\"\n"
232 ".errtext INVALID_DEPTH_PROPERTY \"1029: '$e_identifier$': invalid depth property\"\n"
233 ".errtext INVALID_CLIPPLANE_PROPERTY \"1030: '$e_identifier$': invalid clip plane property\"\n"
234 ".errtext INVALID_POINT_PROPERTY \"1031: '$e_identifier$': invalid point property\"\n"
235 ".errtext MATRIX_ROW_SELECTOR_OR_MODIFIER_EXPECTED \"1032: matrix row selector or modifier expected but '$e_token$' found\"\n"
236 ".errtext INVALID_MATRIX_NAME \"1033: '$e_identifier$': invalid matrix name\"\n"
237 ".errtext INVALID_PROGRAM_PROPERTY \"1034: '$e_identifier$': invalid program property\"\n"
238 ".errtext RESULT_EXPECTED \"1035: 'result' expected but '$e_token$' found\"\n"
239 ".errtext INVALID_RESULT_PROPERTY \"1036: '$e_identifier$': invalid result property\"\n"
240 ".errtext INVALID_FACE_PROPERTY \"1037: '$e_identifier$': invalid face property\"\n"
241 ".errtext INVALID_COLOR_PROPERTY \"1038: '$e_identifier$': invalid color property\"\n"
242 ".errtext IDENTIFIER_EXPECTED \"1039: identifier expected but '$e_token$' found\"\n"
243 ".errtext RESERVED_KEYWORD \"1040: use of reserved keyword as an identifier\"\n"
244 ".errtext INTEGER_EXPECTED \"1041: integer value expected but '$e_token$' found\"\n"
245 ".errtext MISSING_SEMICOLON \"1042: ';' expected but '$e_token$' found\"\n"
246 ".errtext MISSING_COMMA \"1043: ',' expected but '$e_token$' found\"\n"
247 ".errtext MISSING_LBRACKET \"1044: '[' expected but '$e_token$' found\"\n"
248 ".errtext MISSING_RBRACKET \"1045: ']' expected but '$e_token$' found\"\n"
249 ".errtext MISSING_DOT \"1046: '.' expected but '$e_token$' found\"\n"
250 ".errtext MISSING_EQUAL \"1047: '=' expected but '$e_token$' found\"\n"
251 ".errtext MISSING_LBRACE \"1048: '{' expected but '$e_token$' found\"\n"
252 ".errtext MISSING_RBRACE \"1049: '}' expected but '$e_token$' found\"\n"
253 ".errtext MISSING_DOTDOT \"1050: '..' expected but '$e_token$' found\"\n"
254 ".errtext MISSING_FRACTION_OR_EXPONENT \"1051: missing fraction part or exponent\"\n"
255 ".errtext MISSING_DOT_OR_EXPONENT \"1052: missing '.' or exponent\"\n"
256 ".errtext EXPONENT_VALUE_EXPECTED \"1053: exponent value expected\"\n"
257 ".errtext INTEGER_OUT_OF_RANGE \"1054: integer value out of range\"\n"
258 ".errtext OPERATION_NEEDS_DESTINATION_VARIABLE \"1055: operation needs destination variable\"\n"
259 ".errtext OPERATION_NEEDS_SOURCE_VARIABLE \"1056: operation needs source variable\"\n"
260 ".errtext ADDRESS_REGISTER_EXPECTED \"1057: address register expected but '$e_token$' found\"\n"
261 ".errtext ADDRESS_REGISTER_OR_INTEGER_EXPECTED \"1058: address register or integer literal expected but '$e_token$' found\"\n"
262 ".regbyte vertex_blend 0x00\n"
263 ".regbyte matrix_palette 0x00\n"
264 ".regbyte point_parameters 0x00\n"
265 ".regbyte secondary_color 0x00\n"
266 ".regbyte fog_coord 0x00\n"
267 ".regbyte texture_rectangle 0x00\n"
268 ".regbyte fragment_program_shadow 0x00\n"
269 ".regbyte draw_buffers 0x00\n"
270 ".regbyte texture_array 0x00\n"
271 ".regbyte ARB_precision_hint_fastest 0x00\n"
272 ".regbyte ARB_precision_hint_nicest 0x00\n"
273 ".regbyte ARB_fog_exp 0x00\n"
274 ".regbyte ARB_fog_exp2 0x00\n"
275 ".regbyte ARB_fog_linear 0x00\n"
276 ".regbyte ARB_position_invariant 0x00\n"
277 ".regbyte ARB_fragment_program_shadow 0x00\n"
278 ".regbyte ARB_draw_buffers 0x00\n"
279 ".regbyte MESA_texture_array 0x00\n"
280 ".regbyte program_target 0x00\n"
282 " programs .error UNKNOWN_PROGRAM_SIGNATURE .emit REVISION;\n"
284 " .if (program_target == 0x10) frag_program_1_0 .emit FRAGMENT_PROGRAM .emit 0x01 .emit 0x00 .or\n"
285 " .if (program_target == 0x20) vert_program_1_0 .emit VERTEX_PROGRAM .emit 0x01 .emit 0x00;\n"
287 " '!' .and '!' .and 'A' .and 'R' .and 'B' .and 'f' .and 'p' .and '1' .and '.' .and '0' .and\n"
288 " optional_space .and fp_optionSequence .and fp_statementSequence .and\n"
289 " \"END\" .error MISSING_END_OR_INVALID_STATEMENT .emit END .and optional_space .and\n"
290 " '\\0' .error CODE_AFTER_END;\n"
292 " '!' .and '!' .and 'A' .and 'R' .and 'B' .and 'v' .and 'p' .and '1' .and '.' .and '0' .and\n"
293 " optional_space .and vp_optionSequence .and vp_statementSequence .and\n"
294 " \"END\" .error MISSING_END_OR_INVALID_STATEMENT .emit END .and optional_space .and\n"
295 " '\\0' .error CODE_AFTER_END;\n"
296 "fp_optionSequence\n"
297 " .loop fp_option;\n"
298 "vp_optionSequence\n"
299 " .loop vp_option;\n"
301 " \"OPTION\" .emit OPTION .and space .error IDENTIFIER_EXPECTED .and\n"
302 " fp_optionString .error INVALID_PROGRAM_OPTION .and semicolon;\n"
304 " \"OPTION\" .emit OPTION .and space .error IDENTIFIER_EXPECTED .and\n"
305 " vp_optionString .error INVALID_PROGRAM_OPTION .and semicolon;\n"
307 " .if (ARB_precision_hint_nicest == 0x00) \"ARB_precision_hint_fastest\"\n"
308 " .emit ARB_PRECISION_HINT_FASTEST .load ARB_precision_hint_fastest 0x01 .or\n"
309 " .if (ARB_precision_hint_fastest == 0x00) \"ARB_precision_hint_nicest\"\n"
310 " .emit ARB_PRECISION_HINT_NICEST .load ARB_precision_hint_nicest 0x01 .or\n"
311 " fp_ARB_fog_exp .emit ARB_FOG_EXP .load ARB_fog_exp 0x01 .or\n"
312 " fp_ARB_fog_exp2 .emit ARB_FOG_EXP2 .load ARB_fog_exp2 0x01 .or\n"
313 " fp_ARB_fog_linear .emit ARB_FOG_LINEAR .load ARB_fog_linear 0x01 .or\n"
314 " .if (fragment_program_shadow != 0x00) \"ARB_fragment_program_shadow\"\n"
315 " .emit ARB_FRAGMENT_PROGRAM_SHADOW .load ARB_fragment_program_shadow 0x01 .or\n"
316 " .if (draw_buffers != 0x00) \"ARB_draw_buffers\" .emit ARB_DRAW_BUFFERS\n"
317 " .load ARB_draw_buffers 0x01 .or\n"
318 " .if (texture_array != 0x00) \"MESA_texture_array\" .emit MESA_TEXTURE_ARRAY\n"
319 " .load MESA_texture_array 0x01;\n"
321 " \"ARB_position_invariant\" .emit ARB_POSITION_INVARIANT .load ARB_position_invariant 0x01;\n"
323 " .if (ARB_fog_exp2 == 0x00) .true .and .if (ARB_fog_linear == 0x00) \"ARB_fog_exp\";\n"
325 " .if (ARB_fog_exp == 0x00) .true .and .if (ARB_fog_linear == 0x00) \"ARB_fog_exp2\";\n"
326 "fp_ARB_fog_linear\n"
327 " .if (ARB_fog_exp == 0x00) .true .and .if (ARB_fog_exp2 == 0x00) \"ARB_fog_linear\";\n"
328 "fp_statementSequence\n"
329 " .loop fp_statement;\n"
330 "vp_statementSequence\n"
331 " .loop vp_statement;\n"
333 " fp_statement_1 .or fp_statement_2;\n"
335 " vp_statement_1 .or vp_statement_2;\n"
337 " fp_instruction .emit INSTRUCTION .emit $ .and semicolon;\n"
339 " fp_namingStatement .emit DECLARATION .and semicolon;\n"
341 " vp_instruction .emit INSTRUCTION .emit $ .and semicolon;\n"
343 " vp_namingStatement .emit DECLARATION .and semicolon;\n"
345 " ALUInstruction .emit OP_ALU_INST .or\n"
346 " TexInstruction .emit OP_TEX_INST;\n"
348 " ARL_instruction .emit OP_ALU_ARL .or\n"
349 " vp_VECTORop_instruction .emit OP_ALU_VECTOR .or\n"
350 " vp_SCALARop_instruction .emit OP_ALU_SCALAR .or\n"
351 " vp_BINSCop_instruction .emit OP_ALU_BINSC .or\n"
352 " vp_BINop_instruction .emit OP_ALU_BIN .or\n"
353 " vp_TRIop_instruction .emit OP_ALU_TRI .or\n"
354 " vp_SWZ_instruction .emit OP_ALU_SWZ;\n"
356 " fp_VECTORop_instruction .emit OP_ALU_VECTOR .or\n"
357 " fp_SCALARop_instruction .emit OP_ALU_SCALAR .or\n"
358 " fp_BINSCop_instruction .emit OP_ALU_BINSC .or\n"
359 " fp_BINop_instruction .emit OP_ALU_BIN .or\n"
360 " fp_TRIop_instruction .emit OP_ALU_TRI .or\n"
361 " fp_SWZ_instruction .emit OP_ALU_SWZ;\n"
363 " SAMPLE_instruction .emit OP_TEX_SAMPLE .or\n"
364 " KIL_instruction .emit OP_TEX_KIL;\n"
366 " \"ARL\" .emit OP_ARL .and space_dst .and maskedAddrReg .and comma .and vp_scalarSrcReg;\n"
367 "fp_VECTORop_instruction\n"
368 " fp_VECTORop .and space_dst .and fp_maskedDstReg .and comma .and vectorSrcReg;\n"
369 "vp_VECTORop_instruction\n"
370 " vp_VECTORop .and space_dst .and vp_maskedDstReg .and comma .and swizzleSrcReg;\n"
372 " \"ABS\" .emit OP_ABS .or \"ABS_SAT\" .emit OP_ABS_SAT .or\n"
373 " \"FLR\" .emit OP_FLR .or \"FLR_SAT\" .emit OP_FLR_SAT .or\n"
374 " \"FRC\" .emit OP_FRC .or \"FRC_SAT\" .emit OP_FRC_SAT .or\n"
375 " \"LIT\" .emit OP_LIT .or \"LIT_SAT\" .emit OP_LIT_SAT .or\n"
376 " \"MOV\" .emit OP_MOV .or \"MOV_SAT\" .emit OP_MOV_SAT;\n"
378 " \"ABS\" .emit OP_ABS .or\n"
379 " \"FLR\" .emit OP_FLR .or\n"
380 " \"FRC\" .emit OP_FRC .or\n"
381 " \"LIT\" .emit OP_LIT .or\n"
382 " \"MOV\" .emit OP_MOV;\n"
383 "fp_SCALARop_instruction\n"
384 " fp_SCALARop .and space_dst .and fp_maskedDstReg .and comma .and fp_scalarSrcReg;\n"
385 "vp_SCALARop_instruction\n"
386 " vp_SCALARop .and space_dst .and vp_maskedDstReg .and comma .and vp_scalarSrcReg;\n"
388 " \"COS\" .emit OP_COS .or \"COS_SAT\" .emit OP_COS_SAT .or\n"
389 " \"EX2\" .emit OP_EX2 .or \"EX2_SAT\" .emit OP_EX2_SAT .or\n"
390 " \"LG2\" .emit OP_LG2 .or \"LG2_SAT\" .emit OP_LG2_SAT .or\n"
391 " \"RCP\" .emit OP_RCP .or \"RCP_SAT\" .emit OP_RCP_SAT .or\n"
392 " \"RSQ\" .emit OP_RSQ .or \"RSQ_SAT\" .emit OP_RSQ_SAT .or\n"
393 " \"SIN\" .emit OP_SIN .or \"SIN_SAT\" .emit OP_SIN_SAT .or\n"
394 " \"SCS\" .emit OP_SCS .or \"SCS_SAT\" .emit OP_SCS_SAT;\n"
396 " \"EX2\" .emit OP_EX2 .or\n"
397 " \"EXP\" .emit OP_EXP .or\n"
398 " \"LG2\" .emit OP_LG2 .or\n"
399 " \"LOG\" .emit OP_LOG .or\n"
400 " \"RCP\" .emit OP_RCP .or\n"
401 " \"RSQ\" .emit OP_RSQ;\n"
402 "fp_BINSCop_instruction\n"
403 " fp_BINSCop .and space_dst .and fp_maskedDstReg .and comma .and fp_scalarSrcReg .and comma .and\n"
404 " fp_scalarSrcReg;\n"
405 "vp_BINSCop_instruction\n"
406 " vp_BINSCop .and space_dst .and vp_maskedDstReg .and comma .and vp_scalarSrcReg .and comma .and\n"
407 " vp_scalarSrcReg;\n"
409 " \"POW\" .emit OP_POW .or \"POW_SAT\" .emit OP_POW_SAT;\n"
411 " \"POW\" .emit OP_POW;\n"
412 "fp_BINop_instruction\n"
413 " fp_BINop .and space_dst .and fp_maskedDstReg .and comma .and vectorSrcReg .and comma .and\n"
415 "vp_BINop_instruction\n"
416 " vp_BINop .and space_dst .and vp_maskedDstReg .and comma .and swizzleSrcReg .and comma .and\n"
419 " \"ADD\" .emit OP_ADD .or \"ADD_SAT\" .emit OP_ADD_SAT .or\n"
420 " \"DP3\" .emit OP_DP3 .or \"DP3_SAT\" .emit OP_DP3_SAT .or\n"
421 " \"DP4\" .emit OP_DP4 .or \"DP4_SAT\" .emit OP_DP4_SAT .or\n"
422 " \"DPH\" .emit OP_DPH .or \"DPH_SAT\" .emit OP_DPH_SAT .or\n"
423 " \"DST\" .emit OP_DST .or \"DST_SAT\" .emit OP_DST_SAT .or\n"
424 " \"MAX\" .emit OP_MAX .or \"MAX_SAT\" .emit OP_MAX_SAT .or\n"
425 " \"MIN\" .emit OP_MIN .or \"MIN_SAT\" .emit OP_MIN_SAT .or\n"
426 " \"MUL\" .emit OP_MUL .or \"MUL_SAT\" .emit OP_MUL_SAT .or\n"
427 " \"SGE\" .emit OP_SGE .or \"SGE_SAT\" .emit OP_SGE_SAT .or\n"
428 " \"SLT\" .emit OP_SLT .or \"SLT_SAT\" .emit OP_SLT_SAT .or\n"
429 " \"SUB\" .emit OP_SUB .or \"SUB_SAT\" .emit OP_SUB_SAT .or\n"
430 " \"XPD\" .emit OP_XPD .or \"XPD_SAT\" .emit OP_XPD_SAT;\n"
432 " \"ADD\" .emit OP_ADD .or\n"
433 " \"DP3\" .emit OP_DP3 .or\n"
434 " \"DP4\" .emit OP_DP4 .or\n"
435 " \"DPH\" .emit OP_DPH .or\n"
436 " \"DST\" .emit OP_DST .or\n"
437 " \"MAX\" .emit OP_MAX .or\n"
438 " \"MIN\" .emit OP_MIN .or\n"
439 " \"MUL\" .emit OP_MUL .or\n"
440 " \"SGE\" .emit OP_SGE .or\n"
441 " \"SLT\" .emit OP_SLT .or\n"
442 " \"SUB\" .emit OP_SUB .or\n"
443 " \"XPD\" .emit OP_XPD;\n"
444 "fp_TRIop_instruction\n"
445 " fp_TRIop .and space_dst .and fp_maskedDstReg .and comma .and vectorSrcReg .and comma .and\n"
446 " vectorSrcReg .and comma .and vectorSrcReg;\n"
447 "vp_TRIop_instruction\n"
448 " vp_TRIop .and space_dst .and vp_maskedDstReg .and comma .and swizzleSrcReg .and comma .and\n"
449 " swizzleSrcReg .and comma .and swizzleSrcReg;\n"
451 " \"CMP\" .emit OP_CMP .or \"CMP_SAT\" .emit OP_CMP_SAT .or\n"
452 " \"LRP\" .emit OP_LRP .or \"LRP_SAT\" .emit OP_LRP_SAT .or\n"
453 " \"MAD\" .emit OP_MAD .or \"MAD_SAT\" .emit OP_MAD_SAT;\n"
455 " \"MAD\" .emit OP_MAD;\n"
456 "fp_SWZ_instruction\n"
457 " SWZop .and space_dst .and fp_maskedDstReg .and comma .and fp_srcReg .and comma .and\n"
458 " fp_extendedSwizzle .error EXT_SWIZ_COMP_EXPECTED;\n"
459 "vp_SWZ_instruction\n"
460 " \"SWZ\" .emit OP_SWZ .and space_dst .and vp_maskedDstReg .and comma .and vp_srcReg .and comma .and\n"
461 " vp_extendedSwizzle .error EXT_SWIZ_COMP_EXPECTED;\n"
463 " \"SWZ\" .emit OP_SWZ .or \"SWZ_SAT\" .emit OP_SWZ_SAT;\n"
464 "SAMPLE_instruction\n"
465 " SAMPLEop .and space_dst .and fp_maskedDstReg .and comma .and vectorSrcReg .and comma .and\n"
466 " texImageUnit .and comma .and texTarget .error TEX_TARGET_EXPECTED;\n"
468 " \"TEX\" .emit OP_TEX .or \"TEX_SAT\" .emit OP_TEX_SAT .or\n"
469 " \"TXB\" .emit OP_TXB .or \"TXB_SAT\" .emit OP_TXB_SAT .or\n"
470 " \"TXP\" .emit OP_TXP .or \"TXP_SAT\" .emit OP_TXP_SAT;\n"
472 " \"KIL\" .emit OP_KIL .and space_src .and vectorSrcReg;\n"
474 " \"texture\" .error TEXTURE_EXPECTED .and optTexImageUnitNum;\n"
476 " \"1D\" .emit TEXTARGET_1D .or\n"
477 " \"2D\" .emit TEXTARGET_2D .or\n"
478 " \"3D\" .emit TEXTARGET_3D .or\n"
479 " .if (texture_rectangle != 0x00) \"RECT\" .emit TEXTARGET_RECT .or\n"
480 " \"CUBE\" .emit TEXTARGET_CUBE .or\n"
481 " .if (ARB_fragment_program_shadow != 0x00) shadowTarget .or\n"
482 " .if (MESA_texture_array != 0x00) \"ARRAY1D\" .emit TEXTARGET_1D_ARRAY .or\n"
483 " .if (MESA_texture_array != 0x00) \"ARRAY2D\" .emit TEXTARGET_2D_ARRAY;\n"
485 " \"SHADOW1D\" .emit TEXTARGET_SHADOW1D .or\n"
486 " \"SHADOW2D\" .emit TEXTARGET_SHADOW2D .or\n"
487 " .if (texture_rectangle != 0x00) \"SHADOWRECT\" .emit TEXTARGET_SHADOWRECT;\n"
488 "optTexImageUnitNum\n"
489 " optTexImageUnitNum_1 .or .true .emit 0x00;\n"
490 "optTexImageUnitNum_1\n"
491 " lbracket_ne .and texImageUnitNum .and rbracket;\n"
495 " optionalSign .and fp_srcReg .and fp_scalarSuffix;\n"
497 " optionalSign .and vp_srcReg .and vp_scalarSuffix;\n"
499 " optionalSign .and vp_srcReg .and swizzleSuffix;\n"
501 " optionalSign .and fp_srcReg .and optionalSuffix;\n"
503 " fp_dstReg .and fp_optionalMask;\n"
505 " vp_dstReg .and vp_optionalMask;\n"
507 " addrReg .error ADDRESS_REGISTER_EXPECTED .and addrWriteMask;\n"
508 "fp_extendedSwizzle\n"
509 " rgbaExtendedSwizzle .or xyzwExtendedSwizzle;\n"
510 "vp_extendedSwizzle\n"
511 " extSwizComp .and comma .and\n"
512 " extSwizComp .error EXT_SWIZ_COMP_EXPECTED .and comma .and\n"
513 " extSwizComp .error EXT_SWIZ_COMP_EXPECTED .and comma .and\n"
514 " extSwizComp .error EXT_SWIZ_COMP_EXPECTED;\n"
515 "xyzwExtendedSwizzle\n"
516 " xyzwExtSwizComp .and comma .and\n"
517 " xyzwExtSwizComp .error EXT_SWIZ_COMP_EXPECTED .and comma .and\n"
518 " xyzwExtSwizComp .error EXT_SWIZ_COMP_EXPECTED .and comma .and\n"
519 " xyzwExtSwizComp .error EXT_SWIZ_COMP_EXPECTED;\n"
520 "rgbaExtendedSwizzle\n"
521 " rgbaExtendedSwizzle_1 .or rgbaExtendedSwizzle_2 .or rgbaExtendedSwizzle_3 .or\n"
522 " rgbaExtendedSwizzle_4;\n"
523 "rgbaExtendedSwizzle_1\n"
524 " rgbaExtSwizComp_digit .and comma .and rgbaExtSwizComp_digit .and comma .and\n"
525 " rgbaExtSwizComp_digit .and comma .and rgbaExtSwizComp;\n"
526 "rgbaExtendedSwizzle_2\n"
527 " rgbaExtSwizComp_digit .and comma .and rgbaExtSwizComp_digit .and comma .and\n"
528 " rgbaExtSwizComp_alpha .and comma .and rgbaExtSwizComp .error EXT_SWIZ_COMP_EXPECTED;\n"
529 "rgbaExtendedSwizzle_3\n"
530 " rgbaExtSwizComp_digit .and comma .and rgbaExtSwizComp_alpha .and comma .and\n"
531 " rgbaExtSwizComp .error EXT_SWIZ_COMP_EXPECTED .and comma .and\n"
532 " rgbaExtSwizComp .error EXT_SWIZ_COMP_EXPECTED;\n"
533 "rgbaExtendedSwizzle_4\n"
534 " rgbaExtSwizComp_alpha .and comma .and \n"
535 "rgbaExtSwizComp .error EXT_SWIZ_COMP_EXPECTED .and comma .and\n"
536 " rgbaExtSwizComp .error EXT_SWIZ_COMP_EXPECTED .and comma .and\n"
537 " rgbaExtSwizComp .error EXT_SWIZ_COMP_EXPECTED;\n"
539 " optionalSign .and xyzwExtSwizSel;\n"
541 " optionalSign .and rgbaExtSwizSel;\n"
542 "rgbaExtSwizComp_digit\n"
543 " optionalSign .and rgbaExtSwizSel_digit;\n"
544 "rgbaExtSwizComp_alpha\n"
545 " optionalSign .and rgbaExtSwizSel_alpha;\n"
547 " optionalSign .and extSwizSel;\n"
549 " \"0\" .emit COMPONENT_0 .or \"1\" .emit COMPONENT_1 .or xyzwComponent_single;\n"
551 " rgbaExtSwizSel_digit .or rgbaExtSwizSel_alpha;\n"
552 "rgbaExtSwizSel_digit\n"
553 " \"0\" .emit COMPONENT_0 .or \"1\" .emit COMPONENT_1;\n"
554 "rgbaExtSwizSel_alpha\n"
555 " rgbaComponent_single;\n"
557 " \"0\" .emit COMPONENT_0 .or \"1\" .emit COMPONENT_1 .or vp_component_single;\n"
559 " fp_srcReg_1 .error SOURCE_REGISTER_EXPECTED;\n"
561 " vp_srcReg_1 .error SOURCE_REGISTER_EXPECTED;\n"
563 " fragmentAttribReg .emit REGISTER_ATTRIB .or\n"
564 " fp_progParamReg .emit REGISTER_PARAM .or\n"
565 " fp_temporaryReg .emit REGISTER_ESTABLISHED_NAME;\n"
567 " vertexAttribReg .emit REGISTER_ATTRIB .or\n"
568 " vp_progParamReg .emit REGISTER_PARAM .or\n"
569 " vp_temporaryReg .emit REGISTER_ESTABLISHED_NAME;\n"
571 " fp_dstReg_1 .error DESTINATION_REGISTER_EXPECTED;\n"
573 " vp_dstReg_1 .error DESTINATION_REGISTER_EXPECTED;\n"
575 " fragmentResultReg .emit REGISTER_RESULT .or\n"
576 " fp_temporaryReg .emit REGISTER_ESTABLISHED_NAME;\n"
578 " vertexResultReg .emit REGISTER_RESULT .or\n"
579 " vp_temporaryReg .emit REGISTER_ESTABLISHED_NAME;\n"
580 "fragmentAttribReg\n"
581 " fragAttribBinding;\n"
583 " vtxAttribBinding;\n"
585 " fp_establishedName_no_error_on_identifier;\n"
587 " vp_establishedName_no_error_on_identifier;\n"
589 " fp_paramSingleItemUse .or fp_progParamReg_1 .or fp_progParamSingle;\n"
591 " vp_paramSingleItemUse .or vp_progParamReg_1 .or vp_progParamSingle;\n"
592 "fp_progParamReg_1\n"
593 " fp_progParamArray .emit PARAM_ARRAY_ELEMENT .and lbracket_ne .and progParamArrayAbs .and\n"
595 "vp_progParamReg_1\n"
596 " vp_progParamArray .emit PARAM_ARRAY_ELEMENT .and lbracket_ne .and progParamArrayMem .and\n"
598 "fp_progParamSingle\n"
600 "vp_progParamSingle\n"
602 "fp_progParamArray\n"
603 " fp_establishedName_no_error_on_identifier;\n"
604 "vp_progParamArray\n"
605 " vp_establishedName_no_error_on_identifier;\n"
606 "progParamArrayMem\n"
607 " progParamArrayAbs .or progParamArrayRel;\n"
608 "progParamArrayAbs\n"
609 " integer_ne .emit ARRAY_INDEX_ABSOLUTE;\n"
610 "progParamArrayRel\n"
611 " addrReg .error ADDRESS_REGISTER_OR_INTEGER_EXPECTED .emit ARRAY_INDEX_RELATIVE .and\n"
612 " addrComponent .and addrRegRelOffset;\n"
614 " addrRegRelOffset_1 .or addrRegRelOffset_2 .or .true .emit 0x00;\n"
615 "addrRegRelOffset_1\n"
616 " plus_ne .and addrRegPosOffset;\n"
617 "addrRegRelOffset_2\n"
618 " minus_ne .and addrRegNegOffset;\n"
623 "fragmentResultReg\n"
624 " fp_resultBinding;\n"
626 " vp_resultBinding;\n"
628 " vp_establishedName_no_error_on_identifier;\n"
630 " dot .and \"x\" .error INVALID_ADDRESS_COMPONENT .emit COMPONENT_X .emit COMPONENT_X\n"
631 " .emit COMPONENT_X .emit COMPONENT_X;\n"
633 " dot .and \"x\" .error INVALID_ADDRESS_WRITEMASK .emit 0x08;\n"
635 " dot .and fp_component_single .error INVALID_COMPONENT;\n"
637 " dot .and vp_component_single .error INVALID_COMPONENT;\n"
639 " swizzleSuffix_1 .or\n"
640 " .true .emit COMPONENT_X .emit COMPONENT_Y .emit COMPONENT_Z .emit COMPONENT_W;\n"
642 " dot_ne .and swizzleSuffix_2 .error INVALID_SUFFIX;\n"
644 " swizzleSuffix_3 .or swizzleSuffix_4;\n"
646 " vp_component_multi .and vp_component_multi .and vp_component_multi .error INVALID_COMPONENT .and\n"
647 " vp_component_multi .error INVALID_COMPONENT;\n"
649 " \"x\" .emit COMPONENT_X .emit COMPONENT_X .emit COMPONENT_X .emit COMPONENT_X .or\n"
650 " \"y\" .emit COMPONENT_Y .emit COMPONENT_Y .emit COMPONENT_Y .emit COMPONENT_Y .or\n"
651 " \"z\" .emit COMPONENT_Z .emit COMPONENT_Z .emit COMPONENT_Z .emit COMPONENT_Z .or\n"
652 " \"w\" .emit COMPONENT_W .emit COMPONENT_W .emit COMPONENT_W .emit COMPONENT_W;\n"
654 " optionalSuffix_1 .or\n"
655 " .true .emit COMPONENT_X .emit COMPONENT_Y .emit COMPONENT_Z .emit COMPONENT_W;\n"
657 " dot_ne .and optionalSuffix_2 .error INVALID_SUFFIX;\n"
659 " optionalSuffix_3 .or optionalSuffix_4 .or optionalSuffix_5;\n"
661 " xyzwComponent_multi .and xyzwComponent_multi .and\n"
662 " xyzwComponent_multi .error INVALID_COMPONENT .and xyzwComponent_multi .error INVALID_COMPONENT;\n"
664 " rgbaComponent_multi .and rgbaComponent_multi .and\n"
665 " rgbaComponent_multi .error INVALID_COMPONENT .and rgbaComponent_multi .error INVALID_COMPONENT;\n"
667 " \"x\" .emit COMPONENT_X .emit COMPONENT_X .emit COMPONENT_X .emit COMPONENT_X .or\n"
668 " \"y\" .emit COMPONENT_Y .emit COMPONENT_Y .emit COMPONENT_Y .emit COMPONENT_Y .or\n"
669 " \"z\" .emit COMPONENT_Z .emit COMPONENT_Z .emit COMPONENT_Z .emit COMPONENT_Z .or\n"
670 " \"w\" .emit COMPONENT_W .emit COMPONENT_W .emit COMPONENT_W .emit COMPONENT_W .or\n"
671 " \"r\" .emit COMPONENT_X .emit COMPONENT_X .emit COMPONENT_X .emit COMPONENT_X .or\n"
672 " \"g\" .emit COMPONENT_Y .emit COMPONENT_Y .emit COMPONENT_Y .emit COMPONENT_Y .or\n"
673 " \"b\" .emit COMPONENT_Z .emit COMPONENT_Z .emit COMPONENT_Z .emit COMPONENT_Z .or\n"
674 " \"a\" .emit COMPONENT_W .emit COMPONENT_W .emit COMPONENT_W .emit COMPONENT_W;\n"
675 "fp_component_single\n"
676 " xyzwComponent_single .or rgbaComponent_single;\n"
677 "vp_component_multi\n"
678 " 'x' .emit COMPONENT_X .or 'y' .emit COMPONENT_Y .or 'z' .emit COMPONENT_Z .or\n"
679 " 'w' .emit COMPONENT_W;\n"
680 "vp_component_single\n"
681 " \"x\" .emit COMPONENT_X .or \"y\" .emit COMPONENT_Y .or \"z\" .emit COMPONENT_Z .or\n"
682 " \"w\" .emit COMPONENT_W;\n"
683 "xyzwComponent_multi\n"
684 " 'x' .emit COMPONENT_X .or 'y' .emit COMPONENT_Y .or 'z' .emit COMPONENT_Z .or\n"
685 " 'w' .emit COMPONENT_W;\n"
686 "xyzwComponent_single\n"
687 " \"x\" .emit COMPONENT_X .or \"y\" .emit COMPONENT_Y .or \"z\" .emit COMPONENT_Z .or\n"
688 " \"w\" .emit COMPONENT_W;\n"
689 "rgbaComponent_multi\n"
690 " 'r' .emit COMPONENT_X .or 'g' .emit COMPONENT_Y .or 'b' .emit COMPONENT_Z .or\n"
691 " 'a' .emit COMPONENT_W;\n"
692 "rgbaComponent_single\n"
693 " \"r\" .emit COMPONENT_X .or \"g\" .emit COMPONENT_Y .or \"b\" .emit COMPONENT_Z .or\n"
694 " \"a\" .emit COMPONENT_W;\n"
696 " rgbaMask .or xyzwMask .or .true .emit 0x0F;\n"
698 " xyzwMask .or .true .emit 0x0F;\n"
700 " dot_ne .and xyzwMask_1 .error INVALID_WRITEMASK;\n"
702 " \"xyzw\" .emit 0x0F .or \"xyz\" .emit 0x0E .or \"xyw\" .emit 0x0D .or \"xy\" .emit 0x0C .or\n"
703 " \"xzw\" .emit 0x0B .or \"xz\" .emit 0x0A .or \"xw\" .emit 0x09 .or \"x\" .emit 0x08 .or\n"
704 " \"yzw\" .emit 0x07 .or \"yz\" .emit 0x06 .or \"yw\" .emit 0x05 .or \"y\" .emit 0x04 .or\n"
705 " \"zw\" .emit 0x03 .or \"z\" .emit 0x02 .or \"w\" .emit 0x01;\n"
707 " dot_ne .and rgbaMask_1;\n"
709 " \"rgba\" .emit 0x0F .or \"rgb\" .emit 0x0E .or \"rga\" .emit 0x0D .or \"rg\" .emit 0x0C .or\n"
710 " \"rba\" .emit 0x0B .or \"rb\" .emit 0x0A .or \"ra\" .emit 0x09 .or \"r\" .emit 0x08 .or\n"
711 " \"gba\" .emit 0x07 .or \"gb\" .emit 0x06 .or \"ga\" .emit 0x05 .or \"g\" .emit 0x04 .or\n"
712 " \"ba\" .emit 0x03 .or \"b\" .emit 0x02 .or \"a\" .emit 0x01;\n"
713 "fp_namingStatement\n"
714 " fp_ATTRIB_statement .emit ATTRIB .or\n"
715 " fp_PARAM_statement .emit PARAM .or\n"
716 " fp_TEMP_statement .emit TEMP .or\n"
717 " fp_OUTPUT_statement .emit OUTPUT .or\n"
718 " fp_ALIAS_statement .emit ALIAS;\n"
719 "vp_namingStatement\n"
720 " vp_ATTRIB_statement .emit ATTRIB .or\n"
721 " vp_PARAM_statement .emit PARAM .or\n"
722 " vp_TEMP_statement .emit TEMP .or\n"
723 " ADDRESS_statement .emit ADDRESS .or\n"
724 " vp_OUTPUT_statement .emit OUTPUT .or\n"
725 " vp_ALIAS_statement .emit ALIAS;\n"
726 "fp_ATTRIB_statement\n"
727 " \"ATTRIB\" .and space .and fp_establishName .and equal .and\n"
728 " fragAttribBinding .error FRAGMENT_EXPECTED;\n"
729 "vp_ATTRIB_statement\n"
730 " \"ATTRIB\" .and space .and vp_establishName .and equal .and\n"
731 " vtxAttribBinding .error VERTEX_EXPECTED;\n"
732 "fragAttribBinding\n"
733 " \"fragment\" .and dot .and fragAttribItem .error INVALID_FRAGMENT_PROPERTY;\n"
735 " \"vertex\" .and dot .and vtxAttribItem .error INVALID_VERTEX_PROPERTY;\n"
737 " fragAttribItem_1 .emit FRAGMENT_ATTRIB_COLOR .or\n"
738 " fragAttribItem_2 .emit FRAGMENT_ATTRIB_TEXCOORD .or\n"
739 " .if (fog_coord != 0x00) \"fogcoord\" .emit FRAGMENT_ATTRIB_FOGCOORD .or\n"
740 " \"position\" .emit FRAGMENT_ATTRIB_POSITION;\n"
742 " \"color\" .and optColorType;\n"
744 " \"texcoord\" .and optTexCoordNum;\n"
746 " \"position\" .emit VERTEX_ATTRIB_POSITION .or\n"
747 " .if (vertex_blend != 0x00) vtxAttribItem_1 .emit VERTEX_ATTRIB_WEIGHT .or\n"
748 " \"normal\" .emit VERTEX_ATTRIB_NORMAL .or\n"
749 " vtxAttribItem_2 .emit VERTEX_ATTRIB_COLOR .or\n"
750 " \"fogcoord\" .emit VERTEX_ATTRIB_FOGCOORD .or\n"
751 " vtxAttribItem_3 .emit VERTEX_ATTRIB_TEXCOORD .or\n"
752 " .if (matrix_palette != 0x00) vtxAttribItem_4 .emit VERTEX_ATTRIB_MATRIXINDEX .or\n"
753 " vtxAttribItem_5 .emit VERTEX_ATTRIB_GENERIC;\n"
755 " \"weight\" .and vtxOptWeightNum;\n"
757 " \"color\" .and optColorType;\n"
759 " \"texcoord\" .and optTexCoordNum;\n"
761 " \"matrixindex\" .and lbracket .and vtxWeightNum .and rbracket;\n"
763 " \"attrib\" .and lbracket .and vtxAttribNum .and rbracket;\n"
767 " vtxOptWeightNum_1 .or .true .emit 0x00;\n"
768 "vtxOptWeightNum_1\n"
769 " lbracket_ne .and vtxWeightNum .and rbracket;\n"
772 "fp_PARAM_statement\n"
773 " fp_PARAM_multipleStmt .or fp_PARAM_singleStmt;\n"
774 "vp_PARAM_statement\n"
775 " vp_PARAM_multipleStmt .or vp_PARAM_singleStmt;\n"
776 "fp_PARAM_singleStmt\n"
777 " \"PARAM\" .and space .and fp_establishName .and .true .emit 0x00 .and fp_paramSingleInit .and\n"
778 " .true .emit PARAM_NULL;\n"
779 "vp_PARAM_singleStmt\n"
780 " \"PARAM\" .and space .and vp_establishName .and .true .emit 0x00 .and vp_paramSingleInit .and\n"
781 " .true .emit PARAM_NULL;\n"
782 "fp_PARAM_multipleStmt\n"
783 " \"PARAM\" .and space .and fp_establishName .and lbracket_ne .and optArraySize .and rbracket .and\n"
784 " fp_paramMultipleInit .and .true .emit PARAM_NULL;\n"
785 "vp_PARAM_multipleStmt\n"
786 " \"PARAM\" .and space .and vp_establishName .and lbracket_ne .and optArraySize .and rbracket .and\n"
787 " vp_paramMultipleInit .and .true .emit PARAM_NULL;\n"
789 " optional_integer;\n"
790 "fp_paramSingleInit\n"
791 " equal .and fp_paramSingleItemDecl;\n"
792 "vp_paramSingleInit\n"
793 " equal .and vp_paramSingleItemDecl;\n"
794 "fp_paramMultipleInit\n"
795 " equal .and lbrace .and fp_paramMultInitList .and rbrace;\n"
796 "vp_paramMultipleInit\n"
797 " equal .and lbrace .and vp_paramMultInitList .and rbrace;\n"
798 "fp_paramMultInitList\n"
799 " fp_paramMultInitList_1 .or fp_paramMultipleItem;\n"
800 "vp_paramMultInitList\n"
801 " vp_paramMultInitList_1 .or vp_paramMultipleItem;\n"
802 "fp_paramMultInitList_1\n"
803 " fp_paramMultipleItem .and comma_ne .and fp_paramMultInitList;\n"
804 "vp_paramMultInitList_1\n"
805 " vp_paramMultipleItem .and comma_ne .and vp_paramMultInitList;\n"
806 "fp_paramSingleItemDecl\n"
807 " fp_stateSingleItem .emit PARAM_STATE_ELEMENT .or\n"
808 " programSingleItem .emit PARAM_PROGRAM_ELEMENT .or\n"
809 " paramConstDecl .emit PARAM_CONSTANT;\n"
810 "vp_paramSingleItemDecl\n"
811 " vp_stateSingleItem .emit PARAM_STATE_ELEMENT .or\n"
812 " programSingleItem .emit PARAM_PROGRAM_ELEMENT .or\n"
813 " paramConstDecl .emit PARAM_CONSTANT;\n"
814 "fp_paramSingleItemUse\n"
815 " fp_stateSingleItem .emit PARAM_STATE_ELEMENT .or\n"
816 " programSingleItem .emit PARAM_PROGRAM_ELEMENT .or\n"
817 " paramConstUse .emit PARAM_CONSTANT;\n"
818 "vp_paramSingleItemUse\n"
819 " vp_stateSingleItem .emit PARAM_STATE_ELEMENT .or\n"
820 " programSingleItem .emit PARAM_PROGRAM_ELEMENT .or\n"
821 " paramConstUse .emit PARAM_CONSTANT;\n"
822 "fp_paramMultipleItem\n"
823 " fp_stateMultipleItem .emit PARAM_STATE_ELEMENT .or\n"
824 " programMultipleItem .emit PARAM_PROGRAM_ELEMENT .or\n"
825 " paramConstDecl .emit PARAM_CONSTANT;\n"
826 "vp_paramMultipleItem\n"
827 " vp_stateMultipleItem .emit PARAM_STATE_ELEMENT .or\n"
828 " programMultipleItem .emit PARAM_PROGRAM_ELEMENT .or\n"
829 " paramConstDecl .emit PARAM_CONSTANT;\n"
830 "fp_stateMultipleItem\n"
831 " stateMultipleItem_1 .or fp_stateSingleItem;\n"
832 "vp_stateMultipleItem\n"
833 " stateMultipleItem_1 .or vp_stateSingleItem;\n"
834 "stateMultipleItem_1\n"
835 " \"state\" .and dot .and stateMatrixRows .emit STATE_MATRIX_ROWS;\n"
836 "fp_stateSingleItem\n"
837 " \"state\" .and dot .and fp_stateSingleItem_1 .error INVALID_STATE_PROPERTY;\n"
838 "vp_stateSingleItem\n"
839 " \"state\" .and dot .and vp_stateSingleItem_1 .error INVALID_STATE_PROPERTY;\n"
840 "fp_stateSingleItem_1\n"
841 " stateSingleItem_1 .or stateSingleItem_2 .or stateSingleItem_3 .or stateSingleItem_4 .or\n"
842 " stateSingleItem_5 .or stateSingleItem_7 .or stateSingleItem_8 .or stateSingleItem_11;\n"
843 "vp_stateSingleItem_1\n"
844 " stateSingleItem_1 .or stateSingleItem_2 .or stateSingleItem_3 .or stateSingleItem_4 .or\n"
845 " stateSingleItem_6 .or stateSingleItem_7 .or stateSingleItem_9 .or stateSingleItem_10 .or\n"
846 " stateSingleItem_11;\n"
847 "stateSingleItem_1\n"
848 " stateMaterialItem .emit STATE_MATERIAL;\n"
849 "stateSingleItem_2\n"
850 " stateLightItem .emit STATE_LIGHT;\n"
851 "stateSingleItem_3\n"
852 " stateLightModelItem .emit STATE_LIGHT_MODEL;\n"
853 "stateSingleItem_4\n"
854 " stateLightProdItem .emit STATE_LIGHT_PROD;\n"
855 "stateSingleItem_5\n"
856 " stateTexEnvItem .emit STATE_TEX_ENV;\n"
857 "stateSingleItem_6\n"
858 " stateTexGenItem .emit STATE_TEX_GEN;\n"
859 "stateSingleItem_7\n"
860 " stateFogItem .emit STATE_FOG;\n"
861 "stateSingleItem_8\n"
862 " stateDepthItem .emit STATE_DEPTH;\n"
863 "stateSingleItem_9\n"
864 " stateClipPlaneItem .emit STATE_CLIP_PLANE;\n"
865 "stateSingleItem_10\n"
866 " statePointItem .emit STATE_POINT;\n"
867 "stateSingleItem_11\n"
868 " stateMatrixRow .emit STATE_MATRIX_ROWS;\n"
869 "stateMaterialItem\n"
870 " \"material\" .and optFaceType .and dot .and stateMatProperty .error INVALID_MATERIAL_PROPERTY;\n"
872 " \"ambient\" .emit MATERIAL_AMBIENT .or\n"
873 " \"diffuse\" .emit MATERIAL_DIFFUSE .or\n"
874 " \"specular\" .emit MATERIAL_SPECULAR .or\n"
875 " \"emission\" .emit MATERIAL_EMISSION .or\n"
876 " \"shininess\" .emit MATERIAL_SHININESS;\n"
878 " \"light\" .and lbracket .and stateLightNumber .and rbracket .and dot .and\n"
879 " stateLightProperty .error INVALID_LIGHT_PROPERTY;\n"
880 "stateLightProperty\n"
881 " \"ambient\" .emit LIGHT_AMBIENT .or\n"
882 " \"diffuse\" .emit LIGHT_DIFFUSE .or\n"
883 " \"specular\" .emit LIGHT_SPECULAR .or\n"
884 " \"position\" .emit LIGHT_POSITION .or\n"
885 " \"attenuation\" .emit LIGHT_ATTENUATION .or\n"
886 " stateLightProperty_1 .emit LIGHT_SPOT_DIRECTION .or\n"
887 " \"half\" .emit LIGHT_HALF;\n"
888 "stateLightProperty_1\n"
889 " \"spot\" .and dot .and stateSpotProperty .error INVALID_SPOT_PROPERTY;\n"
890 "stateSpotProperty\n"
892 "stateLightModelItem\n"
893 " \"lightmodel\" .and stateLModProperty .error INVALID_LIGHTMODEL_PROPERTY;\n"
894 "stateLModProperty\n"
895 " stateLModProperty_1 .or stateLModProperty_2;\n"
896 "stateLModProperty_1\n"
897 " dot .and \"ambient\" .emit LIGHT_MODEL_AMBIENT;\n"
898 "stateLModProperty_2\n"
899 " stateLModProperty_3 .emit LIGHT_MODEL_SCENECOLOR;\n"
900 "stateLModProperty_3\n"
901 " optFaceType .and dot .and \"scenecolor\";\n"
902 "stateLightProdItem\n"
903 " \"lightprod\" .and lbracket .and stateLightNumber .and rbracket .and optFaceType .and dot .and\n"
904 " stateLProdProperty .error INVALID_LIGHTPROD_PROPERTY;\n"
905 "stateLProdProperty\n"
906 " \"ambient\" .emit LIGHT_PROD_AMBIENT .or\n"
907 " \"diffuse\" .emit LIGHT_PROD_DIFFUSE .or\n"
908 " \"specular\" .emit LIGHT_PROD_SPECULAR;\n"
912 " \"texenv\" .and optLegacyTexUnitNum .and dot .and\n"
913 " stateTexEnvProperty .error INVALID_TEXENV_PROPERTY;\n"
914 "stateTexEnvProperty\n"
915 " \"color\" .emit TEX_ENV_COLOR;\n"
916 "optLegacyTexUnitNum\n"
917 " lbracket_ne .and legacyTexUnitNum .and rbracket;\n"
921 " \"texgen\" .and optTexCoordNum .and dot .and stateTexGenType .error INVALID_TEXGEN_PROPERTY .and\n"
922 " dot .and stateTexGenCoord .error INVALID_TEXGEN_COORD;\n"
924 " \"eye\" .emit TEX_GEN_EYE .or\n"
925 " \"object\" .emit TEX_GEN_OBJECT;\n"
927 " \"s\" .emit COMPONENT_X .or\n"
928 " \"t\" .emit COMPONENT_Y .or\n"
929 " \"r\" .emit COMPONENT_Z .or\n"
930 " \"q\" .emit COMPONENT_W;\n"
932 " \"fog\" .and dot .and stateFogProperty .error INVALID_FOG_PROPERTY;\n"
934 " \"color\" .emit FOG_COLOR .or\n"
935 " \"params\" .emit FOG_PARAMS;\n"
937 " \"depth\" .and dot .and stateDepthProperty .error INVALID_DEPTH_PROPERTY;\n"
938 "stateDepthProperty\n"
939 " \"range\" .emit DEPTH_RANGE;\n"
940 "stateClipPlaneItem\n"
941 " \"clip\" .and lbracket .and stateClipPlaneNum .and rbracket .and dot .and\n"
942 " \"plane\" .error INVALID_CLIPPLANE_PROPERTY;\n"
943 "stateClipPlaneNum\n"
946 " \"point\" .and dot .and statePointProperty .error INVALID_POINT_PROPERTY;\n"
947 "statePointProperty\n"
948 " \"size\" .emit POINT_SIZE .or\n"
949 " .if (point_parameters != 0x00) \"attenuation\" .emit POINT_ATTENUATION;\n"
951 " stateMatrixItem .and dot .and \"row\" .error MATRIX_ROW_SELECTOR_OR_MODIFIER_EXPECTED .and\n"
952 " lbracket .and stateMatrixRowNum .and rbracket .emit 0x0;\n"
954 " stateMatrixItem .and optMatrixRows;\n"
956 " optMatrixRows_1 .or .true .emit 0x0 .emit '3' .emit 0x0 .emit $;\n"
958 " dot_ne .and \"row\" .error MATRIX_ROW_SELECTOR_OR_MODIFIER_EXPECTED .and lbracket .and\n"
959 " stateMatrixRowNum .and dotdot .and stateMatrixRowNum .and rbracket;\n"
961 " \"matrix\" .and dot .and stateMatrixName .error INVALID_MATRIX_NAME .and stateOptMatModifier;\n"
962 "stateOptMatModifier\n"
963 " stateOptMatModifier_1 .or .true .emit MATRIX_MODIFIER_IDENTITY;\n"
964 "stateOptMatModifier_1\n"
965 " dot_ne .and stateMatModifier;\n"
967 " \"inverse\" .emit MATRIX_MODIFIER_INVERSE .or\n"
968 " \"transpose\" .emit MATRIX_MODIFIER_TRANSPOSE .or\n"
969 " \"invtrans\" .emit MATRIX_MODIFIER_INVTRANS;\n"
970 "stateMatrixRowNum\n"
973 " stateMatrixName_1_1 .emit MATRIX_MODELVIEW .or\n"
974 " \"projection\" .emit MATRIX_PROJECTION .or\n"
975 " \"mvp\" .emit MATRIX_MVP .or\n"
976 " stateMatrixName_1_2 .emit MATRIX_TEXTURE .or\n"
977 " .if (matrix_palette != 0x00) stateMatrixName_1_3 .emit MATRIX_PALETTE .or\n"
978 " stateMatrixName_1_4 .emit MATRIX_PROGRAM;\n"
979 "stateMatrixName_1_1\n"
980 " \"modelview\" .and stateOptModMatNum;\n"
981 "stateMatrixName_1_2\n"
982 " \"texture\" .and optTexCoordNum;\n"
983 "stateMatrixName_1_3\n"
984 " \"palette\" .and lbracket .and statePaletteMatNum .and rbracket;\n"
985 "stateMatrixName_1_4\n"
986 " \"program\" .and lbracket .and stateProgramMatNum .and rbracket;\n"
987 "stateOptModMatNum\n"
988 " .if (vertex_blend != 0x00) stateOptModMatNum_1 .or\n"
989 " .true .emit 0x00;\n"
990 "stateOptModMatNum_1\n"
991 " lbracket_ne .and stateModMatNum .and rbracket;\n"
995 " optTexCoordNum_1 .or .true .emit 0x00;\n"
997 " lbracket_ne .and texCoordNum .and rbracket;\n"
1000 "statePaletteMatNum\n"
1002 "stateProgramMatNum\n"
1004 "programSingleItem\n"
1005 " \"program\" .and dot .and programSingleItem_1 .error INVALID_PROGRAM_PROPERTY;\n"
1006 "programSingleItem_1\n"
1007 " progEnvParam .or progLocalParam;\n"
1008 "programMultipleItem\n"
1009 " \"program\" .and dot .and programMultipleItem_1 .error INVALID_PROGRAM_PROPERTY;\n"
1010 "programMultipleItem_1\n"
1011 " progEnvParams .or progLocalParams;\n"
1013 " \"env\" .emit PROGRAM_PARAM_ENV .and lbracket .and progEnvParamNums .and rbracket;\n"
1014 "progEnvParamNums\n"
1015 " progEnvParamNums_1 .or progEnvParamNums_2;\n"
1016 "progEnvParamNums_1\n"
1017 " progEnvParamNum .and dotdot_ne .and progEnvParamNum;\n"
1018 "progEnvParamNums_2\n"
1019 " progEnvParamNum .and .true .emit 0x00;\n"
1021 " \"env\" .emit PROGRAM_PARAM_ENV .and lbracket .and progEnvParamNum .and rbracket .emit 0x00;\n"
1023 " \"local\" .emit PROGRAM_PARAM_LOCAL .and lbracket .and progLocalParamNums .and rbracket;\n"
1024 "progLocalParamNums\n"
1025 " progLocalParamNums_1 .or progLocalParamNums_2;\n"
1026 "progLocalParamNums_1\n"
1027 " progLocalParamNum .and dotdot_ne .and progLocalParamNum;\n"
1028 "progLocalParamNums_2\n"
1029 " progLocalParamNum .and .true .emit 0x00;\n"
1031 " \"local\" .emit PROGRAM_PARAM_LOCAL .and lbracket .and progLocalParamNum .and rbracket .emit 0x00;\n"
1034 "progLocalParamNum\n"
1037 " paramConstScalarDecl .emit CONSTANT_SCALAR .or paramConstVector .emit CONSTANT_VECTOR;\n"
1039 " paramConstScalarUse .emit CONSTANT_SCALAR .or paramConstVector .emit CONSTANT_VECTOR;\n"
1040 "paramConstScalarDecl\n"
1041 " signedFloatConstant;\n"
1042 "paramConstScalarUse\n"
1044 "paramConstVector\n"
1045 " paramConstVector_4 .emit 0x04 .or paramConstVector_3 .emit 0x03 .or\n"
1046 " paramConstVector_2 .emit 0x02 .or paramConstVector_1 .emit 0x01;\n"
1047 "paramConstVector_1\n"
1048 " lbrace_ne .and signedFloatConstant .and rbrace;\n"
1049 "paramConstVector_2\n"
1050 " lbrace_ne .and signedFloatConstant .and comma_ne .and signedFloatConstant .and rbrace;\n"
1051 "paramConstVector_3\n"
1052 " lbrace_ne .and signedFloatConstant .and comma_ne .and signedFloatConstant .and comma_ne .and\n"
1053 " signedFloatConstant .and rbrace;\n"
1054 "paramConstVector_4\n"
1055 " lbrace_ne .and signedFloatConstant .and comma_ne .and signedFloatConstant .and comma_ne .and\n"
1056 " signedFloatConstant .and comma_ne .and signedFloatConstant .and rbrace;\n"
1057 "signedFloatConstant\n"
1058 " optionalSign .and floatConstant;\n"
1062 " optional_sign_ne;\n"
1063 "fp_TEMP_statement\n"
1064 " \"TEMP\" .and space .and fp_varNameList .and .true .emit 0x00;\n"
1065 "vp_TEMP_statement\n"
1066 " \"TEMP\" .and space .and vp_varNameList .and .true .emit 0x00;\n"
1067 "ADDRESS_statement\n"
1068 " \"ADDRESS\" .and space .and vp_varNameList .and .true .emit 0x00;\n"
1070 " fp_varNameList_1 .or fp_establishName;\n"
1072 " vp_varNameList_1 .or vp_establishName;\n"
1073 "fp_varNameList_1\n"
1074 " fp_establishName .and comma_ne .and fp_varNameList;\n"
1075 "vp_varNameList_1\n"
1076 " vp_establishName .and comma_ne .and vp_varNameList;\n"
1077 "fp_OUTPUT_statement\n"
1078 " \"OUTPUT\" .and space .and fp_establishName .and equal .and\n"
1079 " fp_resultBinding .error RESULT_EXPECTED;\n"
1080 "vp_OUTPUT_statement\n"
1081 " \"OUTPUT\" .and space .and vp_establishName .and equal .and\n"
1082 " vp_resultBinding .error RESULT_EXPECTED;\n"
1083 "fp_resultBinding\n"
1084 " \"result\" .and dot .and fp_resultBinding_1 .error INVALID_RESULT_PROPERTY;\n"
1085 "vp_resultBinding\n"
1086 " \"result\" .and dot .and vp_resultBinding_1 .error INVALID_RESULT_PROPERTY;\n"
1087 "fp_resultBinding_1\n"
1088 " fp_resultBinding_2 .emit FRAGMENT_RESULT_COLOR .or\n"
1089 " \"depth\" .emit FRAGMENT_RESULT_DEPTH;\n"
1090 "fp_resultBinding_2\n"
1091 " \"color\" .and optOutputColorNum;\n"
1092 "vp_resultBinding_1\n"
1093 " .if (ARB_position_invariant == 0x00) \"position\" .emit VERTEX_RESULT_POSITION .or\n"
1094 " resultColBinding .emit VERTEX_RESULT_COLOR .or\n"
1095 " \"fogcoord\" .emit VERTEX_RESULT_FOGCOORD .or\n"
1096 " \"pointsize\" .emit VERTEX_RESULT_POINTSIZE .or\n"
1097 " vp_resultBinding_2 .emit VERTEX_RESULT_TEXCOORD;\n"
1098 "vp_resultBinding_2\n"
1099 " \"texcoord\" .and optTexCoordNum;\n"
1100 "optOutputColorNum\n"
1101 " .if (ARB_draw_buffers != 0x00) optOutputColorNum_1 .or .true .emit 0x00;\n"
1102 "optOutputColorNum_1\n"
1103 " lbracket_ne .and outputColorNum .and rbracket;\n"
1106 "resultColBinding\n"
1107 " \"color\" .and optFaceType .and optColorType;\n"
1109 " FaceType .or .true .emit FACE_FRONT;\n"
1111 " dot_ne .and FaceProperty;\n"
1113 " \"front\" .emit FACE_FRONT .or \"back\" .emit FACE_BACK;\n"
1115 " ColorType .or .true .emit COLOR_PRIMARY;\n"
1117 " dot_ne .and ColorProperty;\n"
1119 " \"primary\" .emit COLOR_PRIMARY .or\n"
1120 " .if (secondary_color != 0x00) \"secondary\" .emit COLOR_SECONDARY;\n"
1121 "fp_ALIAS_statement\n"
1122 " \"ALIAS\" .and fp_ALIAS_statement_1 .error IDENTIFIER_EXPECTED .and equal .and fp_establishedName;\n"
1123 "vp_ALIAS_statement\n"
1124 " \"ALIAS\" .and vp_ALIAS_statement_1 .error IDENTIFIER_EXPECTED .and equal .and vp_establishedName;\n"
1125 "fp_ALIAS_statement_1\n"
1126 " space .and fp_establishName;\n"
1127 "vp_ALIAS_statement_1\n"
1128 " space .and vp_establishName;\n"
1129 "fp_establishName\n"
1131 "vp_establishName\n"
1133 "fp_establishedName\n"
1135 "vp_establishedName\n"
1137 "fp_establishedName_no_error_on_identifier\n"
1138 " fp_identifier_ne;\n"
1139 "vp_establishedName_no_error_on_identifier\n"
1140 " vp_identifier_ne;\n"
1142 " fp_identifier_ne .error IDENTIFIER_EXPECTED;\n"
1144 " vp_identifier_ne .error IDENTIFIER_EXPECTED;\n"
1145 "fp_identifier_ne\n"
1146 " fp_not_reserved_identifier .and identifier_ne;\n"
1147 "vp_identifier_ne\n"
1148 " vp_not_reserved_identifier .and identifier_ne;\n"
1149 "fp_not_reserved_identifier\n"
1150 " fp_not_reserved_identifier_1 .or .true;\n"
1151 "fp_not_reserved_identifier_1\n"
1152 " fp_reserved_identifier .and .false .error RESERVED_KEYWORD;\n"
1153 "vp_not_reserved_identifier\n"
1154 " vp_not_reserved_identifier_1 .or .true;\n"
1155 "vp_not_reserved_identifier_1\n"
1156 " vp_reserved_identifier .and .false .error RESERVED_KEYWORD;\n"
1157 "fp_reserved_identifier\n"
1158 " \"ABS\" .or \"ABS_SAT\" .or \"ADD\" .or \"ADD_SAT\" .or \"ALIAS\" .or \"ATTRIB\" .or \"CMP\" .or \"CMP_SAT\" .or\n"
1159 " \"COS\" .or \"COS_SAT\" .or \"DP3\" .or \"DP3_SAT\" .or \"DP4\" .or \"DP4_SAT\" .or \"DPH\" .or \"DPH_SAT\" .or\n"
1160 " \"DST\" .or \"DST_SAT\" .or \"END\" .or \"EX2\" .or \"EX2_SAT\" .or \"FLR\" .or \"FLR_SAT\" .or \"FRC\" .or\n"
1161 " \"FRC_SAT\" .or \"KIL\" .or \"LG2\" .or \"LG2_SAT\" .or \"LIT\" .or \"LIT_SAT\" .or \"LRP\" .or \"LRP_SAT\" .or\n"
1162 " \"MAD\" .or \"MAD_SAT\" .or \"MAX\" .or \"MAX_SAT\" .or \"MIN\" .or \"MIN_SAT\" .or \"MOV\" .or \"MOV_SAT\" .or\n"
1163 " \"MUL\" .or \"MUL_SAT\" .or \"OPTION\" .or \"OUTPUT\" .or \"PARAM\" .or \"POW\" .or \"POW_SAT\" .or \"RCP\" .or\n"
1164 " \"RCP_SAT\" .or \"RSQ\" .or \"RSQ_SAT\" .or \"SIN\" .or \"SIN_SAT\" .or \"SCS\" .or \"SCS_SAT\" .or \"SGE\" .or\n"
1165 " \"SGE_SAT\" .or \"SLT\" .or \"SLT_SAT\" .or \"SUB\" .or \"SUB_SAT\" .or \"SWZ\" .or \"SWZ_SAT\" .or \"TEMP\" .or\n"
1166 " \"TEX\" .or \"TEX_SAT\" .or \"TXB\" .or \"TXB_SAT\" .or \"TXP\" .or \"TXP_SAT\" .or \"XPD\" .or \"XPD_SAT\" .or\n"
1167 " \"fragment\" .or \"program\" .or \"result\" .or \"state\" .or \"texture\";\n"
1168 "vp_reserved_identifier\n"
1169 " \"ABS\" .or \"ADD\" .or \"ADDRESS\" .or \"ALIAS\" .or \"ARL\" .or \"ATTRIB\" .or \"DP3\" .or \"DP4\" .or\n"
1170 " \"DPH\" .or \"DST\" .or \"END\" .or \"EX2\" .or \"EXP\" .or \"FLR\" .or \"FRC\" .or \"LG2\" .or \"LIT\" .or\n"
1171 " \"LOG\" .or \"MAD\" .or \"MAX\" .or \"MIN\" .or \"MOV\" .or \"MUL\" .or \"OPTION\" .or \"OUTPUT\" .or\n"
1172 " \"PARAM\" .or \"POW\" .or \"RCP\" .or \"RSQ\" .or \"SGE\" .or \"SLT\" .or \"SUB\" .or \"SWZ\" .or \"TEMP\" .or\n"
1173 " \"XPD\" .or \"program\" .or \"result\" .or \"state\" .or \"vertex\";\n"
1175 " integer_ne .error INTEGER_EXPECTED;\n"
1181 " no_digit_1 .or .true;\n"
1183 " digit10 .and .false .error INTEGER_OUT_OF_RANGE;\n"
1185 " all_zeroes_1 .or no_digit_1;\n"
1187 " '0' .and .loop zero .and no_digit;\n"
1189 " integer_0_3_1 .error INTEGER_EXPECTED .and .true .emit 0x00 .emit $;\n"
1191 " integer_0_3_2 .or all_zeroes .emit '0';\n"
1193 " leading_zeroes .and '1'-'3' .emit * .and no_digit;\n"
1195 " integer_0_63_1 .error INTEGER_EXPECTED .and .true .emit 0x00 .emit $;\n"
1197 " integer_0_63_2 .or integer_0_63_3 .or integer_0_63_4 .or integer_0_63_5 .or\n"
1198 " all_zeroes .emit '0';\n"
1200 " leading_zeroes .and '7'-'9' .emit * .and no_digit;\n"
1202 " leading_zeroes .and '1'-'5' .emit * .and '0'-'9' .emit * .and no_digit;\n"
1204 " leading_zeroes .and '6' .emit * .and '0'-'3' .emit * .and no_digit;\n"
1206 " leading_zeroes .and '1'-'6' .emit * .and no_digit;\n"
1208 " integer_0_64_1 .error INTEGER_EXPECTED .and .true .emit 0x00 .emit $;\n"
1210 " integer_0_64_2 .or integer_0_64_3 .or integer_0_64_4 .or integer_0_64_5 .or\n"
1211 " all_zeroes .emit '0';\n"
1213 " leading_zeroes .and '7'-'9' .emit * .and no_digit;\n"
1215 " leading_zeroes .and '1'-'5' .emit * .and '0'-'9' .emit * .and no_digit;\n"
1217 " leading_zeroes .and '6' .emit * .and '0'-'4' .emit * .and no_digit;\n"
1219 " leading_zeroes .and '1'-'6' .emit * .and no_digit;\n"
1221 " space .or .true;\n"
1223 " space .error OPERATION_NEEDS_DESTINATION_VARIABLE;\n"
1225 " space .error OPERATION_NEEDS_SOURCE_VARIABLE;\n"
1227 " single_space .and .loop single_space;\n"
1229 " white_char .or comment_block;\n"
1231 " ' ' .or '\\t' .or '\\n' .or '\\r';\n"
1233 " '#' .and .loop comment_char .and new_line;\n"
1235 " '\\x0E'-'\\xFF' .or '\\x01'-'\\x09' .or '\\x0B'-'\\x0C';\n"
1237 " '\\n' .or crlf .or '\\0';\n"
1239 " '\\r' .and '\\n';\n"
1241 " optional_space .and ';' .error MISSING_SEMICOLON .and optional_space;\n"
1243 " optional_space .and ',' .error MISSING_COMMA .and optional_space;\n"
1245 " optional_space .and ',' .and optional_space;\n"
1247 " optional_space .and '[' .error MISSING_LBRACKET .and optional_space;\n"
1249 " optional_space .and '[' .and optional_space;\n"
1251 " optional_space .and ']' .error MISSING_RBRACKET .and optional_space;\n"
1253 " optional_space .and '.' .error MISSING_DOT .and optional_space;\n"
1255 " optional_space .and '.' .and optional_space;\n"
1257 " optional_space .and '=' .error MISSING_EQUAL .and optional_space;\n"
1259 " optional_space .and '{' .error MISSING_LBRACE .and optional_space;\n"
1261 " optional_space .and '{' .and optional_space;\n"
1263 " optional_space .and '}' .error MISSING_RBRACE .and optional_space;\n"
1265 " optional_space .and '.' .and '.' .error MISSING_DOTDOT .and optional_space;\n"
1267 " optional_space .and '.' .and '.' .and optional_space;\n"
1269 " float_1 .or float_2 .or float_legacy;\n"
1271 " '.' .emit 0x00 .and integer_ne .error MISSING_FRACTION_OR_EXPONENT .and optional_exponent;\n"
1273 " integer_ne .and float_3;\n"
1275 " float_4 .or float_5;\n"
1277 " '.' .and optional_integer .and optional_exponent;\n"
1279 " exponent .emit 0x00;\n"
1281 " integer_ne .and .true .emit 0x00 .emit 0x00;\n"
1283 " integer_ne_1 .and .true .emit 0x00 .emit $;\n"
1285 " digit10 .emit * .and .loop digit10 .emit *;\n"
1286 "optional_integer\n"
1287 " integer_ne .or .true .emit 0x00;\n"
1288 "optional_exponent\n"
1289 " exponent .or .true .emit 0x00;\n"
1291 " exponent_1 .and optional_sign_ne .and integer_ne .error EXPONENT_VALUE_EXPECTED;\n"
1294 "optional_sign_ne\n"
1295 " minus_ne .or plus_ne .or .true;\n"
1297 " optional_space .and '+' .and optional_space;\n"
1299 " optional_space .and '-' .emit '-' .and optional_space;\n"
1301 " first_idchar .emit * .and .loop follow_idchar .emit * .and .true .emit 0x00 .emit $;\n"
1303 " first_idchar .or digit10;\n"
1305 " 'a'-'z' .or 'A'-'Z' .or '_' .or '$';\n"
1308 ".string __string_filter;\n"
1310 " .loop __identifier_char;\n"
1311 "__identifier_char\n"
1312 " 'a'-'z' .or 'A'-'Z' .or '_' .or '$' .or '0'-'9';\n"
1314 " e_signature_char .and .loop e_signature_char;\n"
1315 "e_signature_char\n"
1316 " '!' .or '.' .or 'A'-'Z' .or 'a'-'z' .or '0'-'9';\n"
1318 " .loop e_statement_not_term;\n"
1319 "e_statement_not_term\n"
1320 " '\\x3C'-'\\xFF' .or '\\x0E'-'\\x3A' .or '\\x01'-'\\x09' .or '\\x0B'-'\\x0C';\n"
1322 " e_identifier_first .and .loop e_identifier_next;\n"
1323 "e_identifier_first\n"
1324 " 'a'-'z' .or 'A'-'Z' .or '_' .or '$';\n"
1325 "e_identifier_next\n"
1326 " e_identifier_first .or '0'-'9';\n"
1328 " e_identifier .or e_token_number .or '[' .or ']' .or '.' .or '{' .or '}' .or '=' .or '+' .or\n"
1329 " '-' .or ',' .or ';';\n"
1331 " e_token_digit .and .loop e_token_digit;\n"
1335 " 'A'-'Z' .or 'a'-'z' .or '0'-'9';\n"