Changeset 33540 in vbox for trunk/src/VBox/Additions/common/crOpenGL
- Timestamp:
- Oct 28, 2010 9:27:05 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 67140
- Location:
- trunk/src/VBox/Additions/common/crOpenGL
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/crOpenGL/LICENSE
r15532 r33540 2 2 All rights reserved. 3 3 4 Some portions of Chromium are copyrighted by individ iual organizations.4 Some portions of Chromium are copyrighted by individual organizations. 5 5 Please see the files COPYRIGHT.LLNL and COPYRIGHT.REDHAT for more 6 6 information. -
trunk/src/VBox/Additions/common/crOpenGL/array/arrayspu.c
r21308 r33540 106 106 } 107 107 108 /* Now do conventional arrays, unless overrid en by generic arrays above */108 /* Now do conventional arrays, unless overridden by generic arrays above */ 109 109 for (unit = 0 ; unit < crStateGetCurrent()->limits.maxTextureUnits ; unit++) 110 110 { -
trunk/src/VBox/Additions/common/crOpenGL/context.c
r32420 r33540 648 648 649 649 //@todo: Performing those checks is expensive operation, especially for simple apps with high FPS. 650 // Disabling those trip ples glxgears fps, thus using xevens instead of per frame polling is much more preffered.651 //@todo: Check simil iar on windows guests, though doubtfull as there're no XSync like calls on windows.650 // Disabling those triples glxgears fps, thus using xevents instead of per frame polling is much more preferred. 651 //@todo: Check similar on windows guests, though doubtful as there're no XSync like calls on windows. 652 652 if (window && dpy) 653 653 { … … 1092 1092 /* Update window mapping state. 1093 1093 * Basically, this lets us hide render SPU windows which correspond 1094 * to unmapped application windows. Without this, perfly(for example)1094 * to unmapped application windows. Without this, "pertly" (for example) 1095 1095 * opens *lots* of temporary windows which otherwise clutter the screen. 1096 1096 */ -
trunk/src/VBox/Additions/common/crOpenGL/dri_drv.c
r32404 r33540 341 341 342 342 /*Note, checking glGetError before and after those calls is the only way 343 *to return if we succe ded to get value or not, but it will add 2 sync calls and343 *to return if we succeeded to get value or not, but it will add 2 sync calls and 344 344 *will reset glGetError value returned in case application calls it explicitly 345 345 */ -
trunk/src/VBox/Additions/common/crOpenGL/dri_glx.h
r32404 r33540 43 43 extern DECLEXPORT(Display *) VBOXGLXTAG(glXGetCurrentDisplayEXT)(void); 44 44 extern DECLEXPORT(void) VBOXGLXTAG(glXFreeContextEXT)(Display *dpy, GLXContext ctx); 45 /*Mesa in sternal*/45 /*Mesa internal*/ 46 46 extern DECLEXPORT(int) VBOXGLXTAG(glXQueryContextInfoEXT)(Display *dpy, GLXContext ctx); 47 47 extern DECLEXPORT(void *) VBOXGLXTAG(glXAllocateMemoryMESA)(Display *dpy, int scrn, -
trunk/src/VBox/Additions/common/crOpenGL/dri_util.c
r27866 r33540 381 381 382 382 /* If there was a drawable config event in the buffer and it 383 * changed the size of the window, all buffer auxil lary buffer383 * changed the size of the window, all buffer auxiliary buffer 384 384 * attachments prior to that are invalid (as opposed to the front 385 385 * buffer case discussed above). In that case we can start … … 678 678 * This function allocates and fills a __DRIcontextPrivateRec structure. It 679 679 * performs some device independent initialization and passes all the 680 * relev ent information to __DriverAPIRec::CreateContext to create the680 * relevant information to __DriverAPIRec::CreateContext to create the 681 681 * context. 682 682 * … … 823 823 * \param fd Device handle for the DRM. 824 824 * \param extensions ?? 825 * \param driver_modes Returns modes suppo ted by the driver825 * \param driver_modes Returns modes supported by the driver 826 826 * \param loaderPrivate ?? 827 827 * -
trunk/src/VBox/Additions/common/crOpenGL/fakedri_drv.c
r32404 r33540 225 225 } 226 226 227 /* Get aligned start ad ress we're going to patch*/227 /* Get aligned start address we're going to patch*/ 228 228 alPatch = (void*) ((uintptr_t)dlip.dli_saddr & ~(uintptr_t)(PAGESIZE-1)); 229 229 -
trunk/src/VBox/Additions/common/crOpenGL/glx.c
r32420 r33540 1980 1980 pContext->damageInitFailed = True; 1981 1981 1982 /* Open second xserver connection to make sure we'd rec ieve all the xdamage messages1982 /* Open second xserver connection to make sure we'd receive all the xdamage messages 1983 1983 * and those wouldn't be eaten by application even queue */ 1984 1984 pContext->damageDpy = XOpenDisplay(DisplayString(pContext->dpy)); -
trunk/src/VBox/Additions/common/crOpenGL/glx_c_exports.c
r28800 r33540 65 65 } 66 66 67 /*Mesa in sternal*/67 /*Mesa internal*/ 68 68 DECLEXPORT(int) VBOXGLXENTRYTAG(glXQueryContextInfoEXT)(Display *dpy, GLXContext ctx) 69 69 { -
trunk/src/VBox/Additions/common/crOpenGL/glx_proto.h
r28800 r33540 33 33 typedef void (*PGLXFUNC_FreeContextEXT)(Display *dpy, GLXContext ctx); 34 34 35 /*Mesa in sternal*/35 /*Mesa internal*/ 36 36 typedef int (*PGLXFUNC_QueryContextInfoEXT)(Display *dpy, GLXContext ctx); 37 37 typedef void * (*PGLXFUNC_AllocateMemoryMESA)(Display *dpy, int scrn, -
trunk/src/VBox/Additions/common/crOpenGL/load.c
r32552 r33540 764 764 hNewRgn = stubMakeRegionFromRects(pRegions->pRegions, 1); 765 765 766 /* ensure the window is in sync hto avoid possible incorrect host notifications */766 /* ensure the window is in sync to avoid possible incorrect host notifications */ 767 767 { 768 768 BOOL bRc = MoveWindow(pRegions->hWnd, winX, winY, winW, winH, FALSE /*BOOL bRepaint*/); -
trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_swapbuf.c
r20083 r33540 65 65 * 66 66 * This is complicated because writeback in the pack spu is 67 * overrid en to always set the value to zero when the67 * overridden to always set the value to zero when the 68 68 * reply is received, rather than decrementing it: 69 69 */ … … 93 93 } 94 94 95 /* want to emit a parameter ihere */95 /* want to emit a parameter here */ 96 96 if (pack_spu.emit_GATHER_POST_SWAPBUFFERS) 97 97 { -
trunk/src/VBox/Additions/common/crOpenGL/stub.c
r32420 r33540 215 215 /* 216 216 * Updates geometry info for given spu window. 217 * Returns GL_TRUE if it changed since last call, GL_FALSE o verwise.217 * Returns GL_TRUE if it changed since last call, GL_FALSE otherwise. 218 218 * bForceUpdate - forces dispatching of geometry info even if it's unchanged 219 219 */ … … 256 256 /* 257 257 * Updates visible regions for given spu window. 258 * Returns GL_TRUE if regions changed since last call, GL_FALSE o verwise.258 * Returns GL_TRUE if regions changed since last call, GL_FALSE otherwise. 259 259 */ 260 260 GLboolean stubUpdateWindowVisibileRegions(WindowInfo *pWindow) … … 480 480 /* 481 481 * Updates visible regions for given spu window. 482 * Returns GL_TRUE if regions changed since last call, GL_FALSE o verwise.482 * Returns GL_TRUE if regions changed since last call, GL_FALSE otherwise. 483 483 */ 484 484 GLboolean stubUpdateWindowVisibileRegions(WindowInfo *pWindow) -
trunk/src/VBox/Additions/common/crOpenGL/stub.h
r32420 r33540 18 18 * When glXCreateContext() is called we may either create a real, native 19 19 * GLX context or a Chromium context (depending on match_window_title and 20 * mi mimum_window_size).20 * minimum_window_size). 21 21 * 22 22 * 3. WGL emulation interface - the wgl*() functions are emulated here. 23 23 * When wglCreateContext() is called we may either create a real, native 24 24 * WGL context or a Chromium context (depending on match_window_title and 25 * mi mimum_window_size).25 * minimum_window_size). 26 26 * 27 27 * -
trunk/src/VBox/Additions/common/crOpenGL/utils.c
r27866 r33540 332 332 333 333 /** 334 * Utility function used by drivers to test the ver ions of other components.334 * Utility function used by drivers to test the versions of other components. 335 335 * 336 336 * If one of the version requirements is not met, a message is logged using … … 472 472 * the red value. 473 473 * 474 * One sub lte issue is the combination of \c GL_RGB or \c GL_BGR and either474 * One subtle issue is the combination of \c GL_RGB or \c GL_BGR and either 475 475 * of the \c GL_UNSIGNED_INT_8_8_8_8 modes. The resulting mask values in the 476 476 * \c __GLcontextModes structure is \b identical to the \c GL_RGBA or -
trunk/src/VBox/Additions/common/crOpenGL/vboxdri_drv.c
r27866 r33540 27 27 * Todo: 28 28 * -- Use malloced (rather than framebuffer) memory for backbuffer 29 * -- 32bpp is hardw ared -- fix29 * -- 32bpp is hardwired -- fix 30 30 * 31 31 * NOTES: … … 626 626 char *tmp = _mesa_malloc(currentPitch); 627 627 628 _mesa_notifySwapBuffers( ctx ); /* flush pending rendering com ands */628 _mesa_notifySwapBuffers( ctx ); /* flush pending rendering commands */ 629 629 630 630 ASSERT(frontBuffer); -
trunk/src/VBox/Additions/common/crOpenGL/xfont.c
r18882 r33540 205 205 x0 = -ch->lbearing; 206 206 y0 = ch->descent - 0; /* XXX used to subtract 1 here */ 207 /* but that caused a conforma ce failure */207 /* but that caused a conformance failure */ 208 208 dx = ch->width; 209 209 dy = 0;
Note:
See TracChangeset
for help on using the changeset viewer.