From 5126683e3b971ccfb51e50e560750ce44e86bae8 Mon Sep 17 00:00:00 2001 From: Luca Barbieri Date: Fri, 2 Apr 2010 05:23:32 +0200 Subject: gallium/util: add util_format_is_supported to check for pack/unpack This improves the code by making it more readable, and removes special knowledge of S3TC and other formats from softpipe. --- progs/gallium/unit/u_format_test.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'progs/gallium') diff --git a/progs/gallium/unit/u_format_test.c b/progs/gallium/unit/u_format_test.c index dcdbf6548de..9883e1e41ca 100644 --- a/progs/gallium/unit/u_format_test.c +++ b/progs/gallium/unit/u_format_test.c @@ -354,10 +354,8 @@ test_one(test_func_t func, const char *suffix) format_desc = util_format_description(test->format); - if (format_desc->layout == UTIL_FORMAT_LAYOUT_S3TC && - !util_format_s3tc_enabled) { + if (!util_format_is_supported(test->format)) skip = TRUE; - } if (test->format != last_format) { printf("%s util_format_%s_%s ...\n", -- cgit v1.2.3