Changeset 55762 in vbox
- Timestamp:
- May 8, 2015 6:05:43 PM (9 years ago)
- Location:
- trunk/src/VBox/HostServices/SharedOpenGL
- Files:
-
- 5 edited
-
Makefile.kmk (modified) (1 diff)
-
crserverlib/server_main.c (modified) (2 diffs)
-
dlm/dlm.c (modified) (1 diff)
-
dlm/dlm_generated.py (modified) (4 diffs)
-
dlm/dlm_header.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/Makefile.kmk
r54905 r55762 101 101 ifdef VBOX_WITH_CRHGSMI 102 102 VBoxSharedCrOpenGL_DEFS += VBOX_WITH_CRHGSMI 103 endif 104 ifdef VBOX_WITH_CR_DISPLAY_LISTS 105 VBoxSharedCrOpenGL_LIBS += $(PATH_STAGE_LIB)/VBoxOGLcrdlm$(VBOX_SUFF_LIB) 103 106 endif 104 107 -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_main.c
r55761 r55762 16 16 #include "cr_environment.h" 17 17 #include "cr_pixeldata.h" 18 19 #ifdef VBOX_WITH_CR_DISPLAY_LISTS 20 # include "cr_dlm.h" 21 #endif 22 18 23 #include "server_dispatch.h" 19 24 #include "state/cr_texture.h" … … 1671 1676 } 1672 1677 } 1678 1679 #ifdef VBOX_WITH_CR_DISPLAY_LISTS 1680 rc = crDLMSaveState(); 1681 AssertRCReturn(rc, rc); 1682 #endif 1673 1683 1674 1684 rc = crServerPendSaveState(pSSM); -
trunk/src/VBox/HostServices/SharedOpenGL/dlm/dlm.c
r55012 r55762 733 733 (*ErrorCallback)(line, file, error, info); 734 734 } 735 736 int32_t DLM_APIENTRY crDLMSaveState(void) 737 { 738 return 0; 739 } -
trunk/src/VBox/HostServices/SharedOpenGL/dlm/dlm_generated.py
r54905 r55762 85 85 print ' DLMInstanceList *next;' 86 86 print ' DLMInstanceList *stateNext;' 87 print ' int cbInstance;' 87 88 print ' void (DLM_APIENTRY *execute)(DLMInstanceList *instance, SPUDispatchTable *dispatchTable);' 88 89 for (name, type, vecSize) in params: … … 286 287 print ' CRDLMContextState *state = CURRENT_STATE();' 287 288 print ' struct instance%s *instance;' % (functionName) 288 289 289 290 # The calling SPU is supposed to verify that the element is supposed to be 290 291 # compiled before it is actually compiled; typically, this is done based … … 318 319 name = params[index][0] 319 320 print '\tinstance->%s = %s;' % (name, name) 320 321 322 # We need to know instance size in bytes in order to save its state later. 323 print '\tinstance->cbInstance = sizeof(struct instance%s);' % functionName 324 321 325 # If there's a pointer parameter, apply it. 322 326 if len(pointers) == 1: … … 328 332 print '\t}' 329 333 if pointersize == 'special': 330 print '\t (void)crdlm_pointers_%s(instance, %s);' % (functionName, callstring)334 print '\tinstance->cbInstance += crdlm_pointers_%s(instance, %s);' % (functionName, callstring) 331 335 else: 332 336 print '\tcrMemcpy((void *)instance->%s, (void *) %s, %s*sizeof(%s));' % (params[pointers[0]][0], params[pointers[0]][0], pointersize, pointertype) 333 337 elif len(pointers) == 2: 334 338 # this seems to work 335 print '\t (void)crdlm_pointers_%s(instance, %s);' % (functionName, callstring)339 print '\tinstance->cbInstance += crdlm_pointers_%s(instance, %s);' % (functionName, callstring) 336 340 elif len(pointers) > 2: 337 341 print "#error don't know how to handle pointer parameters for %s" % (functionName) 338 342 339 343 # Add the element to the current display list 340 344 AddInstanceToList('\t') -
trunk/src/VBox/HostServices/SharedOpenGL/dlm/dlm_header.py
r54905 r55762 52 52 ('GLuint DLM_APIENTRY', 'crDLMGenLists', 'GLsizei range'), 53 53 ('void DLM_APIENTRY', 'crDLMListBase', 'GLuint base'), 54 ('int32_t DLM_APIENTRY', 'crDLMSaveState', 'void'), 54 55 #('void DLM_APIENTRY', 'crDLMListSent', 'CRDLM *dlm, unsigned long listIdentifier'), 55 56 #('GLboolean DLM_APIENTRY', 'crDLMIsListSent', 'CRDLM *dlm, unsigned long listIdentifier'), … … 95 96 struct DLMInstanceList *next; 96 97 struct DLMInstanceList *stateNext; 98 int cbInstance; 97 99 void (*execute)(struct DLMInstanceList *instance, SPUDispatchTable *dispatchTable); 98 100 } DLMInstanceList;
Note:
See TracChangeset
for help on using the changeset viewer.

