summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util
diff options
context:
space:
mode:
authorLuca Barbieri <[email protected]>2010-04-02 04:51:50 +0200
committerLuca Barbieri <[email protected]>2010-04-02 06:16:30 +0200
commit2a090ae80a597f498f113fe58a772ddf3dca12e0 (patch)
treec4758cfc46be0654b4e4cecff435fe56494dcd2b /src/gallium/auxiliary/util
parent5126683e3b971ccfb51e50e560750ce44e86bae8 (diff)
gallium/util: revert util_format_init addition
Putting calls to util_format_init all over the codebase is infeasible. Instead, half float tables are pregenerated, and the s3tc library is loaded on demand. I believe this is a solution that combines performance, cleanliness, flexibility and portability.
Diffstat (limited to 'src/gallium/auxiliary/util')
-rw-r--r--src/gallium/auxiliary/util/u_format.c8
-rw-r--r--src/gallium/auxiliary/util/u_format.h2
2 files changed, 0 insertions, 10 deletions
diff --git a/src/gallium/auxiliary/util/u_format.c b/src/gallium/auxiliary/util/u_format.c
index fae0a462dcb..112490f3b41 100644
--- a/src/gallium/auxiliary/util/u_format.c
+++ b/src/gallium/auxiliary/util/u_format.c
@@ -117,11 +117,3 @@ util_format_write_4ub(enum pipe_format format, const uint8_t *src, unsigned src_
format_desc->pack_8unorm(dst_row, dst_stride, src_row, src_stride, w, h);
}
-
-boolean util_format_inited;
-
-void
-util_format_do_init(void)
-{
- util_format_s3tc_init();
-}
diff --git a/src/gallium/auxiliary/util/u_format.h b/src/gallium/auxiliary/util/u_format.h
index fc550405d87..2ac3abab23a 100644
--- a/src/gallium/auxiliary/util/u_format.h
+++ b/src/gallium/auxiliary/util/u_format.h
@@ -552,8 +552,6 @@ 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