{
boolean success;
- util_format_s3tc_init();
+ util_format_init();
success = test_all();
*/
#include "u_format.h"
+#include "u_format_s3tc.h"
+#include "u_half.h"
void
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();
+ util_half_init();
+}
#include "pipe/p_format.h"
#include "util/u_debug.h"
+#include "util/u_inline_init.h"
#ifdef __cplusplus
extern "C" {
void *dst, unsigned dst_stride,
unsigned x, unsigned y, unsigned w, unsigned h);
+UTIL_INLINE_INIT(util_format);
+
#ifdef __cplusplus
} // extern "C" {
#endif
uint16_t util_float_to_half_base_table[512];
uint8_t util_float_to_half_shift_table[512];
-static void
-util_half_init_tables(void)
+boolean util_half_inited;
+
+void
+util_half_do_init(void)
{
int i;
util_float_to_half_shift_table[256 + i] = util_float_to_half_shift_table[i];
}
}
-
-UTIL_INIT(util_half_init_tables);
#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" {
return util_floatui_to_half(i.ui);
}
+UTIL_INLINE_INIT(util_half);
+
#ifdef __cplusplus
}
#endif
#include "util/u_memory.h"
+#include "util/u_format.h"
#include "util/u_format_s3tc.h"
#include "pipe/p_defines.h"
#include "pipe/p_screen.h"
screen->base.context_create = softpipe_create_context;
screen->base.flush_frontbuffer = softpipe_flush_frontbuffer;
- util_format_s3tc_init();
+ util_format_init();
softpipe_init_screen_texture_funcs(&screen->base);
softpipe_init_screen_buffer_funcs(&screen->base);