VirtualBox

Changeset 54626 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 4, 2015 2:40:39 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
98769
Message:

DevVGA-SVGA3d-ogl.cpp: LogFlow idAssociatedContext changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-ogl.cpp

    r54576 r54626  
    27702770
    27712771    pSurface->flags              |= SVGA3D_SURFACE_HINT_TEXTURE;
     2772    LogFlow(("vmsvga3dCreateTexture: sid=%#x idAssociatedContext %#x -> %#x\n", pSurface->id, pSurface->idAssociatedContext, idAssociatedContext));
    27722773    pSurface->idAssociatedContext = idAssociatedContext;
    27732774    return VINF_SUCCESS;
     
    27962797    AssertReturn(pSurfaceDest->faces[0].numMipLevels > dest.mipmap, VERR_INVALID_PARAMETER);
    27972798
    2798     Log(("vmsvga3dSurfaceStretchBlt: src sid=%x (%d,%d)(%d,%d) dest sid=%x (%d,%d)(%d,%d) mode=%x\n", src.sid, srcBox.x, srcBox.y, srcBox.x + srcBox.w, srcBox.y + srcBox.h, dest.sid, destBox.x, destBox.y, destBox.x + destBox.w, destBox.y + destBox.h, mode));
     2799    Log(("vmsvga3dSurfaceStretchBlt: src sid=%x cid=%#x (%d,%d)(%d,%d) dest sid=%x cid=%#x (%d,%d)(%d,%d) mode=%x\n",
     2800         src.sid, pSurfaceSrc->idAssociatedContext, srcBox.x, srcBox.y, srcBox.x + srcBox.w, srcBox.y + srcBox.h,
     2801         dest.sid, pSurfaceDest->idAssociatedContext, destBox.x, destBox.y, destBox.x + destBox.w, destBox.y + destBox.h, mode));
    27992802
    28002803    /* @todo stricter checks for associated context */
     
    52655268            VMSVGA3D_CHECK_LAST_ERROR(pState, pContext);
    52665269
     5270            LogFlow(("vmsvga3dSetRenderTarget: sid=%#x idAssociatedContext %#x -> %#x\n", pRenderTarget->id, pRenderTarget->idAssociatedContext, cid));
    52675271            pRenderTarget->idAssociatedContext = cid;
    52685272        }
     
    52785282        pRenderTarget->flags |= SVGA3D_SURFACE_HINT_DEPTHSTENCIL;
    52795283
    5280         pState->ext.glFramebufferRenderbuffer(GL_FRAMEBUFFER, (type == SVGA3D_RT_DEPTH) ? GL_DEPTH_ATTACHMENT : GL_STENCIL_ATTACHMENT, GL_RENDERBUFFER, pRenderTarget->oglId.renderbuffer);
     5284        pState->ext.glFramebufferRenderbuffer(GL_FRAMEBUFFER,
     5285                                              (type == SVGA3D_RT_DEPTH) ? GL_DEPTH_ATTACHMENT : GL_STENCIL_ATTACHMENT,
     5286                                              GL_RENDERBUFFER, pRenderTarget->oglId.renderbuffer);
    52815287        VMSVGA3D_CHECK_LAST_ERROR(pState, pContext);
    52825288        break;
     
    61036109}
    61046110
    6105 int vmsvga3dCommandClear(PVGASTATE pThis, uint32_t cid, SVGA3dClearFlag clearFlag, uint32_t color, float depth, uint32_t stencil, uint32_t cRects, SVGA3dRect *pRect)
     6111int vmsvga3dCommandClear(PVGASTATE pThis, uint32_t cid, SVGA3dClearFlag clearFlag, uint32_t color, float depth, uint32_t stencil,
     6112                         uint32_t cRects, SVGA3dRect *pRect)
    61066113{
    61076114    GLbitfield            mask = 0;
     
    63486355    }
    63496356    pVertexSurface->idAssociatedContext = pContext->id;
     6357    LogFlow(("vmsvga3dDrawPrimitivesProcessVertexDecls: sid=%#x idAssociatedContext %#x -> %#x\n", pVertexSurface->id, pVertexSurface->idAssociatedContext, pContext->id));
    63506358
    63516359    /* Setup the vertex declarations. */
     
    66496657                VMSVGA3D_CHECK_LAST_ERROR(pState, pContext);
    66506658            }
     6659            LogFlow(("vmsvga3dDrawPrimitives: sid=%#x idAssociatedContext %#x -> %#x\n", pIndexSurface->id, pIndexSurface->idAssociatedContext, pContext->id));
    66516660            pIndexSurface->idAssociatedContext = pContext->id;
    66526661        }
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