Lines Matching refs:option
50 if (state->option.NV_fragment) { in _mesa_parse_instruction_suffix()
72 if (state->option.NV_fragment) { in _mesa_parse_instruction_suffix()
152 _mesa_ARBvp_parse_option(struct asm_parser_state *state, const char *option) in _mesa_ARBvp_parse_option() argument
154 if (strcmp(option, "ARB_position_invariant") == 0) { in _mesa_ARBvp_parse_option()
155 state->option.PositionInvariant = 1; in _mesa_ARBvp_parse_option()
164 _mesa_ARBfp_parse_option(struct asm_parser_state *state, const char *option) in _mesa_ARBfp_parse_option() argument
171 if (strncmp(option, "ARB_", 4) == 0) { in _mesa_ARBfp_parse_option()
174 option += 4; in _mesa_ARBfp_parse_option()
177 if (strncmp(option, "fog_", 4) == 0) { in _mesa_ARBfp_parse_option()
178 option += 4; in _mesa_ARBfp_parse_option()
180 if (state->option.Fog == OPTION_NONE) { in _mesa_ARBfp_parse_option()
181 if (strcmp(option, "exp") == 0) { in _mesa_ARBfp_parse_option()
182 state->option.Fog = OPTION_FOG_EXP; in _mesa_ARBfp_parse_option()
184 } else if (strcmp(option, "exp2") == 0) { in _mesa_ARBfp_parse_option()
185 state->option.Fog = OPTION_FOG_EXP2; in _mesa_ARBfp_parse_option()
187 } else if (strcmp(option, "linear") == 0) { in _mesa_ARBfp_parse_option()
188 state->option.Fog = OPTION_FOG_LINEAR; in _mesa_ARBfp_parse_option()
194 } else if (strncmp(option, "precision_hint_", 15) == 0) { in _mesa_ARBfp_parse_option()
195 option += 15; in _mesa_ARBfp_parse_option()
197 if (state->option.PrecisionHint == OPTION_NONE) { in _mesa_ARBfp_parse_option()
198 if (strcmp(option, "nicest") == 0) { in _mesa_ARBfp_parse_option()
199 state->option.PrecisionHint = OPTION_NICEST; in _mesa_ARBfp_parse_option()
201 } else if (strcmp(option, "fastest") == 0) { in _mesa_ARBfp_parse_option()
202 state->option.PrecisionHint = OPTION_FASTEST; in _mesa_ARBfp_parse_option()
208 } else if (strcmp(option, "draw_buffers") == 0) { in _mesa_ARBfp_parse_option()
212 state->option.DrawBuffers = 1; in _mesa_ARBfp_parse_option()
214 } else if (strcmp(option, "fragment_program_shadow") == 0) { in _mesa_ARBfp_parse_option()
216 state->option.Shadow = 1; in _mesa_ARBfp_parse_option()
219 } else if (strncmp(option, "fragment_coord_", 15) == 0) { in _mesa_ARBfp_parse_option()
220 option += 15; in _mesa_ARBfp_parse_option()
222 if (strcmp(option, "origin_upper_left") == 0) { in _mesa_ARBfp_parse_option()
223 state->option.OriginUpperLeft = 1; in _mesa_ARBfp_parse_option()
226 else if (strcmp(option, "pixel_center_integer") == 0) { in _mesa_ARBfp_parse_option()
227 state->option.PixelCenterInteger = 1; in _mesa_ARBfp_parse_option()
232 } else if (strncmp(option, "ATI_", 4) == 0) { in _mesa_ARBfp_parse_option()
233 option += 4; in _mesa_ARBfp_parse_option()
235 if (strcmp(option, "draw_buffers") == 0) { in _mesa_ARBfp_parse_option()
239 state->option.DrawBuffers = 1; in _mesa_ARBfp_parse_option()
242 } else if (strncmp(option, "NV_fragment_program", 19) == 0) { in _mesa_ARBfp_parse_option()
243 option += 19; in _mesa_ARBfp_parse_option()
247 if (option[0] == '\0') { in _mesa_ARBfp_parse_option()
249 state->option.NV_fragment = 1; in _mesa_ARBfp_parse_option()
253 } else if (strncmp(option, "MESA_", 5) == 0) { in _mesa_ARBfp_parse_option()
254 option += 5; in _mesa_ARBfp_parse_option()
256 if (strcmp(option, "texture_array") == 0) { in _mesa_ARBfp_parse_option()
258 state->option.TexArray = 1; in _mesa_ARBfp_parse_option()