Rev 4358 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4358 | Rev 4525 | ||
---|---|---|---|
Line 138... | Line 138... | ||
138 | */ |
138 | */ |
139 | static void |
139 | static void |
140 | set_verbose_flags(const char *str) |
140 | set_verbose_flags(const char *str) |
141 | { |
141 | { |
142 | #ifdef DEBUG |
142 | #ifdef DEBUG |
- | 143 | MESA_VERBOSE = VERBOSE_TEXTURE; |
|
- | 144 | ||
143 | struct option { |
145 | struct option { |
144 | const char *name; |
146 | const char *name; |
145 | GLbitfield flag; |
147 | GLbitfield flag; |
146 | }; |
148 | }; |
147 | static const struct option opts[] = { |
149 | static const struct option opts[] = { |
Line 166... | Line 168... | ||
166 | MESA_VERBOSE = 0x0; |
168 | MESA_VERBOSE = 0x0; |
167 | for (i = 0; i < Elements(opts); i++) { |
169 | for (i = 0; i < Elements(opts); i++) { |
168 | if (strstr(str, opts[i].name) || strcmp(str, "all") == 0) |
170 | if (strstr(str, opts[i].name) || strcmp(str, "all") == 0) |
169 | MESA_VERBOSE |= opts[i].flag; |
171 | MESA_VERBOSE |= opts[i].flag; |
170 | } |
172 | } |
- | 173 | MESA_VERBOSE|= VERBOSE_TEXTURE; |
|
171 | #endif |
174 | #endif |
172 | } |
175 | } |
Line 173... | Line 176... | ||
173 | 176 | ||
Line 179... | Line 182... | ||
179 | */ |
182 | */ |
180 | static void |
183 | static void |
181 | set_debug_flags(const char *str) |
184 | set_debug_flags(const char *str) |
182 | { |
185 | { |
183 | #ifdef DEBUG |
186 | #ifdef DEBUG |
- | 187 | MESA_DEBUG_FLAGS = DEBUG_INCOMPLETE_TEXTURE|DEBUG_INCOMPLETE_FBO; |
|
- | 188 | ||
184 | struct option { |
189 | struct option { |
185 | const char *name; |
190 | const char *name; |
186 | GLbitfield flag; |
191 | GLbitfield flag; |
187 | }; |
192 | }; |
188 | static const struct option opts[] = { |
193 | static const struct option opts[] = { |
Line 199... | Line 204... | ||
199 | MESA_DEBUG_FLAGS = 0x0; |
204 | MESA_DEBUG_FLAGS = 0x0; |
200 | for (i = 0; i < Elements(opts); i++) { |
205 | for (i = 0; i < Elements(opts); i++) { |
201 | if (strstr(str, opts[i].name)) |
206 | if (strstr(str, opts[i].name)) |
202 | MESA_DEBUG_FLAGS |= opts[i].flag; |
207 | MESA_DEBUG_FLAGS |= opts[i].flag; |
203 | } |
208 | } |
- | 209 | MESA_DEBUG_FLAGS = DEBUG_INCOMPLETE_TEXTURE|DEBUG_INCOMPLETE_FBO; |
|
204 | #endif |
210 | #endif |
205 | } |
211 | } |
Line 206... | Line 212... | ||
206 | 212 |