VirtualBox

Ignore:
Timestamp:
Oct 28, 2010 10:48:04 AM (14 years ago)
Author:
vboxsync
Message:

crOpenGL/wddm: avoid unrolling drawprimitive calls when possible

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_arrays.c

    r31808 r33549  
    164164                                            GLsizei stride, const GLvoid *pointer, CRClientState *c)
    165165{
     166    /*crDebug("crUnpackSetClientPointerByIndex: %i(s=%i, t=0x%x, n=%i, str=%i) -> %p", index, size, type, normalized, stride, pointer);*/
     167
    166168    if (index<7)
    167169    {
     
    225227    offset = 2*sizeof(int)+12;
    226228
     229    /*crDebug("crUnpackExtendLockArraysEXT(%i, %i) ne=%i", first, count, numenabled);*/
     230
    227231    for (i=0; i<numenabled; ++i)
    228232    {
     
    234238        crMemcpy(data+first*cp->bytesPerIndex, DATA_POINTER(offset, GLvoid), count*cp->bytesPerIndex);
    235239        offset += count*cp->bytesPerIndex;
     240        /*crDebug("crUnpackExtendLockArraysEXT: old cp(%i): en/l=%i(%i) p=%p size=%i type=0x%x n=%i str=%i pp=%p pstr=%i",
     241                index, cp->enabled, cp->locked, cp->p, cp->size, cp->type, cp->normalized, cp->stride, cp->prevPtr, cp->prevStride);*/
    236242        crUnpackSetClientPointerByIndex(index, cp->size, cp->type, cp->normalized, 0, data, c);
     243        /*crDebug("crUnpackExtendLockArraysEXT: new cp(%i): en/l=%i(%i) p=%p size=%i type=0x%x n=%i str=%i pp=%p pstr=%i",
     244                index, cp->enabled, cp->locked, cp->p, cp->size, cp->type, cp->normalized, cp->stride, cp->prevPtr, cp->prevStride);*/
    237245    }
    238246    cr_unpackDispatch.LockArraysEXT(first, count);
     
    246254    CRClientPointer *cp;
    247255
     256    /*crDebug("crUnpackExtendUnlockArraysEXT");*/
     257
    248258    cr_unpackDispatch.UnlockArraysEXT();
    249259
     
    253263        if (cp->enabled)
    254264        {
     265            /*crDebug("crUnpackExtendUnlockArraysEXT: old cp(%i): en/l=%i(%i) p=%p size=%i type=0x%x n=%i str=%i pp=%p pstr=%i",
     266                    i, cp->enabled, cp->locked, cp->p, cp->size, cp->type, cp->normalized, cp->stride, cp->prevPtr, cp->prevStride);*/
    255267            crUnpackSetClientPointerByIndex(i, cp->size, cp->type, cp->normalized, cp->prevStride, cp->prevPtr, c);
    256         }
    257     }
    258 }
     268            /*crDebug("crUnpackExtendUnlockArraysEXT: new cp(%i): en/l=%i(%i) p=%p size=%i type=0x%x n=%i str=%i pp=%p pstr=%i",
     269                    i, cp->enabled, cp->locked, cp->p, cp->size, cp->type, cp->normalized, cp->stride, cp->prevPtr, cp->prevStride);*/
     270        }
     271    }
     272}
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