VirtualBox

Changeset 103574 in vbox


Ignore:
Timestamp:
Feb 26, 2024 4:05:40 PM (9 months ago)
Author:
vboxsync
Message:

Devices/Graphics,WDDM: translate ClearDepthStencilView flags

Location:
trunk/src/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/dx/VBoxDX.cpp

    r102809 r103574  
    29502950                                 UINT Flags, FLOAT Depth, UINT8 Stencil)
    29512951{
    2952     vgpu10ClearDepthStencilView(pDevice, (uint16)Flags, Stencil, pDepthStencilView->uDepthStencilViewId, Depth);
     2952    uint16_t svgaFlags = 0;
     2953    if (Flags & D3D10_DDI_CLEAR_DEPTH)
     2954        svgaFlags |= SVGA3D_CLEAR_DEPTH;
     2955    if (Flags & D3D10_DDI_CLEAR_STENCIL)
     2956        svgaFlags |= SVGA3D_CLEAR_STENCIL;
     2957    vgpu10ClearDepthStencilView(pDevice, svgaFlags, Stencil, pDepthStencilView->uDepthStencilViewId, Depth);
    29532958}
    29542959
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-dx-dx11.cpp

    r103417 r103574  
    83568356    AssertRCReturn(rc, rc);
    83578357
    8358     pDevice->pImmediateContext->ClearDepthStencilView(pDXView->u.pDepthStencilView, flags, depth, stencil);
     8358    UINT ClearFlags = 0;
     8359    if (flags & SVGA3D_CLEAR_DEPTH)
     8360        ClearFlags |= D3D11_CLEAR_DEPTH;
     8361    if (flags & SVGA3D_CLEAR_STENCIL)
     8362        ClearFlags |= D3D11_CLEAR_STENCIL;
     8363
     8364    pDevice->pImmediateContext->ClearDepthStencilView(pDXView->u.pDepthStencilView, ClearFlags, depth, stencil);
    83598365    return VINF_SUCCESS;
    83608366}
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