VirtualBox

Changeset 38217 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jul 28, 2011 12:44:58 PM (13 years ago)
Author:
vboxsync
Message:

wddm/wine: fix fast sys2vram blits for the PBO case

File:
1 edited

Legend:

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

    r38112 r38217  
    889889
    890890#ifdef VBOX_WITH_WDDM
    891 static void surface_upload_data_rect(IWineD3DSurfaceImpl *This, const struct wined3d_gl_info *gl_info,
     891static void surface_upload_data_rect(IWineD3DSurfaceImpl *This, IWineD3DSurfaceImpl *Src, const struct wined3d_gl_info *gl_info,
    892892        const struct wined3d_format_desc *format_desc, BOOL srgb, const GLvoid *data, RECT *pRect)
    893893{
     
    919919    ENTER_GL();
    920920
    921     if (This->Flags & SFLAG_PBO)
    922     {
    923         GL_EXTCALL(glBindBufferARB(GL_PIXEL_UNPACK_BUFFER_ARB, This->pbo));
     921    if (Src->Flags & SFLAG_PBO)
     922    {
     923        GL_EXTCALL(glBindBufferARB(GL_PIXEL_UNPACK_BUFFER_ARB, Src->pbo));
    924924        checkGLcall("glBindBufferARB");
    925925
    926         TRACE("(%p) pbo: %#x, data: %p.\n", This, This->pbo, data);
    927         data = NULL;
     926        TRACE("(%p) pbo: %#x, data: %p.\n", Src, Src->pbo, data);
     927        /* the data should contain a zero-based offset */
    928928    }
    929929
     
    945945    }
    946946
    947     if (This->Flags & SFLAG_PBO)
     947    if (Src->Flags & SFLAG_PBO)
    948948    {
    949949        GL_EXTCALL(glBindBufferARB(GL_PIXEL_UNPACK_BUFFER_ARB, 0));
     
    41794179    LEAVE_GL();
    41804180
    4181     if (mem || (This->Flags & SFLAG_PBO))
    4182         surface_upload_data_rect(This, gl_info, &desc, srgb, updateMem, &dst_rect);
     4181    Assert(!!mem == !(Src->Flags & SFLAG_PBO));
     4182    surface_upload_data_rect(This, Src, gl_info, &desc, srgb, updateMem, &dst_rect);
    41834183
    41844184    /* Restore the default pitch */
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