VirtualBox

Ignore:
Timestamp:
Jan 21, 2010 9:26:23 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
56794
Message:

crOpenGL: update to wine 1.1.36 and disable unnecessary fbo state poll

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Wine/d3d9/volumetexture.c

    r23571 r25949  
    3838    IDirect3DVolumeTexture9Impl *This = (IDirect3DVolumeTexture9Impl *)iface;
    3939
     40    TRACE("iface %p, riid %s, object %p.\n", iface, debugstr_guid(riid), ppobj);
     41
    4042    if (IsEqualGUID(riid, &IID_IUnknown)
    4143    || IsEqualGUID(riid, &IID_IDirect3DResource9)
     
    5658    ULONG ref = InterlockedIncrement(&This->ref);
    5759
    58     TRACE("(%p) : AddRef from %d\n", This, ref - 1);
     60    TRACE("%p increasing refcount to %u.\n", iface, ref);
    5961
    6062    if (ref == 1)
     
    7375    ULONG ref = InterlockedDecrement(&This->ref);
    7476
    75     TRACE("(%p) : ReleaseRef to %d\n", This, ref);
     77    TRACE("%p decreasing refcount to %u.\n", iface, ref);
    7678
    7779    if (ref == 0) {
    78         IDirect3DDevice9Ex_Release(This->parentDevice);
     80        IDirect3DDevice9Ex *parentDevice = This->parentDevice;
     81
    7982        wined3d_mutex_lock();
    8083        IWineD3DVolumeTexture_Release(This->wineD3DVolumeTexture);
    8184        wined3d_mutex_unlock();
     85
     86        /* Release the device last, as it may cause the device to be destroyed. */
     87        IDirect3DDevice9Ex_Release(parentDevice);
    8288    }
    8389    return ref;
     
    8591
    8692/* IDirect3DVolumeTexture9 IDirect3DResource9 Interface follow: */
    87 static HRESULT WINAPI IDirect3DVolumeTexture9Impl_GetDevice(LPDIRECT3DVOLUMETEXTURE9 iface, IDirect3DDevice9** ppDevice) {
    88     IDirect3DVolumeTexture9Impl *This = (IDirect3DVolumeTexture9Impl *)iface;
    89     IWineD3DDevice *wined3d_device;
    90     HRESULT hr;
    91 
    92     TRACE("(%p) Relay\n", This);
    93 
    94     wined3d_mutex_lock();
    95     hr = IWineD3DStateBlock_GetDevice(This->wineD3DVolumeTexture, &wined3d_device);
    96     if (SUCCEEDED(hr))
    97     {
    98         IWineD3DDevice_GetParent(wined3d_device, (IUnknown **)ppDevice);
    99         IWineD3DDevice_Release(wined3d_device);
    100     }
    101     wined3d_mutex_unlock();
    102 
    103     return hr;
     93static HRESULT WINAPI IDirect3DVolumeTexture9Impl_GetDevice(IDirect3DVolumeTexture9 *iface, IDirect3DDevice9 **device)
     94{
     95    IDirect3DVolumeTexture9Impl *This = (IDirect3DVolumeTexture9Impl *)iface;
     96
     97    TRACE("iface %p, device %p.\n", iface, device);
     98
     99    *device = (IDirect3DDevice9 *)This->parentDevice;
     100    IDirect3DDevice9_AddRef(*device);
     101
     102    TRACE("Returning device %p.\n", *device);
     103
     104    return D3D_OK;
    104105}
    105106
     
    108109    HRESULT hr;
    109110
    110     TRACE("(%p) Relay\n", This);
     111    TRACE("iface %p, guid %s, data %p, data_size %u, flags %#x.\n",
     112            iface, debugstr_guid(refguid), pData, SizeOfData, Flags);
    111113
    112114    wined3d_mutex_lock();
     
    123125    HRESULT hr;
    124126
    125     TRACE("(%p) Relay\n", This);
     127    TRACE("iface %p, guid %s, data %p, data_size %p.\n",
     128            iface, debugstr_guid(refguid), pData, pSizeOfData);
    126129
    127130    wined3d_mutex_lock();
     
    138141    HRESULT hr;
    139142
    140     TRACE("(%p) Relay\n", This);
     143    TRACE("iface %p, guid %s.\n", iface, debugstr_guid(refguid));
    141144
    142145    wined3d_mutex_lock();
     
    153156    DWORD priority;
    154157
    155     TRACE("(%p) Relay\n", This);
     158    TRACE("iface %p, priority %u.\n", iface, PriorityNew);
    156159
    157160    wined3d_mutex_lock();
     
    168171    DWORD priority;
    169172
    170     TRACE("(%p) Relay\n", This);
     173    TRACE("iface %p.\n", iface);
    171174
    172175    wined3d_mutex_lock();
     
    182185    IDirect3DVolumeTexture9Impl *This = (IDirect3DVolumeTexture9Impl *)iface;
    183186
    184     TRACE("(%p) Relay\n", This);
     187    TRACE("iface %p.\n", iface);
    185188
    186189    wined3d_mutex_lock();
     
    195198    D3DRESOURCETYPE type;
    196199
    197     TRACE("(%p) Relay\n", This);
     200    TRACE("iface %p.\n", iface);
    198201
    199202    wined3d_mutex_lock();
     
    211214    DWORD lod;
    212215
    213     TRACE("(%p) Relay\n", This);
     216    TRACE("iface %p, lod %u.\n", iface, LODNew);
    214217
    215218    wined3d_mutex_lock();
     
    226229    DWORD lod;
    227230
    228     TRACE("(%p) Relay\n", This);
     231    TRACE("iface %p.\n", iface);
    229232
    230233    wined3d_mutex_lock();
     
    241244    DWORD level_count;
    242245
    243     TRACE("(%p) Relay\n", This);
     246    TRACE("iface %p.\n", iface);
    244247
    245248    wined3d_mutex_lock();
     
    256259    HRESULT hr;
    257260
    258     TRACE("(%p) Relay\n", This);
     261    TRACE("iface %p, filter_type %#x.\n", iface, FilterType);
    259262
    260263    wined3d_mutex_lock();
     
    271274    D3DTEXTUREFILTERTYPE filter_type;
    272275
    273     TRACE("(%p) Relay\n", This);
     276    TRACE("iface %p.\n", iface);
    274277
    275278    wined3d_mutex_lock();
     
    285288    IDirect3DVolumeTexture9Impl *This = (IDirect3DVolumeTexture9Impl *)iface;
    286289
    287     TRACE("(%p) Relay\n", This);
     290    TRACE("iface %p.\n", iface);
    288291
    289292    wined3d_mutex_lock();
     
    300303    HRESULT hr;
    301304
    302     TRACE("(%p) Relay\n", This);
     305    TRACE("iface %p, level %u, desc %p.\n", iface, Level, pDesc);
    303306
    304307    wined3d_mutex_lock();
     
    327330    IWineD3DVolume *myVolume = NULL;
    328331
    329     TRACE("(%p) Relay\n", This);
     332    TRACE("iface %p, level %u, volume %p.\n", iface, Level, ppVolumeLevel);
    330333
    331334    wined3d_mutex_lock();
     
    346349    HRESULT hr;
    347350
    348     TRACE("(%p) Relay %p %p %p %d\n", This, This->wineD3DVolumeTexture, pLockedVolume, pBox,Flags);
     351    TRACE("iface %p, level %u, locked_box %p, box %p, flags %#x.\n",
     352            iface, Level, pLockedVolume, pBox, Flags);
    349353
    350354    wined3d_mutex_lock();
     
    362366    HRESULT hr;
    363367
    364     TRACE("(%p) Relay %p %d\n", This, This->wineD3DVolumeTexture, Level);
     368    TRACE("iface %p, level %u.\n", iface, Level);
    365369
    366370    wined3d_mutex_lock();
     
    377381    HRESULT hr;
    378382
    379     TRACE("(%p) Relay\n", This);
     383    TRACE("iface %p, dirty_box %p.\n", iface, pDirtyBox);
    380384
    381385    wined3d_mutex_lock();
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette