VirtualBox

Changeset 17451 in vbox for trunk


Ignore:
Timestamp:
Mar 6, 2009 10:28:41 AM (16 years ago)
Author:
vboxsync
Message:

Additions/x11/vboxvideo: fixes to the DRI code, and activate it

Location:
trunk/src/VBox/Additions/x11/vboxvideo
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/vboxvideo/Makefile.kmk

    r17318 r17451  
    204204vboxvideo_drv_15_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
    205205vboxvideo_drv_15_DEFS := $(vboxvideo_drv_70_DEFS) NO_ANSIC PCIACCESS \
    206                          VBOX_NO_LOW_COLOUR # VBOX_DRI
     206                         VBOX_NO_LOW_COLOUR VBOX_DRI
    207207vboxvideo_drv_15_INCS = \
    208208        $(VBOX_PATH_X11_XORG_1_5) \
    209209        $(VBOX_PATH_X11_XORG_1_5)/X11 \
    210         $(VBOX_PATH_X11_XORG_1_5)/xorg \
    211210        $(VBOX_PATH_X11_ROOT)/glproto-1.4.9 \
    212211        $(VBOX_PATH_X11_ROOT)/libdrm-2.3.1 \
    213         $(VBOX_PATH_X11_ROOT)/xf86driproto-2.0.4
     212        $(VBOX_PATH_X11_ROOT)/xf86driproto-2.0.4 \
     213        $(VBOX_PATH_X11_ROOT)/xorg-server-1.5.3
    214214vboxvideo_drv_15_SOURCES  = \
    215215        vboxvideo_15.c \
     
    228228        $(VBOX_PATH_X11_XORG_1_6) \
    229229        $(VBOX_PATH_X11_XORG_1_6)/X11 \
    230         $(VBOX_PATH_X11_XORG_1_6)/xorg \
    231230        $(VBOX_PATH_X11_ROOT)/glproto-1.4.9 \
    232231        $(VBOX_PATH_X11_ROOT)/libdrm-2.4.5 \
    233         $(VBOX_PATH_X11_ROOT)/xf86driproto-2.0.4
     232        $(VBOX_PATH_X11_ROOT)/xf86driproto-2.0.4 \
     233        $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0 \
     234        $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local
    234235vboxvideo_drv_16_SOURCES  = \
    235236        vboxvideo_15.c \
  • trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.h

    r17318 r17451  
    150150#define VBOX_DRIVER_NAME          "vboxvideo"
    151151
     152#ifdef VBOX_DRI
    152153/* DRI support */
    153154#define _XF86DRI_SERVER_
     
    158159#include "dri.h"
    159160#undef u_int64_t
     161#include "sarea.h"
    160162#include "GL/glxint.h"
    161163#include "GL/glxtokens.h"
     
    164166extern void GlxSetVisualConfigs(int nconfigs, __GLXvisualConfig *configs,
    165167                                void **configprivs);
     168#endif
     169
    166170#define VBOX_VIDEO_MAJOR  1
    167171#define VBOX_VIDEO_MINOR  0
    168 #define VBOX_DRM_DRIVER_NAME  "tdfx"    /* For now, as this driver is basically a stub. */
    169 #define VBOX_DRI_DRIVER_NAME  "swrast"  /* For starters. */
    170 #define VBOX_MAX_DRAWABLES    256       /* At random. */
     172#define VBOX_DRM_DRIVER_NAME  "vboxvideo"  /* For now, as this driver is basically a stub. */
     173#define VBOX_DRI_DRIVER_NAME  "vboxvideo"  /* For starters. */
     174#define VBOX_MAX_DRAWABLES    256          /* At random. */
    171175
    172176#define VBOXPTR(p) ((VBOXPtr)((p)->driverPrivate))
     
    217221    VMMDevMemory *pVMMDevMemory;
    218222    VBVAMEMORY *pVbvaMemory;
     223#ifdef VBOX_DRI
    219224    Bool useDRI;
    220225    int cVisualConfigs;
     
    222227    DRIInfoRec *pDRIInfo;
    223228    int drmFD;
     229#endif
    224230} VBOXRec, *VBOXPtr;
    225231
     
    250256
    251257#endif /* _VBOXVIDEO_H_ */
     258
  • trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo_dri.c

    r17318 r17451  
    249249        pDRIInfo->ddxDrawableTableEntry = VBOX_MAX_DRAWABLES;
    250250        pDRIInfo->maxDrawableTableEntry = VBOX_MAX_DRAWABLES;
     251        pDRIInfo->frameBufferPhysicalAddress = pVBox->base;
     252        pDRIInfo->frameBufferSize = pVBox->mapSize;
     253        pDRIInfo->frameBufferStride = pScrn->displayWidth;
     254        pDRIInfo->SAREASize = SAREA_MAX;  /* we have no private bits yet. */
    251255        /* This can't be zero, as the server callocs this size and checks for
    252256         * non-NULL... */
     
    351355}
    352356
    353 /* Apparantly the next two are just legacy. */
     357/* Apparently the next two are just legacy. */
    354358static Bool
    355359VBOXDRIOpenFullScreen(ScreenPtr pScreen)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette