summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/softpipe/sp_headers.h
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-10-16 17:36:37 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-10-16 17:36:37 -0600
commit0edd490a96a53f83d2fb18a570cf20a4a0c5ee40 (patch)
tree7ea1c4f5be7cd94dc8e5dc0708339a42639e7b09 /src/mesa/pipe/softpipe/sp_headers.h
parent63b0b5b6c74fcca7d84ac13b893a1f1f5becf39d (diff)
Redefine QUAD_TOP_LEFT, TOP_RIGHT, etc. to reflect Y=0=TOP raster layout.
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_headers.h')
-rw-r--r--src/mesa/pipe/softpipe/sp_headers.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/mesa/pipe/softpipe/sp_headers.h b/src/mesa/pipe/softpipe/sp_headers.h
index b377c34712..e23742f803 100644
--- a/src/mesa/pipe/softpipe/sp_headers.h
+++ b/src/mesa/pipe/softpipe/sp_headers.h
@@ -39,17 +39,18 @@
/* The rasterizer generates 2x2 quads of fragment and feeds them to
- * the current fp_machine (see below).
+ * the current fp_machine (see below).
+ * Remember that Y=0=top with Y increasing down the window.
*/
-#define QUAD_BOTTOM_LEFT 0
-#define QUAD_BOTTOM_RIGHT 1
-#define QUAD_TOP_LEFT 2
-#define QUAD_TOP_RIGHT 3
+#define QUAD_TOP_LEFT 0
+#define QUAD_TOP_RIGHT 1
+#define QUAD_BOTTOM_LEFT 2
+#define QUAD_BOTTOM_RIGHT 3
-#define MASK_BOTTOM_LEFT 0x1
-#define MASK_BOTTOM_RIGHT 0x2
-#define MASK_TOP_LEFT 0x4
-#define MASK_TOP_RIGHT 0x8
+#define MASK_TOP_LEFT (1 << QUAD_TOP_LEFT)
+#define MASK_TOP_RIGHT (1 << QUAD_TOP_RIGHT)
+#define MASK_BOTTOM_LEFT (1 << QUAD_BOTTOM_LEFT)
+#define MASK_BOTTOM_RIGHT (1 << QUAD_BOTTOM_RIGHT)
#define MASK_ALL 0xf