From 82f3114509babc9671391aa678eae53442381a97 Mon Sep 17 00:00:00 2001 From: Rudolf Cornelissen Date: Tue, 25 Oct 2005 15:43:12 +0000 Subject: [PATCH] added forced enabling Vsync (again) to stop_tv_out: just to be absolutely sure. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14517 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/accelerants/nvidia/engine/nv_brooktreetv.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/add-ons/accelerants/nvidia/engine/nv_brooktreetv.c b/src/add-ons/accelerants/nvidia/engine/nv_brooktreetv.c index ad0d7a25a9..7344bd6cf1 100644 --- a/src/add-ons/accelerants/nvidia/engine/nv_brooktreetv.c +++ b/src/add-ons/accelerants/nvidia/engine/nv_brooktreetv.c @@ -1651,13 +1651,16 @@ status_t BT_stop_tvout(void) /* enable access to primary head */ set_crtc_owner(0); + /* just to be sure Vsync is _really_ enabled */ + CRTCW(REPAINT1, (CRTCR(REPAINT1) & 0xbf)); /* wait for one image to be generated to make sure VGA has kicked in and is * running OK before continuing... * (Kicking in will fail often if we do not wait here) */ /* Note: * The used CRTC's Vsync is required to be enabled here. The DPMS state - * programming in the driver makes sure this is the case. */ + * programming in the driver makes sure this is the case. + * (except for driver startup: see nv_general.c.) */ /* make sure we are 'in' active VGA picture */ while (NV_REG8(NV8_INSTAT1) & 0x08) snooze(1);