Mesa (master): dispatch: Make all API functions non-static.

Paul Berry stereotype441 at kemper.freedesktop.org
Tue Nov 6 21:02:39 UTC 2012


Module: Mesa
Branch: master
Commit: f7fa946d1da96178e63e42dd8d8739d3e0f66e1d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f7fa946d1da96178e63e42dd8d8739d3e0f66e1d

Author: Paul Berry <stereotype441 at gmail.com>
Date:   Fri Oct 19 09:47:11 2012 -0700

dispatch: Make all API functions non-static.

Some of the functions that we store in the dispatch table are declared
as non-static in their .c files and are inserted into the dispatch
table directly by _mesa_create_exec_table().  Other functions are
declared as static, and are inserted into the dispatch table by a
dedicated function that lives in the same .c file
(e.g. _mesa_loopback_init_api_table() in api_loopback.c).

This patch makes all of these functions non-static, and creates
appropriate prototypes for them, so that in future patches we can
populate the entire dispatch table using a single code-generated
function.

Reviewed-by: Jordan Justen <jordan.l.justen at intel.com>
Reviewed-by: Matt Turner <mattst88 at gmail.com>

---

 src/mesa/main/accum.c        |    2 +-
 src/mesa/main/accum.h        |    2 +
 src/mesa/main/api_loopback.c |  416 ++++++++++++++++++++--------------------
 src/mesa/main/api_loopback.h |  437 ++++++++++++++++++++++++++++++++++++++++++
 src/mesa/main/bufferobj.c    |    4 +-
 src/mesa/main/bufferobj.h    |   66 +++----
 src/mesa/main/colortab.c     |   16 +-
 src/mesa/main/colortab.h     |   26 +++-
 src/mesa/main/convolve.c     |   30 ++--
 src/mesa/main/convolve.h     |   45 +++++
 src/mesa/main/dlist.c        |   12 +-
 src/mesa/main/dlist.h        |   19 ++-
 src/mesa/main/drawpix.c      |    6 +-
 src/mesa/main/drawpix.h      |   11 +
 src/mesa/main/errors.c       |    8 +-
 src/mesa/main/errors.h       |   16 ++
 src/mesa/main/eval.c         |   28 ++--
 src/mesa/main/eval.h         |   39 ++++
 src/mesa/main/feedback.c     |   14 +-
 src/mesa/main/feedback.h     |   16 ++-
 src/mesa/main/histogram.c    |   28 ++--
 src/mesa/main/histogram.h    |   31 +++
 src/mesa/main/pixel.c        |   22 +-
 src/mesa/main/pixel.h        |   24 +++-
 src/mesa/main/queryobj.c     |   28 ++--
 src/mesa/main/queryobj.h     |   29 +++
 src/mesa/main/rastpos.c      |   96 +++++-----
 src/mesa/main/rastpos.h      |   98 ++++++++++
 src/mesa/main/samplerobj.c   |   20 +-
 src/mesa/main/samplerobj.h   |   33 +++-
 src/mesa/main/texgen.c       |    8 +-
 src/mesa/main/texgen.h       |   22 ++-
 src/mesa/main/uniforms.c     |   12 +-
 src/mesa/main/uniforms.h     |  178 ++++++++----------
 34 files changed, 1304 insertions(+), 538 deletions(-)

Diff:   http://cgit.freedesktop.org/mesa/mesa/diff/?id=f7fa946d1da96178e63e42dd8d8739d3e0f66e1d



More information about the mesa-commit mailing list