swrast: simplify function pointer calls
authorEric Engestrom <eric.engestrom@intel.com>
Sat, 29 Jun 2019 23:01:15 +0000 (00:01 +0100)
committerEric Engestrom <eric.engestrom@intel.com>
Mon, 1 Jul 2019 17:51:49 +0000 (18:51 +0100)
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
src/mesa/swrast/s_aaline.c
src/mesa/swrast/s_blit.c

index de5b42b9f6bbc9c6c9e419f52b99d298d511c2ac..cdd860a41bc7b16743d987e6d77967493bd72075 100644 (file)
@@ -406,7 +406,7 @@ segment(struct gl_context *ctx,
          GLint iy;
          /* scan across the line, bottom-to-top */
          for (iy = iyBot; iy < iyTop; iy++) {
-            (*plot)(ctx, line, ix, iy);
+            plot(ctx, line, ix, iy);
          }
          yBot += dydx;
          yTop += dydx;
@@ -452,7 +452,7 @@ segment(struct gl_context *ctx,
          GLint ix;
          /* scan across the line, left-to-right */
          for (ix = ixLeft; ix < ixRight; ix++) {
-            (*plot)(ctx, line, ix, iy);
+            plot(ctx, line, ix, iy);
          }
          xLeft += dxdy;
          xRight += dxdy;
index 107e41307ee3d198125740cc6f1f2711af016c0d..557f107b5368e884c47c09cff7b29baf5a939e15 100644 (file)
@@ -334,7 +334,7 @@ blit_nearest(struct gl_context *ctx,
                break;
             }
 
-            (*resampleRow)(srcWidth, dstWidth, srcBuffer, dstBuffer, invertX);
+            resampleRow(srcWidth, dstWidth, srcBuffer, dstBuffer, invertX);
             prevY = srcRow;
          }