summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util/u_format.h
diff options
context:
space:
mode:
authorLuca Barbieri <luca@luca-barbieri.com>2010-04-02 01:43:49 +0200
committerLuca Barbieri <luca@luca-barbieri.com>2010-04-02 02:31:43 +0200
commitaee5bb5b8ad80d4aed849519a80b1d696991e866 (patch)
treeb98b8570bbc11c3aa72253bef2e1d3260cc8fd71 /src/gallium/auxiliary/util/u_format.h
parentecaaf8c15f98551f809d5219f87af7fdb451c029 (diff)
gallium/util: add util_format_init that inits s3tc and util_half
Switch from auto-init to explicit init for util_half per Brian Paul's indication. NOTE: this is probably broken because not enough things call util_format_init. Will be fixed shortly
Diffstat (limited to 'src/gallium/auxiliary/util/u_format.h')
-rw-r--r--src/gallium/auxiliary/util/u_format.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_format.h b/src/gallium/auxiliary/util/u_format.h
index 93818a3161..f7daa6d923 100644
--- a/src/gallium/auxiliary/util/u_format.h
+++ b/src/gallium/auxiliary/util/u_format.h
@@ -32,6 +32,7 @@
#include "pipe/p_format.h"
#include "util/u_debug.h"
+#include "util/u_inline_init.h"
#ifdef __cplusplus
extern "C" {
@@ -530,6 +531,8 @@ util_format_write_4ub(enum pipe_format format,
void *dst, unsigned dst_stride,
unsigned x, unsigned y, unsigned w, unsigned h);
+UTIL_INLINE_INIT(util_format);
+
#ifdef __cplusplus
} // extern "C" {
#endif