From 5e1b8ed88ae8fb8b697515140f7a00d022ac2db0 Mon Sep 17 00:00:00 2001 From: Michel Daenzer Date: Tue, 29 Oct 2002 13:49:26 +0000 Subject: preserve CRTC{,2}_OFFSET_CNTL in 2D driver to avoid bad effects when pageflipping after a mode switch take current page into account in AdjustFrame(); writing the CRTC offset via the CP was probably a bad idea as this can happen asynchronously, reverted take frame offset into account when flipping pages handle CRTC2 as well for pageflipping (untested) preserve GEN_INT_CNTL on mode switches to prevent interrupts from getting disabled --- shared-core/radeon_drm.h | 1 + 1 file changed, 1 insertion(+) (limited to 'shared-core/radeon_drm.h') diff --git a/shared-core/radeon_drm.h b/shared-core/radeon_drm.h index 91b395c3..6ef0c97a 100644 --- a/shared-core/radeon_drm.h +++ b/shared-core/radeon_drm.h @@ -355,6 +355,7 @@ typedef struct { int ctx_owner; int pfState; /* number of 3d windows (0,1,2ormore) */ int pfCurrentPage; /* which buffer is being displayed? */ + int crtc2_base; /* CRTC2 frame offset */ } drm_radeon_sarea_t; -- cgit v1.2.3