From 1ad73b3187616fa22da76e606a0644f5a80ffff4 Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Thu, 23 Oct 2008 13:59:05 +0000 Subject: [PATCH] Always call Radeon_InitCP ; it explicitly checks if acc_dma is set and skips parts of the init sequence if that's not the case anyways. This correctly initializes the engine lock and a few other things, fixing the deadlock in ticket #2893. This also seems to result in somewhat improved graphics performance, at least on my X800. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28295 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/drivers/graphics/radeon/init.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/add-ons/kernel/drivers/graphics/radeon/init.c b/src/add-ons/kernel/drivers/graphics/radeon/init.c index 818098358f..be51e4c601 100644 --- a/src/add-ons/kernel/drivers/graphics/radeon/init.c +++ b/src/add-ons/kernel/drivers/graphics/radeon/init.c @@ -382,13 +382,14 @@ status_t Radeon_FirstOpen( device_info *di ) // fix AGP settings for IGP chipset Radeon_Set_AGP( di, !di->settings.force_pci ); // disable AGP + + // time to init Command Processor + result = Radeon_InitCP( di ); + if( result != B_OK ) + goto err; + if ( di->acc_dma ) { - // time to init Command Processor - result = Radeon_InitCP( di ); - if( result != B_OK ) - goto err; - result = Radeon_InitDMA( di ); if( result != B_OK ) goto err0;