From af2a94e12fe4e426dfca461a0d14526193c01cef Mon Sep 17 00:00:00 2001 From: Jamey Sharp Date: Tue, 13 Jul 2010 13:33:59 -0700 Subject: [PATCH] VGA arbiter: No need for arbitration around CreateGC. None of XAA, EXA, or UXA do any hardware access during CreateGC, so they don't need VGA arbitration. I haven't found any open source drivers that hook CreateGC, so they're safe. I'd be surprised if any driver directly hooks CreateGC and does hardware access from it and needs VGA arbitration. Signed-off-by: Jamey Sharp Signed-off-by: Tiago Vignatti --- hw/xfree86/common/xf86VGAarbiter.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/hw/xfree86/common/xf86VGAarbiter.c b/hw/xfree86/common/xf86VGAarbiter.c index becf4a9c7..fa313f18d 100644 --- a/hw/xfree86/common/xf86VGAarbiter.c +++ b/hw/xfree86/common/xf86VGAarbiter.c @@ -573,9 +573,7 @@ VGAarbiterCreateGC(GCPtr pGC) Bool ret; SCREEN_PROLOG(CreateGC); - VGAGet(pScreen); ret = (*pScreen->CreateGC)(pGC); - VGAPut(); GC_WRAP(pGC); SCREEN_EPILOG(CreateGC,VGAarbiterCreateGC);