summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/r300/r300_reg.h
diff options
context:
space:
mode:
authorAapo Tahkola <[email protected]>2005-02-10 04:43:07 +0000
committerAapo Tahkola <[email protected]>2005-02-10 04:43:07 +0000
commit58010eb35ca55e487251a2b62965d42e18e5ef18 (patch)
treeac5bd3c98c91bc89af6d7758a7b9e92e6511dd4f /src/mesa/drivers/dri/r300/r300_reg.h
parent816c0c932ddccd6d3804430de9c8ae375fde782c (diff)
Adding support for selecting line width. Stipple patterns still cause lots of trouble.
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_reg.h')
-rw-r--r--src/mesa/drivers/dri/r300/r300_reg.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_reg.h b/src/mesa/drivers/dri/r300/r300_reg.h
index 1c695821381..7da9c7609b3 100644
--- a/src/mesa/drivers/dri/r300/r300_reg.h
+++ b/src/mesa/drivers/dri/r300/r300_reg.h
@@ -424,6 +424,21 @@ probably work also. --aet
# define R300_POINTSIZE_Y_MASK (0xFFFF << 0) /* GUESS */
# define R300_POINTSIZE_X_SHIFT 16
# define R300_POINTSIZE_X_MASK (0xFFFF << 16) /* GUESS */
+# define R300_POINTSIZE_MAX (R300_POINTSIZE_Y_MASK / 6)
+
+/* The line width is given in multiples of 6.
+ 00020018 == 4.0, 0002001e == 5.0 */
+#define R300_RE_LINE_CNT 0x4234
+# define R300_LINESIZE_SHIFT 0
+# define R300_LINESIZE_MASK (0xFFFF << 0) /* GUESS */
+# define R300_LINESIZE_MAX (R300_LINESIZE_MASK / 6)
+# define R300_LINE_CNT_UNK1 (1 << 17)
+
+/* Linestipple factor. 3a088889 == 1.0, 3baaaaa9 == 10.0 */
+#define R300_RE_LINE_STIPPLE_FACTOR 0x4238
+#define R300_RE_LINE_STIPPLE_PTRN1 0x43E0
+#define R300_RE_LINE_STIPPLE_PTRN2 0x43E4
+
#define R300_RE_ZBIAS_T_FACTOR 0x42A4
#define R300_RE_ZBIAS_T_CONSTANT 0x42A8