VirtualBox

Ignore:
Timestamp:
Apr 2, 2012 5:07:43 PM (13 years ago)
Author:
vboxsync
Message:

wddm: fix 3d rendering for 3d-disabled, make wmp render correctly over d3d IF for 3d-disabled case to allow video detection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/common/wddm/VBoxMPIf.h

    r40483 r40747  
    239239{
    240240    VBOXWDDM_CONTEXT_TYPE_UNDEFINED = 0,
     241    /* system-created context (for GDI rendering) */
    241242    VBOXWDDM_CONTEXT_TYPE_SYSTEM,
     243    /* context created by the D3D User-mode driver when crogl IS available */
    242244    VBOXWDDM_CONTEXT_TYPE_CUSTOM_3D,
     245    /* context created by the D3D User-mode driver when crogl is NOT available or for ddraw overlay acceleration */
    243246    VBOXWDDM_CONTEXT_TYPE_CUSTOM_2D,
     247    /* contexts created by the cromium HGSMI transport for HGSMI commands submission */
    244248    VBOXWDDM_CONTEXT_TYPE_CUSTOM_UHGSMI_3D,
    245249    VBOXWDDM_CONTEXT_TYPE_CUSTOM_UHGSMI_GL,
     250    /* context created by the kernel->user communication mechanism for visible rects reporting, etc.  */
    246251    VBOXWDDM_CONTEXT_TYPE_CUSTOM_SESSION
    247252} VBOXWDDM_CONTEXT_TYPE;
     
    481486
    482487/* submit cmd func */
     488DECLINLINE(D3DDDIFORMAT) vboxWddmFmtNoAlphaFormat(D3DDDIFORMAT enmFormat)
     489{
     490    switch (enmFormat)
     491    {
     492        case D3DDDIFMT_A8R8G8B8:
     493            return D3DDDIFMT_X8R8G8B8;
     494        case D3DDDIFMT_A1R5G5B5:
     495            return D3DDDIFMT_X1R5G5B5;
     496        case D3DDDIFMT_A4R4G4B4:
     497            return D3DDDIFMT_X4R4G4B4;
     498        case D3DDDIFMT_A8B8G8R8:
     499            return D3DDDIFMT_X8B8G8R8;
     500        default:
     501            return enmFormat;
     502    }
     503}
    483504
    484505/* tooling */
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