summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2012-02-28 07:45:17 -0700
committerBrian Paul <brianp@vmware.com>2012-02-29 08:40:37 -0700
commitce671c7aceca33a2f29dddfaa555a25218524146 (patch)
tree0053730ac3426fb7045959e505174c1de57ab16f
parent9b9c7da966a4f5182461be90dd6615fbe0399e3c (diff)
util: better comment for util_is_format_compatible()
-rw-r--r--src/gallium/auxiliary/util/u_format.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/util/u_format.h b/src/gallium/auxiliary/util/u_format.h
index 874ea7eb12a..b9ae7c19030 100644
--- a/src/gallium/auxiliary/util/u_format.h
+++ b/src/gallium/auxiliary/util/u_format.h
@@ -578,8 +578,9 @@ boolean
util_format_is_pure_uint(enum pipe_format format);
/**
- * Whether the src format can be blitted to destation format with a simple
- * memcpy.
+ * 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.
*/
boolean
util_is_format_compatible(const struct util_format_description *src_desc,