summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util/u_format.h
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-07-28 08:47:13 +0100
committerJosé Fonseca <jfonseca@vmware.com>2009-08-29 09:21:20 +0100
commit42b15b26fd946c9511bd4bd5f23ec7e76e15507c (patch)
treea6d5c5613a8435bcfcf0ec7191db67adab53755d /src/gallium/auxiliary/util/u_format.h
parenta910c7d8202d42d2637aeeac3f3e9f2cd77ffc07 (diff)
util: Make pixel format layout more meaningful.
Namelly, explicitly distinguish formats coded by arithmetic manipulation, from formats layed out in array.
Diffstat (limited to 'src/gallium/auxiliary/util/u_format.h')
-rw-r--r--src/gallium/auxiliary/util/u_format.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/gallium/auxiliary/util/u_format.h b/src/gallium/auxiliary/util/u_format.h
index 2d7730fbc5..b5504ebe05 100644
--- a/src/gallium/auxiliary/util/u_format.h
+++ b/src/gallium/auxiliary/util/u_format.h
@@ -34,10 +34,11 @@
enum util_format_layout {
- UTIL_FORMAT_LAYOUT_RGBA = 0,
- UTIL_FORMAT_LAYOUT_ZS = 1,
- UTIL_FORMAT_LAYOUT_YUV = 2,
- UTIL_FORMAT_LAYOUT_DXT = 3
+ UTIL_FORMAT_LAYOUT_SCALAR = 0,
+ UTIL_FORMAT_LAYOUT_ARITH = 1,
+ UTIL_FORMAT_LAYOUT_ARRAY = 2,
+ UTIL_FORMAT_LAYOUT_YUV = 3,
+ UTIL_FORMAT_LAYOUT_DXT = 4
};
@@ -76,7 +77,9 @@ enum util_format_swizzle {
enum util_format_colorspace {
UTIL_FORMAT_COLORSPACE_RGB = 0,
- UTIL_FORMAT_COLORSPACE_SRGB = 1
+ UTIL_FORMAT_COLORSPACE_SRGB = 1,
+ UTIL_FORMAT_COLORSPACE_YUV = 2,
+ UTIL_FORMAT_COLORSPACE_ZS = 3,
};