VirtualBox

Changeset 94227 in vbox


Ignore:
Timestamp:
Mar 14, 2022 3:02:49 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
150483
Message:

Devices/Graphics: a fix for piglit; map fix for compressed textures; remove obsolete assert: bugref:9830

File:
1 edited

Legend:

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

    r94223 r94227  
    13681368
    13691369
     1370static D3D11_FILL_MODE dxFillMode(uint8_t svgaFillMode)
     1371{
     1372    if (svgaFillMode == SVGA3D_FILLMODE_POINT)
     1373        return D3D11_FILL_WIREFRAME;
     1374    return (D3D11_FILL_MODE)svgaFillMode;
     1375}
     1376
     1377
    13701378static HRESULT dxRasterizerStateCreate(DXDEVICE *pDevice, SVGACOTableDXRasterizerStateEntry const *pEntry, ID3D11RasterizerState **pp)
    13711379{
    13721380    D3D11_RASTERIZER_DESC desc;
    1373     desc.FillMode              = (D3D11_FILL_MODE)pEntry->fillMode;
     1381    desc.FillMode              = dxFillMode(pEntry->fillMode);
    13741382    desc.CullMode              = (D3D11_CULL_MODE)pEntry->cullMode;
    13751383    desc.FrontCounterClockwise = pEntry->frontCounterClockwise;
     
    33203328            pMap->cbDepthPitch = mappedResource.DepthPitch;
    33213329            pMap->pvData       = (uint8_t *)mappedResource.pData
    3322                                + pMap->box.x * pMap->cbPixel
    3323                                + pMap->box.y * pMap->cbRowPitch
     3330                               + (pMap->box.x / pSurface->cxBlock) * pMap->cbPixel
     3331                               + (pMap->box.y / pSurface->cyBlock) * pMap->cbRowPitch
    33243332                               + pMap->box.z * pMap->cbDepthPitch;
    33253333        }
     
    48664874    {
    48674875        /** @todo This is generic code and should be in DevVGA-SVGA3d.cpp for backends which support Map/Unmap. */
    4868         AssertReturn(uHostFace == 0 && uHostMipmap == 0, VERR_INVALID_PARAMETER);
    4869 
    48704876        uint32_t const u32GuestBlockX = pBox->srcx / pSurface->cxBlock;
    48714877        uint32_t const u32GuestBlockY = pBox->srcy / pSurface->cyBlock;
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