Mesa (master): swrast: simplify function pointer calls
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Jul 1 17:52:23 UTC 2019
Module: Mesa
Branch: master
Commit: 04e0ac59b14fa0ecb874c10681acf316f633253d
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=04e0ac59b14fa0ecb874c10681acf316f633253d
Author: Eric Engestrom <eric.engestrom at intel.com>
Date: Sun Jun 30 00:01:15 2019 +0100
swrast: simplify function pointer calls
Signed-off-by: Eric Engestrom <eric.engestrom at intel.com>
Reviewed-by: Sagar Ghuge <sagar.ghuge at intel.com>
---
src/mesa/swrast/s_aaline.c | 4 ++--
src/mesa/swrast/s_blit.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/mesa/swrast/s_aaline.c b/src/mesa/swrast/s_aaline.c
index de5b42b9f6b..cdd860a41bc 100644
--- a/src/mesa/swrast/s_aaline.c
+++ b/src/mesa/swrast/s_aaline.c
@@ -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;
diff --git a/src/mesa/swrast/s_blit.c b/src/mesa/swrast/s_blit.c
index 107e41307ee..557f107b536 100644
--- a/src/mesa/swrast/s_blit.c
+++ b/src/mesa/swrast/s_blit.c
@@ -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;
}
More information about the mesa-commit
mailing list