diff options
author | Luca Barbieri <[email protected]> | 2010-04-02 01:43:49 +0200 |
---|---|---|
committer | Luca Barbieri <[email protected]> | 2010-04-02 02:31:43 +0200 |
commit | aee5bb5b8ad80d4aed849519a80b1d696991e866 (patch) | |
tree | b98b8570bbc11c3aa72253bef2e1d3260cc8fd71 /src/gallium/auxiliary/util/u_half.h | |
parent | ecaaf8c15f98551f809d5219f87af7fdb451c029 (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_half.h')
-rw-r--r-- | src/gallium/auxiliary/util/u_half.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_half.h b/src/gallium/auxiliary/util/u_half.h index 4b80d45b919..02f0f241936 100644 --- a/src/gallium/auxiliary/util/u_half.h +++ b/src/gallium/auxiliary/util/u_half.h @@ -2,7 +2,8 @@ #define U_HALF_H #include "pipe/p_compiler.h" -#include "u_math.h" +#include "util/u_math.h" +#include "util/u_inline_init.h" #ifdef __cplusplus extern "C" { @@ -55,6 +56,8 @@ util_float_to_half(float f) return util_floatui_to_half(i.ui); } +UTIL_INLINE_INIT(util_half); + #ifdef __cplusplus } #endif |