VirtualBox

Changeset 99785 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
May 13, 2023 4:52:19 PM (19 months ago)
Author:
vboxsync
Message:

Devices/Graphics: debugging helpers readBuffer update

File:
1 edited

Legend:

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

    r99688 r99785  
    63796379    void *pvIndexBuffer;
    63806380    uint32_t cbIndexBuffer;
    6381     int rc = dxReadBuffer(pDXDevice, pIB->pBuffer, pIB->indexBufferOffset + startIndexLocation, indexCount * BytesPerIndex, &pvIndexBuffer, &cbIndexBuffer);
     6381    int rc = dxReadBuffer(pDXDevice, pIB->pBuffer, pIB->indexBufferOffset + startIndexLocation * BytesPerIndex, indexCount * BytesPerIndex, &pvIndexBuffer, &cbIndexBuffer);
    63826382    AssertRC(rc);
    63836383    if (RT_SUCCESS(rc))
     
    69696969    if (RT_SUCCESS(rc))
    69706970    {
    6971         /* Copy from the buffer to the staging buffer. */
     6971        /* Copy 'Bytes' bytes starting at 'Offset' from the buffer to the start of staging buffer. */
    69726972        ID3D11Resource *pDstResource = pDevice->pStagingBuffer;
    69736973        UINT DstSubresource = 0;
    6974         UINT DstX = Offset;
     6974        UINT DstX = 0;
    69756975        UINT DstY = 0;
    69766976        UINT DstZ = 0;
     
    69786978        UINT SrcSubresource = 0;
    69796979        D3D11_BOX SrcBox;
    6980         SrcBox.left   = 0;
     6980        SrcBox.left   = Offset;
    69816981        SrcBox.top    = 0;
    69826982        SrcBox.front  = 0;
    6983         SrcBox.right  = Bytes;
     6983        SrcBox.right  = Offset + Bytes;
    69846984        SrcBox.bottom = 1;
    69856985        SrcBox.back   = 1;
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