Mesa (lp-binning): llvmpipe: added lp_rast_get_num_threads()

Brian Paul brianp at kemper.freedesktop.org
Fri Dec 11 17:01:21 PST 2009


Module: Mesa
Branch: lp-binning
Commit: 932374073863379e9da862d6115410889f038154
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=932374073863379e9da862d6115410889f038154

Author: Brian Paul <brianp at vmware.com>
Date:   Fri Dec 11 17:45:52 2009 -0700

llvmpipe: added lp_rast_get_num_threads()

---

 src/gallium/drivers/llvmpipe/lp_rast.c |    7 +++++++
 src/gallium/drivers/llvmpipe/lp_rast.h |    2 ++
 2 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_rast.c b/src/gallium/drivers/llvmpipe/lp_rast.c
index 9020cf9..6b7aa8d 100644
--- a/src/gallium/drivers/llvmpipe/lp_rast.c
+++ b/src/gallium/drivers/llvmpipe/lp_rast.c
@@ -801,3 +801,10 @@ void lp_rast_destroy( struct lp_rasterizer *rast )
    FREE(rast);
 }
 
+
+/** Return number of rasterization threads */
+unsigned
+lp_rast_get_num_threads( struct lp_rasterizer *rast )
+{
+   return rast->num_threads;
+}
diff --git a/src/gallium/drivers/llvmpipe/lp_rast.h b/src/gallium/drivers/llvmpipe/lp_rast.h
index 75f7b74..785be49 100644
--- a/src/gallium/drivers/llvmpipe/lp_rast.h
+++ b/src/gallium/drivers/llvmpipe/lp_rast.h
@@ -133,6 +133,8 @@ struct lp_rasterizer *lp_rast_create( struct pipe_screen *screen,
 
 void lp_rast_destroy( struct lp_rasterizer * );
 
+unsigned lp_rast_get_num_threads( struct lp_rasterizer * );
+
 void lp_rasterize_bins( struct lp_rasterizer *rast,
                         struct lp_bins *bins,
                         const struct pipe_framebuffer_state *fb,



More information about the mesa-commit mailing list