summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorldelgass <ldelgass>2003-05-21 22:47:08 +0000
committerldelgass <ldelgass>2003-05-21 22:47:08 +0000
commit1e794bcee32d1671e60a5972c6d25288968dfb46 (patch)
tree916fc0a5c9081f2b4c0556bb1539a4fd78b77154
parent9da5626a5f61b76d4c68c575a7a80a78bc2c593e (diff)
mach64 drm support for YUV textures
-rw-r--r--xc/programs/Xserver/hw/xfree86/os-support/shared/drm/kernel/mach64_drv.h4
-rw-r--r--xc/programs/Xserver/hw/xfree86/os-support/shared/drm/kernel/mach64_state.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/xc/programs/Xserver/hw/xfree86/os-support/shared/drm/kernel/mach64_drv.h b/xc/programs/Xserver/hw/xfree86/os-support/shared/drm/kernel/mach64_drv.h
index 4e1e83997..4331cde57 100644
--- a/xc/programs/Xserver/hw/xfree86/os-support/shared/drm/kernel/mach64_drv.h
+++ b/xc/programs/Xserver/hw/xfree86/os-support/shared/drm/kernel/mach64_drv.h
@@ -439,7 +439,11 @@ extern int mach64_get_param( DRM_IOCTL_ARGS );
#define MACH64_DATATYPE_RGB565 4
#define MACH64_DATATYPE_ARGB8888 6
#define MACH64_DATATYPE_RGB332 7
+#define MACH64_DATATYPE_Y8 8
#define MACH64_DATATYPE_RGB8 9
+#define MACH64_DATATYPE_VYUY422 11
+#define MACH64_DATATYPE_YVYU422 12
+#define MACH64_DATATYPE_AYUV444 14
#define MACH64_DATATYPE_ARGB4444 15
#define MACH64_READ(reg) DRM_READ32(dev_priv->mmio, (reg) )
diff --git a/xc/programs/Xserver/hw/xfree86/os-support/shared/drm/kernel/mach64_state.c b/xc/programs/Xserver/hw/xfree86/os-support/shared/drm/kernel/mach64_state.c
index f6ea7b950..eb3722cbe 100644
--- a/xc/programs/Xserver/hw/xfree86/os-support/shared/drm/kernel/mach64_state.c
+++ b/xc/programs/Xserver/hw/xfree86/os-support/shared/drm/kernel/mach64_state.c
@@ -637,6 +637,8 @@ static int mach64_dma_dispatch_blit( DRMFILE filp, drm_device_t *dev,
break;
case MACH64_DATATYPE_ARGB1555:
case MACH64_DATATYPE_RGB565:
+ case MACH64_DATATYPE_VYUY422:
+ case MACH64_DATATYPE_YVYU422:
case MACH64_DATATYPE_ARGB4444:
dword_shift = 1;
break;