diff options
Diffstat (limited to 'progs/gallium')
-rw-r--r-- | progs/gallium/unit/u_format_test.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/progs/gallium/unit/u_format_test.c b/progs/gallium/unit/u_format_test.c index 8dffaf4936..53e028482b 100644 --- a/progs/gallium/unit/u_format_test.c +++ b/progs/gallium/unit/u_format_test.c @@ -30,8 +30,10 @@ #include <stdio.h> #include <float.h> +#include "util/u_half.h" #include "util/u_format.h" #include "util/u_format_tests.h" +#include "util/u_format_s3tc.h" static boolean @@ -352,8 +354,10 @@ test_one(test_func_t func, const char *suffix) format_desc = util_format_description(test->format); - if (!util_format_is_supported(test->format)) + if (format_desc->layout == UTIL_FORMAT_LAYOUT_S3TC && + !util_format_s3tc_enabled) { skip = TRUE; + } if (test->format != last_format) { printf("%s util_format_%s_%s ...\n", @@ -400,6 +404,8 @@ int main(int argc, char **argv) { boolean success; + util_format_s3tc_init(); + success = test_all(); return success ? 0 : 1; |