Mesa (master): gallium: Fix segfault and valgrind error introduced with commit 3f2e006b759705abd7c409d30f9aeb1f2a75b83f
Thomas Hellstrom
thomash at kemper.freedesktop.org
Mon Jun 15 09:45:26 UTC 2009
Module: Mesa
Branch: master
Commit: cbe5af766eb52516e50d38c379bbde3391f6c0c2
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=cbe5af766eb52516e50d38c379bbde3391f6c0c2
Author: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
Date: Mon Jun 15 11:20:31 2009 +0200
gallium: Fix segfault and valgrind error introduced with commit 3f2e006b759705abd7c409d30f9aeb1f2a75b83f
Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
---
src/gallium/include/pipe/p_format.h | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/gallium/include/pipe/p_format.h b/src/gallium/include/pipe/p_format.h
index e31538c..c4469d4 100644
--- a/src/gallium/include/pipe/p_format.h
+++ b/src/gallium/include/pipe/p_format.h
@@ -563,7 +563,11 @@ pf_is_depth_and_stencil( enum pipe_format format )
}
/** DEPRECATED: For backwards compatibility */
-#define pf_is_depth_stencil pf_is_depth_or_stencil
+static INLINE boolean
+pf_is_depth_stencil( enum pipe_format format )
+{
+ return pf_is_depth_or_stencil( format );
+}
static INLINE boolean
pf_is_compressed( enum pipe_format format )
More information about the mesa-commit
mailing list