summaryrefslogtreecommitdiffstats
path: root/progs
diff options
context:
space:
mode:
authorLuca Barbieri <[email protected]>2010-04-02 05:23:32 +0200
committerLuca Barbieri <[email protected]>2010-04-02 06:16:30 +0200
commit5126683e3b971ccfb51e50e560750ce44e86bae8 (patch)
treeccdb7104752d266653a1201a97e551bed94ecd23 /progs
parent52e9b990a192a9329006d5f7dd2ac222effea5a5 (diff)
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.
Diffstat (limited to 'progs')
-rw-r--r--progs/gallium/unit/u_format_test.c4
1 files changed, 1 insertions, 3 deletions
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",