VirtualBox

Ignore:
Timestamp:
Jul 13, 2015 10:23:52 AM (10 years ago)
Author:
vboxsync
Message:

3D: Display List: Expando SPU and DLM module code significantly reworked (diff unreadable); first revision when glxgears can be saved and successfully restored; more testing and debugging needed; prelimenary tested ane enabled for Mac hosts only.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/dlm/dlm_lists.c

    r56566 r56922  
    77 *   glListBase and glIsList.
    88 *
    9  * Privide OpenGL IDs mapping between host and guest.
     9 * Provide OpenGL IDs mapping between host and guest.
    1010 */
    1111
     
    5757        crdlmFreeDisplayListElements(pListInfo->first);
    5858        pListInfo->first = pListInfo->last = NULL;
    59 
    60         /* The references list has no allocated information; it's
    61          * just a set of entries.  So we don't need to free any
    62          * information as each entry is deleted.
    63          */
    64         crFreeHashtable(pListInfo->references, NULL);
    6559
    6660        /* Free host OpenGL resources. */
     
    191185                    listInfo->first = listInfo->last = NULL;
    192186                    listInfo->stateFirst = listInfo->stateLast = NULL;
    193                     listInfo->references = crAllocHashtable();
    194                     if (listInfo->references)
    195                     {
    196                         listInfo->numInstances = 0;
    197                         listInfo->listSent = GL_FALSE;
    198                         listInfo->bbox.xmin = FLT_MAX;
    199                         listInfo->bbox.xmax = -FLT_MAX;
    200                         listInfo->bbox.ymin = FLT_MAX;
    201                         listInfo->bbox.ymax = -FLT_MAX;
    202                         listInfo->bbox.zmin = FLT_MAX;
    203                         listInfo->bbox.zmax = -FLT_MAX;
    204 
    205                         listState->currentListInfo = listInfo;
    206                         listState->currentListIdentifier = list;
    207                         listState->currentListMode = mode;
    208 
    209                         dispatchTable->NewList(listInfo->hwid, mode);
    210 
    211                         crDebug("DLM: create new list with [guest, host] ID pair [%u, %u].", list, listInfo->hwid);
    212 
    213                         return;
    214                     }
    215                     else
    216                         crDebug("DLM: Could not allocate memory in NewList.");
     187
     188                    listInfo->numInstances = 0;
     189
     190                    listState->currentListInfo = listInfo;
     191                    listState->currentListIdentifier = list;
     192                    listState->currentListMode = mode;
     193
     194                    dispatchTable->NewList(listInfo->hwid, mode);
     195
     196                    crDebug("DLM: create new list with [guest, host] ID pair [%u, %u].", list, listInfo->hwid);
     197
     198                    return;
    217199                }
    218200                else
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