Mesa (main): llvmpipe: inline retry_triangle_ccw

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Feb 4 06:47:13 UTC 2022


Module: Mesa
Branch: main
Commit: 66188e86931ac1a2ecb14595b5157e6fe54ebdcd
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=66188e86931ac1a2ecb14595b5157e6fe54ebdcd

Author: Dave Airlie <airlied at redhat.com>
Date:   Thu Feb  3 14:54:31 2022 +1000

llvmpipe: inline retry_triangle_ccw

This reduces some of the overheads in the callstack here.

Reviewed-by: Jose Fonseca <jfonseca at vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14846>

---

 src/gallium/drivers/llvmpipe/lp_setup_tri.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_setup_tri.c b/src/gallium/drivers/llvmpipe/lp_setup_tri.c
index 3ef36702758..088ddf39def 100644
--- a/src/gallium/drivers/llvmpipe/lp_setup_tri.c
+++ b/src/gallium/drivers/llvmpipe/lp_setup_tri.c
@@ -1010,7 +1010,7 @@ fail:
 /**
  * Try to draw the triangle, restart the scene on failure.
  */
-static void retry_triangle_ccw( struct lp_setup_context *setup,
+static inline void retry_triangle_ccw( struct lp_setup_context *setup,
                                 struct fixed_position* position,
                                 const float (*v0)[4],
                                 const float (*v1)[4],



More information about the mesa-commit mailing list