open-src/driver/xf86-video-ast/sparc.patch
author X gate hg captive account <xhg@xserver.us.oracle.com>
Wed, 26 Apr 2017 14:52:19 -0700
changeset 1710 a9aea92d6fb5
parent 1675 9bd813a73aa0
permissions -rw-r--r--
Added tag s12_123 for changeset 11297414509c

--- a/src/ast_driver.c	2016-10-19 19:32:32.586151260 -0700
+++ b/src/ast_driver.c	2016-10-19 19:36:20.008810060 -0700
@@ -665,7 +665,16 @@
        /* Enable VGA MMIO Access */
        vASTEnableVGAMMIO(pScrn);
 #endif
+       /* Init VGA Adapter */
+       if (!xf86IsPrimaryPci(pAST->PciInfo))
+       {
+           ASTInitVGA(pScrn, 0);
+       }
 
+       vASTOpenKey(pScrn);
+       bASTRegInit(pScrn);
+
+
        /* Get Chip Type */
        if (PCI_DEV_REVISION(pAST->PciInfo) >= 0x40)
            pAST->jChipType = AST2500;
@@ -678,15 +687,6 @@
        else
            pAST->jChipType = AST2000;
 
-       /* Init VGA Adapter */
-       if (!xf86IsPrimaryPci(pAST->PciInfo))
-       {
-           ASTInitVGA(pScrn, 0);
-       }
-
-       vASTOpenKey(pScrn);
-       bASTRegInit(pScrn);
-
        /* Get Options from Scratch */
        ASTGetScratchOptions(pScrn);