From b227904c50e92c890535cab0a64ead275621533a Mon Sep 17 00:00:00 2001 From: Rudolf Cornelissen Date: Thu, 16 Feb 2006 20:04:47 +0000 Subject: [PATCH] fix for cloning accelerant on singlehead cards: routine pointers were 'undefined' before.These routine pointers need to be revisited later on because they are not updated for clones when modeswitches happen (should be in shared_info or so). The good news is that these pointers can be gone anyway once driver instances exist per head instead of per card. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16433 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/accelerants/nvidia/InitAccelerant.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/add-ons/accelerants/nvidia/InitAccelerant.c b/src/add-ons/accelerants/nvidia/InitAccelerant.c index 74749d4fa8..fa05de72d2 100644 --- a/src/add-ons/accelerants/nvidia/InitAccelerant.c +++ b/src/add-ons/accelerants/nvidia/InitAccelerant.c @@ -307,7 +307,12 @@ status_t CLONE_ACCELERANT(void *data) } /* setup CRTC and DAC functions access */ - setup_virtualized_heads(si->crtc_switch_mode); + //fixme: setup_virtualized_heads is a problem for clones: needs to be run + //for each clone if the mode is changed! + if (si->ps.secondary_head) + setup_virtualized_heads(si->crtc_switch_mode); + else + setup_virtualized_heads(si->ps.crtc2_prim); /* get shared area for display modes */ result = my_mode_list_area = clone_area(