Changeset 22045 in vbox for trunk/src/VBox/Additions/x11/vboxvideo
- Timestamp:
- Aug 6, 2009 8:37:24 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo_15.c
r22022 r22045 924 924 * 925 925 * End QUOTE.Initialise the initial video mode. 926 *927 * Note that the order of operations here has been adjusted to match the928 * Radeon HD driver. We start with device-dependent initialisation (DDX),929 * including modesetting (a.k.a RandR 1.2). Among other things, this930 * establishes the initial physical and virtual screen dimensions, which we931 * need to know when we create the screen pixmap (the server's abstraction for932 * the framebuffer). We then do the device-independent initialisation (DIX)933 * which sets up the server's internal structures to reflect the hardware934 * setup. Finally we do DPMS (stubs) and hardware cursor setup.935 926 */ 936 927 static Bool … … 962 953 pVBox->savedPal = VBESetGetPaletteData(pVBox->pVbe, FALSE, 0, 256, 963 954 NULL, FALSE, FALSE); 964 965 /* Initialise randr 1.2 mode-setting functions and set first mode. */966 if (!xf86CrtcScreenInit(pScreen)) {967 return FALSE;968 }969 970 if (!xf86SetDesiredModes(pScrn)) {971 return FALSE;972 }973 974 /* set the viewport */975 VBOXAdjustFrame(scrnIndex, pScrn->frameX0, pScrn->frameY0, 0);976 977 /* Needed before we initialise DRI. */978 pScrn->virtualX = (pScrn->virtualX + 7) & ~7;979 pScrn->displayWidth = pScrn->virtualX;980 955 981 956 /* mi layer - reset the visual list (?)*/ … … 988 963 if (!miSetPixmapDepths()) 989 964 return (FALSE); 965 966 /* Needed before we initialise DRI. */ 967 pScrn->virtualX = (pScrn->virtualX + 7) & ~7; 968 pScrn->displayWidth = pScrn->virtualX; 990 969 991 970 #ifdef VBOX_DRI … … 1028 1007 to (unsigned char *) later. */ 1029 1008 xf86DiDGAInit(pScreen, (unsigned long) pVBox->base); 1009 1010 /* Initialise randr 1.2 mode-setting functions and set first mode. */ 1011 if (!xf86CrtcScreenInit(pScreen)) { 1012 return FALSE; 1013 } 1014 1015 if (!xf86SetDesiredModes(pScrn)) { 1016 return FALSE; 1017 } 1018 1019 /* set the viewport */ 1020 VBOXAdjustFrame(scrnIndex, pScrn->frameX0, pScrn->frameY0, 0); 1030 1021 1031 1022 /* software cursor */
Note:
See TracChangeset
for help on using the changeset viewer.