diff options
author | José Fonseca <jfonseca@vmware.com> | 2010-04-03 00:51:19 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2010-04-03 00:51:19 +0100 |
commit | 47e61426586bb9f9f40950e9c4372e4f12bb9ed6 (patch) | |
tree | 2387c7c4af139a3a151d52c7d177ab7c739a7cca /src/gallium/auxiliary/util/u_format.h | |
parent | dd194b6932c9b7bbb87b34b501254ec83d82ba49 (diff) |
util: Revert unsolicited, untested, unreviewed, and broken changes to format support.
Not all is bad, but I'm afraid I'll have to throw the baby with the water
given they are all tied to together.
Diffstat (limited to 'src/gallium/auxiliary/util/u_format.h')
-rw-r--r-- | src/gallium/auxiliary/util/u_format.h | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/src/gallium/auxiliary/util/u_format.h b/src/gallium/auxiliary/util/u_format.h index 2ac3abab23..93818a3161 100644 --- a/src/gallium/auxiliary/util/u_format.h +++ b/src/gallium/auxiliary/util/u_format.h @@ -32,7 +32,6 @@ #include "pipe/p_format.h" #include "util/u_debug.h" -#include "util/u_format_s3tc.h" #ifdef __cplusplus extern "C" { @@ -169,13 +168,6 @@ struct util_format_description unsigned is_mixed:1; /** - * Whether the pack/unpack functions actually work. - * - * Call util_format_is_supported instead of using this directly. - */ - unsigned is_supported:1; - - /** * Input channel description. * * Only valid for UTIL_FORMAT_LAYOUT_PLAIN formats. @@ -514,20 +506,6 @@ util_format_get_nr_components(enum pipe_format format) * Format access functions. */ -static INLINE boolean -util_format_is_supported(enum pipe_format format) -{ - const struct util_format_description *desc = util_format_description(format); - - if(!desc) - return FALSE; - - if(desc->layout == UTIL_FORMAT_LAYOUT_S3TC) - util_format_s3tc_init(); - - return desc->is_supported; -} - void util_format_read_4f(enum pipe_format format, float *dst, unsigned dst_stride, |