OLD | NEW |
1 /* | 1 /* |
2 * Mesa 3-D graphics library | 2 * Mesa 3-D graphics library |
3 * Version: 7.1 | 3 * Version: 7.1 |
4 * | 4 * |
5 * Copyright (C) 1999-2008 Brian Paul All Rights Reserved. | 5 * Copyright (C) 1999-2008 Brian Paul All Rights Reserved. |
6 * | 6 * |
7 * Permission is hereby granted, free of charge, to any person obtaining a | 7 * Permission is hereby granted, free of charge, to any person obtaining a |
8 * copy of this software and associated documentation files (the "Software"), | 8 * copy of this software and associated documentation files (the "Software"), |
9 * to deal in the Software without restriction, including without limitation | 9 * to deal in the Software without restriction, including without limitation |
10 * the rights to use, copy, modify, merge, publish, distribute, sublicense, | 10 * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 } | 388 } |
389 | 389 |
390 /* write the zoomed spans */ | 390 /* write the zoomed spans */ |
391 for (y = y0; y < y1; y++) { | 391 for (y = y0; y < y1; y++) { |
392 _swrast_write_stencil_span(ctx, zoomedWidth, x0, y, zoomedVals); | 392 _swrast_write_stencil_span(ctx, zoomedWidth, x0, y, zoomedVals); |
393 } | 393 } |
394 | 394 |
395 free(zoomedVals); | 395 free(zoomedVals); |
396 } | 396 } |
397 | 397 |
| 398 // http://crbug.com/348397 |
| 399 #ifdef _MSC_VER |
| 400 #pragma optimize("", off) |
| 401 #endif |
398 | 402 |
399 /** | 403 /** |
400 * Zoom/write 32-bit Z values. | 404 * Zoom/write 32-bit Z values. |
401 * No per-fragment operations are applied. | 405 * No per-fragment operations are applied. |
402 */ | 406 */ |
403 void | 407 void |
404 _swrast_write_zoomed_z_span(struct gl_context *ctx, GLint imgX, GLint imgY, | 408 _swrast_write_zoomed_z_span(struct gl_context *ctx, GLint imgX, GLint imgY, |
405 GLint width, GLint spanX, GLint spanY, | 409 GLint width, GLint spanX, GLint spanY, |
406 const GLuint *zVals) | 410 const GLuint *zVals) |
407 { | 411 { |
(...skipping 25 matching lines...) Expand all Loading... |
433 } | 437 } |
434 | 438 |
435 /* write the zoomed spans */ | 439 /* write the zoomed spans */ |
436 for (y = y0; y < y1; y++) { | 440 for (y = y0; y < y1; y++) { |
437 GLubyte *dst = _swrast_pixel_address(rb, x0, y); | 441 GLubyte *dst = _swrast_pixel_address(rb, x0, y); |
438 _mesa_pack_uint_z_row(rb->Format, zoomedWidth, zoomedVals, dst); | 442 _mesa_pack_uint_z_row(rb->Format, zoomedWidth, zoomedVals, dst); |
439 } | 443 } |
440 | 444 |
441 free(zoomedVals); | 445 free(zoomedVals); |
442 } | 446 } |
| 447 |
| 448 #ifdef _MSC_VER |
| 449 #pragma optimize("", off) |
| 450 #endif |
OLD | NEW |