• Home
  • Raw
  • Download

Lines Matching refs:option

60 _mesa_ARBvp_parse_option(struct asm_parser_state *state, const char *option)  in _mesa_ARBvp_parse_option()  argument
62 if (strcmp(option, "ARB_position_invariant") == 0) { in _mesa_ARBvp_parse_option()
63 state->option.PositionInvariant = 1; in _mesa_ARBvp_parse_option()
72 _mesa_ARBfp_parse_option(struct asm_parser_state *state, const char *option) in _mesa_ARBfp_parse_option() argument
81 if (strncmp(option, "ARB_", 4) == 0) { in _mesa_ARBfp_parse_option()
84 option += 4; in _mesa_ARBfp_parse_option()
86 if (strncmp(option, "fog_", 4) == 0) { in _mesa_ARBfp_parse_option()
87 option += 4; in _mesa_ARBfp_parse_option()
89 if (strcmp(option, "exp") == 0) { in _mesa_ARBfp_parse_option()
91 } else if (strcmp(option, "exp2") == 0) { in _mesa_ARBfp_parse_option()
93 } else if (strcmp(option, "linear") == 0) { in _mesa_ARBfp_parse_option()
100 if (state->option.Fog == OPTION_NONE) { in _mesa_ARBfp_parse_option()
101 state->option.Fog = fog_option; in _mesa_ARBfp_parse_option()
124 return state->option.Fog == fog_option ? 1 : 0; in _mesa_ARBfp_parse_option()
125 } else if (strncmp(option, "precision_hint_", 15) == 0) { in _mesa_ARBfp_parse_option()
126 option += 15; in _mesa_ARBfp_parse_option()
136 if (strcmp(option, "nicest") == 0 && in _mesa_ARBfp_parse_option()
137 state->option.PrecisionHint != OPTION_FASTEST) { in _mesa_ARBfp_parse_option()
138 state->option.PrecisionHint = OPTION_NICEST; in _mesa_ARBfp_parse_option()
140 } else if (strcmp(option, "fastest") == 0 && in _mesa_ARBfp_parse_option()
141 state->option.PrecisionHint != OPTION_NICEST) { in _mesa_ARBfp_parse_option()
142 state->option.PrecisionHint = OPTION_FASTEST; in _mesa_ARBfp_parse_option()
147 } else if (strcmp(option, "draw_buffers") == 0) { in _mesa_ARBfp_parse_option()
151 state->option.DrawBuffers = 1; in _mesa_ARBfp_parse_option()
153 } else if (strcmp(option, "fragment_program_shadow") == 0) { in _mesa_ARBfp_parse_option()
155 state->option.Shadow = 1; in _mesa_ARBfp_parse_option()
158 } else if (strncmp(option, "fragment_coord_", 15) == 0) { in _mesa_ARBfp_parse_option()
159 option += 15; in _mesa_ARBfp_parse_option()
161 if (strcmp(option, "origin_upper_left") == 0) { in _mesa_ARBfp_parse_option()
162 state->option.OriginUpperLeft = 1; in _mesa_ARBfp_parse_option()
165 else if (strcmp(option, "pixel_center_integer") == 0) { in _mesa_ARBfp_parse_option()
166 state->option.PixelCenterInteger = 1; in _mesa_ARBfp_parse_option()
171 } else if (strncmp(option, "ATI_", 4) == 0) { in _mesa_ARBfp_parse_option()
172 option += 4; in _mesa_ARBfp_parse_option()
174 if (strcmp(option, "draw_buffers") == 0) { in _mesa_ARBfp_parse_option()
178 state->option.DrawBuffers = 1; in _mesa_ARBfp_parse_option()