VirtualBox

Ignore:
Timestamp:
Dec 16, 2011 6:51:37 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
75450
Message:

wine/wddm: faster blits

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/surface.c

    r39150 r39649  
    36823682    IWineD3DSurfaceImpl *Src = (IWineD3DSurfaceImpl *) SrcSurface;
    36833683    RECT dst_rect, src_rect;
     3684#ifdef VBOX_WITH_WDDM
     3685    BOOL fNoRtInvolved = FALSE;
     3686#endif
    36843687
    36853688    TRACE("(%p)->(%p,%p,%p,%08x,%p)\n", This, DestRect, SrcSurface, SrcRect, Flags, DDBltFx);
     
    37053708        SrcSurface != myDevice->render_targets[0] && This != (IWineD3DSurfaceImpl *) myDevice->render_targets[0]) {
    37063709        TRACE("No surface is render target, not using hardware blit. Src = %p, dst = %p\n", Src, This);
     3710#ifdef VBOX_WITH_WDDM
     3711        fNoRtInvolved = TRUE;
     3712#else
    37073713        return WINED3DERR_INVALIDCALL;
     3714#endif
    37083715    }
    37093716
     
    38323839    }
    38333840
    3834     if((srcSwapchain || SrcSurface == myDevice->render_targets[0]) && !dstSwapchain) {
     3841    if(
     3842#ifdef VBOX_WITH_WDDM
     3843            fNoRtInvolved ||
     3844#endif
     3845            ((srcSwapchain || SrcSurface == myDevice->render_targets[0]) && !dstSwapchain)) {
    38353846        /* Blit from render target to texture */
    38363847        BOOL stretchx;
     
    43384349    }
    43394350
     4351#ifndef VBOX_WITH_WDDM
    43404352    /* Special cases for RenderTargets */
    43414353    if( (This->resource.usage & WINED3DUSAGE_RENDERTARGET) ||
    4342         ( Src && (Src->resource.usage & WINED3DUSAGE_RENDERTARGET) )) {
     4354        ( Src && (Src->resource.usage & WINED3DUSAGE_RENDERTARGET) ))
     4355#endif
     4356    {
    43434357        if(IWineD3DSurfaceImpl_BltOverride(This, DestRect, SrcSurface, SrcRect, Flags, DDBltFx, Filter) == WINED3D_OK)
    43444358        {
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