Module: Mesa Branch: master Commit: 9b69545c42ce2722c21419f04794914abc455889 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9b69545c42ce2722c21419f04794914abc455889
Author: José Fonseca <jfons...@vmware.com> Date: Fri Jul 2 16:52:19 2010 +0100 util: Expose util_format_fits_8unorm(). --- src/gallium/auxiliary/util/u_format.c | 2 +- src/gallium/auxiliary/util/u_format.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/gallium/auxiliary/util/u_format.c b/src/gallium/auxiliary/util/u_format.c index 3168a1f..43d09f1 100644 --- a/src/gallium/auxiliary/util/u_format.c +++ b/src/gallium/auxiliary/util/u_format.c @@ -120,7 +120,7 @@ util_format_write_4ub(enum pipe_format format, const uint8_t *src, unsigned src_ } -static INLINE boolean +boolean util_format_fits_8unorm(const struct util_format_description *format_desc) { unsigned chan; diff --git a/src/gallium/auxiliary/util/u_format.h b/src/gallium/auxiliary/util/u_format.h index fd95bea..a4f2829 100644 --- a/src/gallium/auxiliary/util/u_format.h +++ b/src/gallium/auxiliary/util/u_format.h @@ -663,6 +663,9 @@ util_format_write_4ub(enum pipe_format format, * Generic format conversion; */ +boolean +util_format_fits_8unorm(const struct util_format_description *format_desc); + void util_format_translate(enum pipe_format dst_format, void *dst, unsigned dst_stride, _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-commit