- Timestamp:
- Mar 6, 2009 10:28:41 AM (16 years ago)
- Location:
- trunk/src/VBox/Additions/x11/vboxvideo
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/vboxvideo/Makefile.kmk
r17318 r17451 204 204 vboxvideo_drv_15_CFLAGS := $(vboxvideo_drv_70_CFLAGS) 205 205 vboxvideo_drv_15_DEFS := $(vboxvideo_drv_70_DEFS) NO_ANSIC PCIACCESS \ 206 VBOX_NO_LOW_COLOUR #VBOX_DRI206 VBOX_NO_LOW_COLOUR VBOX_DRI 207 207 vboxvideo_drv_15_INCS = \ 208 208 $(VBOX_PATH_X11_XORG_1_5) \ 209 209 $(VBOX_PATH_X11_XORG_1_5)/X11 \ 210 $(VBOX_PATH_X11_XORG_1_5)/xorg \211 210 $(VBOX_PATH_X11_ROOT)/glproto-1.4.9 \ 212 211 $(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 214 214 vboxvideo_drv_15_SOURCES = \ 215 215 vboxvideo_15.c \ … … 228 228 $(VBOX_PATH_X11_XORG_1_6) \ 229 229 $(VBOX_PATH_X11_XORG_1_6)/X11 \ 230 $(VBOX_PATH_X11_XORG_1_6)/xorg \231 230 $(VBOX_PATH_X11_ROOT)/glproto-1.4.9 \ 232 231 $(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 234 235 vboxvideo_drv_16_SOURCES = \ 235 236 vboxvideo_15.c \ -
trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.h
r17318 r17451 150 150 #define VBOX_DRIVER_NAME "vboxvideo" 151 151 152 #ifdef VBOX_DRI 152 153 /* DRI support */ 153 154 #define _XF86DRI_SERVER_ … … 158 159 #include "dri.h" 159 160 #undef u_int64_t 161 #include "sarea.h" 160 162 #include "GL/glxint.h" 161 163 #include "GL/glxtokens.h" … … 164 166 extern void GlxSetVisualConfigs(int nconfigs, __GLXvisualConfig *configs, 165 167 void **configprivs); 168 #endif 169 166 170 #define VBOX_VIDEO_MAJOR 1 167 171 #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. */ 171 175 172 176 #define VBOXPTR(p) ((VBOXPtr)((p)->driverPrivate)) … … 217 221 VMMDevMemory *pVMMDevMemory; 218 222 VBVAMEMORY *pVbvaMemory; 223 #ifdef VBOX_DRI 219 224 Bool useDRI; 220 225 int cVisualConfigs; … … 222 227 DRIInfoRec *pDRIInfo; 223 228 int drmFD; 229 #endif 224 230 } VBOXRec, *VBOXPtr; 225 231 … … 250 256 251 257 #endif /* _VBOXVIDEO_H_ */ 258 -
trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo_dri.c
r17318 r17451 249 249 pDRIInfo->ddxDrawableTableEntry = VBOX_MAX_DRAWABLES; 250 250 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. */ 251 255 /* This can't be zero, as the server callocs this size and checks for 252 256 * non-NULL... */ … … 351 355 } 352 356 353 /* Appar antly the next two are just legacy. */357 /* Apparently the next two are just legacy. */ 354 358 static Bool 355 359 VBOXDRIOpenFullScreen(ScreenPtr pScreen)
Note:
See TracChangeset
for help on using the changeset viewer.