From aaf2105be967ad7f99c643b4be09cf6d3d063b65 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Sat, 26 Jul 2003 03:25:40 +0000 Subject: Add Rage 128 pageflipping support, defaults to off. DRM version bump to 2.5.0. It still has some issues, including a flicker in the fps meter in tuxracer and I've seen garbage left behind after moving/closing windows. However, it's usable. Add the Option "EnablePageFlip" "YES" to use it. --- shared-core/r128_drm.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'shared-core/r128_drm.h') diff --git a/shared-core/r128_drm.h b/shared-core/r128_drm.h index 61f51e93..5da219e5 100644 --- a/shared-core/r128_drm.h +++ b/shared-core/r128_drm.h @@ -164,6 +164,8 @@ typedef struct drm_r128_sarea { drm_tex_region_t tex_list[R128_NR_TEX_HEAPS][R128_NR_TEX_REGIONS+1]; unsigned int tex_age[R128_NR_TEX_HEAPS]; int ctx_owner; + int pfAllowPageFlip; /* number of 3d windows (0,1,2 or more) */ + int pfCurrentPage; /* which buffer is being displayed? */ } drm_r128_sarea_t; @@ -191,6 +193,7 @@ typedef struct drm_r128_sarea { #define DRM_IOCTL_R128_FULLSCREEN DRM_IOW( 0x50, drm_r128_fullscreen_t) #define DRM_IOCTL_R128_CLEAR2 DRM_IOW( 0x51, drm_r128_clear2_t) #define DRM_IOCTL_R128_GETPARAM DRM_IOW( 0x52, drm_r128_getparam_t) +#define DRM_IOCTL_R128_FLIP DRM_IO( 0x53) typedef struct drm_r128_init { enum { -- cgit v1.2.3