VirtualBox

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

Devices/Graphics,WDDM: translate ClearDepthStencilView flags

File:
1 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
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