Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: src/mesa/swrast/s_zoom.c

Issue 183923010: Disable optimization on _swrast_write_zoomed_stencil_span (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/mesa.git@master
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698