Add support to r128 for MESA_ycbcr_texture (Ian Romanick, Leif Delgass)
authorLeif Delgass <ldelgass@users.sourceforge.net>
Mon, 26 May 2003 20:04:53 +0000 (20:04 +0000)
committerLeif Delgass <ldelgass@users.sourceforge.net>
Mon, 26 May 2003 20:04:53 +0000 (20:04 +0000)
shared-core/r128_drv.h
shared-core/r128_state.c
shared/r128.h
shared/r128_drv.h
shared/r128_state.c

index 3dee2e9..9f96fcd 100644 (file)
@@ -343,13 +343,20 @@ extern int r128_cce_indirect( DRM_IOCTL_ARGS );
 #define R128_CCE_VC_CNTL_PRIM_WALK_RING                0x00000030
 #define R128_CCE_VC_CNTL_NUM_SHIFT             16
 
+#define R128_DATATYPE_VQ               0
+#define R128_DATATYPE_CI4              1
 #define R128_DATATYPE_CI8              2
 #define R128_DATATYPE_ARGB1555         3
 #define R128_DATATYPE_RGB565           4
 #define R128_DATATYPE_RGB888           5
 #define R128_DATATYPE_ARGB8888         6
 #define R128_DATATYPE_RGB332           7
+#define R128_DATATYPE_Y8               8
 #define R128_DATATYPE_RGB8             9
+#define R128_DATATYPE_CI16             10
+#define R128_DATATYPE_YVYU422          11
+#define R128_DATATYPE_VYUY422          12
+#define R128_DATATYPE_AYUV444          14
 #define R128_DATATYPE_ARGB4444         15
 
 /* Constants */
index 8b9e97c..27720cf 100644 (file)
@@ -802,6 +802,8 @@ static int r128_cce_dispatch_blit( DRMFILE filp,
        case R128_DATATYPE_ARGB1555:
        case R128_DATATYPE_RGB565:
        case R128_DATATYPE_ARGB4444:
+       case R128_DATATYPE_YVYU422:
+       case R128_DATATYPE_VYUY422:
                dword_shift = 1;
                break;
        case R128_DATATYPE_CI8:
index f23f46e..94e43d7 100644 (file)
 
 #define DRIVER_NAME            "r128"
 #define DRIVER_DESC            "ATI Rage 128"
-#define DRIVER_DATE            "20021029"
+#define DRIVER_DATE            "20030526"
 
 #define DRIVER_MAJOR           2
-#define DRIVER_MINOR           3
+#define DRIVER_MINOR           4
 #define DRIVER_PATCHLEVEL      0
 
-
+/* Interface history:
+ *
+ * ??  - ??
+ * 2.4 - Add support for ycbcr textures (no new ioctls)
+ */
 #define DRIVER_IOCTLS                                                      \
    [DRM_IOCTL_NR(DRM_IOCTL_DMA)]             = { r128_cce_buffers,  1, 0 }, \
    [DRM_IOCTL_NR(DRM_IOCTL_R128_INIT)]       = { r128_cce_init,     1, 1 }, \
index 3dee2e9..9f96fcd 100644 (file)
@@ -343,13 +343,20 @@ extern int r128_cce_indirect( DRM_IOCTL_ARGS );
 #define R128_CCE_VC_CNTL_PRIM_WALK_RING                0x00000030
 #define R128_CCE_VC_CNTL_NUM_SHIFT             16
 
+#define R128_DATATYPE_VQ               0
+#define R128_DATATYPE_CI4              1
 #define R128_DATATYPE_CI8              2
 #define R128_DATATYPE_ARGB1555         3
 #define R128_DATATYPE_RGB565           4
 #define R128_DATATYPE_RGB888           5
 #define R128_DATATYPE_ARGB8888         6
 #define R128_DATATYPE_RGB332           7
+#define R128_DATATYPE_Y8               8
 #define R128_DATATYPE_RGB8             9
+#define R128_DATATYPE_CI16             10
+#define R128_DATATYPE_YVYU422          11
+#define R128_DATATYPE_VYUY422          12
+#define R128_DATATYPE_AYUV444          14
 #define R128_DATATYPE_ARGB4444         15
 
 /* Constants */
index 8b9e97c..27720cf 100644 (file)
@@ -802,6 +802,8 @@ static int r128_cce_dispatch_blit( DRMFILE filp,
        case R128_DATATYPE_ARGB1555:
        case R128_DATATYPE_RGB565:
        case R128_DATATYPE_ARGB4444:
+       case R128_DATATYPE_YVYU422:
+       case R128_DATATYPE_VYUY422:
                dword_shift = 1;
                break;
        case R128_DATATYPE_CI8: