summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/draw/draw_context.c
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2010-04-18 09:45:54 +0200
committerJosé Fonseca <jfonseca@vmware.com>2010-04-18 10:36:28 +0200
commitb609cfc7c9c38f26e7e6d6f7dd5dd6d38f4ed209 (patch)
treea09b53321d5ba053eba3d670b055b43d80f1cf19 /src/gallium/auxiliary/draw/draw_context.c
parentd036e9312fcc1f3ee67740ab2ef828f7b47367d2 (diff)
draw: Cosmetic cleanups and comments.
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_context.c')
-rw-r--r--src/gallium/auxiliary/draw/draw_context.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_context.c b/src/gallium/auxiliary/draw/draw_context.c
index b6574a9fea1..99f4e6dd2a8 100644
--- a/src/gallium/auxiliary/draw/draw_context.c
+++ b/src/gallium/auxiliary/draw/draw_context.c
@@ -56,6 +56,12 @@ fail:
boolean draw_init(struct draw_context *draw)
{
+ /*
+ * Note that several functions compute the clipmask of the predefined
+ * formats with hardcoded formulas instead of using these. So modifications
+ * here must be reflected there too.
+ */
+
ASSIGN_4V( draw->plane[0], -1, 0, 0, 1 );
ASSIGN_4V( draw->plane[1], 1, 0, 0, 1 );
ASSIGN_4V( draw->plane[2], 0, -1, 0, 1 );