patch to import Jon Smirl's work from Bitkeeper
[mesa.git] / src / mesa / drivers / dri / mga / mgaregs.h
index f07dc2de0be4129f5aba4dec5e3bee726f2434c2..e1291ca01bdb89b3865bd64773bad21366090883 100644 (file)
 #    define TMC_tformat_tw8a           0x7             /* val 7, shift 0 */
 #    define TMC_tformat_tw8al          0x8             /* val 8, shift 0 */
 #    define TMC_tformat_tw422          0xa             /* val 10, shift 0 */
+#    define TMC_tformat_tw422uyvy      0xb             /* val 11, shift 0 */
 #    define TMC_tpitchlin_MASK                 0xfffffeff      /* bit 8 */
 #    define TMC_tpitchlin_disable      0x0             
 #    define TMC_tpitchlin_enable       0x100           
 #    define TF_magfilter_nrst          0x0             /* val 0, shift 4 */
 #    define TF_magfilter_bilin                 0x20            /* val 2, shift 4 */
 #    define TF_magfilter_cnst          0x30            /* val 3, shift 4 */
+#    define TF_uvoffset_SHIFT          17
+#    define TF_uvoffset_OGL            (0U << TF_uvoffset_SHIFT)
+#    define TF_uvoffset_D3D            (1U << TF_uvoffset_SHIFT)
+#    define TF_uvoffset_MASK           (~(1U << TF_uvoffset_SHIFT))
+#    define TF_reserved_MASK           (~0x1ff00)      /* bits 8-16 */
+#    define TF_mapnbhigh_SHIFT                 18
+#    define TF_mapnbhigh_MASK          (~(1U << TF_mapnbhigh_SHIFT))
 #    define TF_avgstride_MASK          0xfff7ffff      /* bit 19 */
 #    define TF_avgstride_disable       0x0             
 #    define TF_avgstride_enable        0x80000         
 
 /**************** (END) AUTOMATICLY GENERATED REGISTER FILE ******************/
 
+/* Copied from mga_drv.h kernel file.
+ */
+
+#define MGA_ILOAD_ALIGN                64
+#define MGA_ILOAD_MASK         (MGA_ILOAD_ALIGN - 1)
+
 #endif         /* _MGAREGS_H_ */