Home | History | Annotate | Download | only in program

Lines Matching refs:option

60 _mesa_ARBvp_parse_option(struct asm_parser_state *state, const char *option)
62 if (strcmp(option, "ARB_position_invariant") == 0) {
63 state->option.PositionInvariant = 1;
72 _mesa_ARBfp_parse_option(struct asm_parser_state *state, const char *option)
81 if (strncmp(option, "ARB_", 4) == 0) {
84 option += 4;
86 if (strncmp(option, "fog_", 4) == 0) {
87 option += 4;
89 if (strcmp(option, "exp") == 0) {
91 } else if (strcmp(option, "exp2") == 0) {
93 } else if (strcmp(option, "linear") == 0) {
96 /* invalid option */
100 if (state->option.Fog == OPTION_NONE) {
101 state->option.Fog = fog_option;
109 * "Only one fog application option may be specified by any given
121 * We choose to allow programs to specify the same OPTION redundantly,
124 return state->option.Fog == fog_option ? 1 : 0;
125 } else if (strncmp(option, "precision_hint_", 15) == 0) {
126 option += 15;
130 * "Only one precision control option may be specified by any given
136 if (strcmp(option, "nicest") == 0 &&
137 state->option.PrecisionHint != OPTION_FASTEST) {
138 state->option.PrecisionHint = OPTION_NICEST;
140 } else if (strcmp(option, "fastest") == 0 &&
141 state->option.PrecisionHint != OPTION_NICEST) {
142 state->option.PrecisionHint = OPTION_FASTEST;
147 } else if (strcmp(option, "draw_buffers") == 0) {
151 state->option.DrawBuffers = 1;
153 } else if (strcmp(option, "fragment_program_shadow") == 0) {
155 state->option.Shadow = 1;
158 } else if (strncmp(option, "fragment_coord_", 15) == 0) {
159 option += 15;
161 if (strcmp(option, "origin_upper_left") == 0) {
162 state->option.OriginUpperLeft = 1;
165 else if (strcmp(option, "pixel_center_integer") == 0) {
166 state->option.PixelCenterInteger = 1;
171 } else if (strncmp(option, "ATI_", 4) == 0) {
172 option += 4;
174 if (strcmp(option, "draw_buffers") == 0) {
178 state->option.DrawBuffers = 1;