Mesa (master): gallium: Move pf_is_depth_stencil to p_format.h.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Tue Mar 31 11:29:21 UTC 2009


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

Author: José Fonseca <jfonseca at vmware.com>
Date:   Tue Mar 31 09:46:55 2009 +0100

gallium: Move pf_is_depth_stencil to p_format.h.

---

 src/gallium/include/pipe/p_format.h |    7 +++++++
 src/mesa/state_tracker/st_texture.h |    6 ------
 2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/src/gallium/include/pipe/p_format.h b/src/gallium/include/pipe/p_format.h
index 3f65a60..a279eef 100644
--- a/src/gallium/include/pipe/p_format.h
+++ b/src/gallium/include/pipe/p_format.h
@@ -537,6 +537,13 @@ pf_get_nblocks(const struct pipe_format_block *block, unsigned width, unsigned h
 }
 
 static INLINE boolean 
+pf_is_depth_stencil( enum pipe_format format )
+{
+   return (pf_get_component_bits( format, PIPE_FORMAT_COMP_Z ) +
+           pf_get_component_bits( format, PIPE_FORMAT_COMP_S )) != 0;
+}
+
+static INLINE boolean 
 pf_is_compressed( enum pipe_format format )
 {
    return pf_layout(format) == PIPE_FORMAT_LAYOUT_DXT ? TRUE : FALSE;
diff --git a/src/mesa/state_tracker/st_texture.h b/src/mesa/state_tracker/st_texture.h
index 840b7e2..28c2f58 100644
--- a/src/mesa/state_tracker/st_texture.h
+++ b/src/mesa/state_tracker/st_texture.h
@@ -99,12 +99,6 @@ st_get_stobj_texture(struct st_texture_object *stObj)
    return stObj ? stObj->pt : NULL;
 }
 
-static INLINE GLboolean pf_is_depth_stencil( enum pipe_format format )
-{
-   return (pf_get_component_bits( format, PIPE_FORMAT_COMP_Z ) +
-           pf_get_component_bits( format, PIPE_FORMAT_COMP_S )) != 0;
-}
-
 
 extern struct pipe_texture *
 st_texture_create(struct st_context *st,




More information about the mesa-commit mailing list