Changeset 42528 in vbox for trunk/src/VBox
- Timestamp:
- Aug 2, 2012 11:32:51 AM (12 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_context.c
r42520 r42528 36 36 37 37 #if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST) 38 /* this is not true for packSPUInit, but will be fixed shortly */ 39 // CRASSERT(!CRPACKSPU_IS_WDDM_CRHGSMI() == !pHgsmi); 38 CRASSERT(!CRPACKSPU_IS_WDDM_CRHGSMI() == !pHgsmi); 40 39 #endif 41 40 … … 75 74 else { 76 75 /* a new pthread */ 77 crNetNewClient( pack_spu.thread[pack_spu.idxThreadInUse].netServer.conn,&(thread->netServer)76 crNetNewClient(&(thread->netServer) 78 77 #if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST) 79 78 , pHgsmi -
trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_get.py
r42499 r42528 93 93 if (func_name in easy_swaps.keys() and easy_swaps[func_name] != '0') or func_name in simple_funcs or func_name in hard_funcs.keys(): 94 94 print '\tunsigned int i;' 95 print '\tif (! (pack_spu.thread[pack_spu.idxThreadInUse].netServer.conn->actual_network))'95 print '\tif (!CRPACKSPU_IS_WDDM_CRHGSMI() && !(pack_spu.thread[pack_spu.idxThreadInUse].netServer.conn->actual_network))' 96 96 print '\t{' 97 97 print '\t\tcrError( "packspu_%s doesn\'t work when there\'s no actual network involved!\\nTry using the simplequery SPU in your chain!" );' % func_name -
trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_glsl.c
r42499 r42528 29 29 int writeback = 1; 30 30 GLuint return_val = (GLuint) 0; 31 if (! (pack_spu.thread[pack_spu.idxThreadInUse].netServer.conn->actual_network))31 if (!CRPACKSPU_IS_WDDM_CRHGSMI() && !(pack_spu.thread[pack_spu.idxThreadInUse].netServer.conn->actual_network)) 32 32 { 33 33 crError("packspu_CreateProgram doesn't work when there's no actual network involved!\nTry using the simplequery SPU in your chain!"); … … 58 58 int writeback = 1; 59 59 GLint return_val = (GLint) 0; 60 if (! (pack_spu.thread[pack_spu.idxThreadInUse].netServer.conn->actual_network))60 if (!CRPACKSPU_IS_WDDM_CRHGSMI() && !(pack_spu.thread[pack_spu.idxThreadInUse].netServer.conn->actual_network)) 61 61 { 62 62 crError("packspu_GetUniformLocation doesn't work when there's no actual network involved!\nTry using the simplequery SPU in your chain!"); -
trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_init.c
r42499 r42528 51 51 #endif 52 52 53 /* This connects to the server, sets up the packer, etc. */ 54 thread = packspuNewThread( 53 if (!CRPACKSPU_IS_WDDM_CRHGSMI()) 54 { 55 /* This connects to the server, sets up the packer, etc. */ 56 thread = packspuNewThread( 55 57 #if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST) 56 58 NULL 57 59 #endif 58 );60 ); 59 61 60 if (!thread) { 61 return NULL; 62 if (!thread) { 63 return NULL; 64 } 65 CRASSERT( thread == &(pack_spu.thread[0]) ); 66 pack_spu.idxThreadInUse = 0; 62 67 } 63 CRASSERT( thread == &(pack_spu.thread[0]) );64 pack_spu.idxThreadInUse = 0;65 68 66 69 packspuCreateFunctions(); -
trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_misc.c
r42523 r42528 76 76 { 77 77 GET_THREAD(thread); 78 GLint writeback = pack_spu.thread[pack_spu.idxThreadInUse].netServer.conn->actual_network;78 GLint writeback = CRPACKSPU_IS_WDDM_CRHGSMI() ? 1 : pack_spu.thread[pack_spu.idxThreadInUse].netServer.conn->actual_network; 79 79 80 80 if (pack_spu.swap) … … 182 182 GET_THREAD(thread); 183 183 static int num_calls = 0; 184 int writeback = pack_spu.thread[pack_spu.idxThreadInUse].netServer.conn->actual_network;184 int writeback = CRPACKSPU_IS_WDDM_CRHGSMI() ? 1 : pack_spu.thread[pack_spu.idxThreadInUse].netServer.conn->actual_network; 185 185 GLint return_val = (GLint) 0; 186 186 ThreadInfo *curThread = thread; … … 264 264 GLsizei i; 265 265 266 if (! (pack_spu.thread[pack_spu.idxThreadInUse].netServer.conn->actual_network))266 if (!CRPACKSPU_IS_WDDM_CRHGSMI() && !(pack_spu.thread[pack_spu.idxThreadInUse].netServer.conn->actual_network)) 267 267 { 268 268 crError( "packspu_AreTexturesResident doesn't work when there's no actual network involved!\nTry using the simplequery SPU in your chain!" ); … … 304 304 GLsizei i; 305 305 306 if (! (pack_spu.thread[pack_spu.idxThreadInUse].netServer.conn->actual_network))306 if (!CRPACKSPU_IS_WDDM_CRHGSMI() && !(pack_spu.thread[pack_spu.idxThreadInUse].netServer.conn->actual_network)) 307 307 { 308 308 crError( "packspu_AreProgramsResidentNV doesn't work when there's no actual network involved!\nTry using the simplequery SPU in your chain!" ); … … 467 467 crLockMutex(&_PackMutex); 468 468 { 469 CRASSERT( (pack_spu.numThreads>0) && (pack_spu.numThreads<MAX_THREADS));470 469 CRASSERT(CRPACKSPU_IS_WDDM_CRHGSMI() || (pack_spu.numThreads>0)); 470 CRASSERT(pack_spu.numThreads<MAX_THREADS); 471 471 for (i=0; i<MAX_THREADS; ++i) 472 472 { … … 490 490 thread->netServer.buffer_size = 64 * 1024; 491 491 492 crNetNewClient( pack_spu.thread[pack_spu.idxThreadInUse].netServer.conn,&(thread->netServer)492 crNetNewClient(&(thread->netServer) 493 493 #if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST) 494 494 , pHgsmi -
trunk/src/VBox/GuestHost/OpenGL/include/cr_netserver.h
r42499 r42528 27 27 #endif 28 28 ); 29 DECLEXPORT(void) crNetNewClient( CR Connection *conn, CRNetServer *ns29 DECLEXPORT(void) crNetNewClient( CRNetServer *ns 30 30 #if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST) 31 31 , struct VBOXUHGSMI *pHgsmi -
trunk/src/VBox/GuestHost/OpenGL/util/net.c
r42499 r42528 305 305 * We send a CR_MESSAGE_NEWCLIENT packet, then call crNetServerConnect. 306 306 */ 307 void crNetNewClient( CR Connection *conn, CRNetServer *ns307 void crNetNewClient( CRNetServer *ns 308 308 #if defined(VBOX_WITH_CRHGSMI) && defined(IN_GUEST) 309 309 , struct VBOXUHGSMI *pHgsmi
Note:
See TracChangeset
for help on using the changeset viewer.