diff options
author | José Fonseca <[email protected]> | 2012-11-28 19:20:18 +0000 |
---|---|---|
committer | José Fonseca <[email protected]> | 2012-11-29 14:08:42 +0000 |
commit | 9f06061d50f90bf425a5337cea1b0adb94a46d25 (patch) | |
tree | 92e84ca3480fb619ee813c8cfccb7e7fc45ee270 /src/gallium/auxiliary/util/u_format.h | |
parent | a47674ee89f9f41c3be96ee47c476144bf6b779b (diff) |
util/u_format: Kill util_format_is_array().
It is buggy (it was giving wrong results for some of the formats with
padding), and util_format_description::is_array already does precisely
what's intended.
Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util/u_format.h')
-rw-r--r-- | src/gallium/auxiliary/util/u_format.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/gallium/auxiliary/util/u_format.h b/src/gallium/auxiliary/util/u_format.h index ec368fd75de..024dabb07ba 100644 --- a/src/gallium/auxiliary/util/u_format.h +++ b/src/gallium/auxiliary/util/u_format.h @@ -591,16 +591,6 @@ boolean util_format_is_pure_uint(enum pipe_format format); /** - * Whether the format is a simple array format where all channels - * are of the same type and can be loaded from memory as a vector. - * - * If format is 4 channel it can be swizzled (eg BGRA) as long - * as the alpha is the 3rd channel. - */ -boolean -util_format_is_array(const struct util_format_description *desc); - -/** * Check if the src format can be blitted to the destination format with * a simple memcpy. For example, blitting from RGBA to RGBx is OK, but not * the reverse. |