| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Mesa 3-D graphics library | 2 * Mesa 3-D graphics library |
| 3 * Version: 6.5 | 3 * Version: 6.5 |
| 4 * | 4 * |
| 5 * Copyright (C) 1999-2005 Brian Paul All Rights Reserved. | 5 * Copyright (C) 1999-2005 Brian Paul All Rights Reserved. |
| 6 * Copyright (C) 2009 VMware, Inc. All Rights Reserved. | 6 * Copyright (C) 2009 VMware, Inc. All Rights Reserved. |
| 7 * | 7 * |
| 8 * Permission is hereby granted, free of charge, to any person obtaining a | 8 * Permission is hereby granted, free of charge, to any person obtaining a |
| 9 * copy of this software and associated documentation files (the "Software"), | 9 * copy of this software and associated documentation files (the "Software"), |
| 10 * to deal in the Software without restriction, including without limitation | 10 * to deal in the Software without restriction, including without limitation |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 for (i = 0; i < Elements(debug_opt); i++) { | 209 for (i = 0; i < Elements(debug_opt); i++) { |
| 210 if (strstr(debug, debug_opt[i].name)) | 210 if (strstr(debug, debug_opt[i].name)) |
| 211 MESA_VERBOSE |= debug_opt[i].flag; | 211 MESA_VERBOSE |= debug_opt[i].flag; |
| 212 } | 212 } |
| 213 | 213 |
| 214 /* Debug flag: | 214 /* Debug flag: |
| 215 */ | 215 */ |
| 216 if (strstr(debug, "flush")) | 216 if (strstr(debug, "flush")) |
| 217 MESA_DEBUG_FLAGS |= DEBUG_ALWAYS_FLUSH; | 217 MESA_DEBUG_FLAGS |= DEBUG_ALWAYS_FLUSH; |
| 218 | 218 |
| 219 #if defined(_FPU_GETCW) && defined(_FPU_SETCW) | |
| 220 if (strstr(debug, "fpexceptions")) { | |
| 221 /* raise FP exceptions */ | |
| 222 fpu_control_t mask; | |
| 223 _FPU_GETCW(mask); | |
| 224 mask &= ~(_FPU_MASK_IM | _FPU_MASK_DM | _FPU_MASK_ZM | |
| 225 | _FPU_MASK_OM | _FPU_MASK_UM); | |
| 226 _FPU_SETCW(mask); | |
| 227 } | |
| 228 #endif | |
| 229 | |
| 230 #else | 219 #else |
| 231 (void) debug; | 220 (void) debug; |
| 232 #endif | 221 #endif |
| 233 } | 222 } |
| 234 | 223 |
| 235 | 224 |
| 236 void | 225 void |
| 237 _mesa_init_debug( GLcontext *ctx ) | 226 _mesa_init_debug( GLcontext *ctx ) |
| 238 { | 227 { |
| 239 char *c; | 228 char *c; |
| (...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 627 printf("%02x%02x%02x ", data[0], data[1], data[2]); | 616 printf("%02x%02x%02x ", data[0], data[1], data[2]); |
| 628 else if (c==4) | 617 else if (c==4) |
| 629 printf("%02x%02x%02x%02x ", data[0], data[1], data[2], data[3]); | 618 printf("%02x%02x%02x%02x ", data[0], data[1], data[2], data[3]); |
| 630 data += (img->RowStride - img->Width) * c; | 619 data += (img->RowStride - img->Width) * c; |
| 631 } | 620 } |
| 632 /* XXX use img->ImageStride here */ | 621 /* XXX use img->ImageStride here */ |
| 633 printf("\n"); | 622 printf("\n"); |
| 634 } | 623 } |
| 635 #endif | 624 #endif |
| 636 } | 625 } |
| OLD | NEW |