VirtualBox

Changeset 53519 in vbox for trunk


Ignore:
Timestamp:
Dec 12, 2014 10:34:36 AM (10 years ago)
Author:
vboxsync
Message:

Additions/WINNT: fix texture format mismatch in WDDM driver.

Location:
trunk/src/VBox/Additions/WINNT/Graphics/Video
Files:
2 edited

Legend:

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

    r49591 r53519  
    548548            return 32;
    549549        case D3DDDIFMT_A16B16G16R16:
    550         case D3DDDIFMT_A16B16G16R16F:
     550// Floating-point formats are not implemented in Chromium.
     551//        case D3DDDIFMT_A16B16G16R16F:
    551552            return 64;
    552553        case D3DDDIFMT_A8P8:
     
    598599        case D3DDDIFMT_R16F:
    599600            return 16;
     601        case D3DDDIFMT_YUY2: /* 4 bytes per 2 pixels. */
     602            return 16;
    600603        default:
    601604            AssertBreakpoint();
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxDispD3DIf.cpp

    r52814 r53519  
    384384        FORMATOP_VERTEXTEXTURE, 0, 0, 0},
    385385
    386     {D3DDDIFMT_A16B16G16R16F,
    387         FORMATOP_TEXTURE|FORMATOP_VOLUMETEXTURE|FORMATOP_CUBETEXTURE|FORMATOP_OFFSCREEN_RENDERTARGET|
    388         FORMATOP_SAME_FORMAT_RENDERTARGET|
    389         0|
    390         FORMATOP_OFFSCREENPLAIN|
    391         0|
    392         FORMATOP_VERTEXTEXTURE, 0, 0, 0},
    393 
    394     {D3DDDIFMT_A32B32G32R32F,
    395         FORMATOP_TEXTURE|FORMATOP_VOLUMETEXTURE|FORMATOP_CUBETEXTURE|FORMATOP_OFFSCREEN_RENDERTARGET|
    396         FORMATOP_SAME_FORMAT_RENDERTARGET|
    397         0|
    398         FORMATOP_OFFSCREENPLAIN|
    399         0|
    400         FORMATOP_VERTEXTEXTURE, 0, 0, 0},
     386// Floating-point formats are not implemented in Chromium.
     387//    {D3DDDIFMT_A16B16G16R16F,
     388//        FORMATOP_TEXTURE|FORMATOP_VOLUMETEXTURE|FORMATOP_CUBETEXTURE|FORMATOP_OFFSCREEN_RENDERTARGET|
     389//        FORMATOP_SAME_FORMAT_RENDERTARGET|
     390//        0|
     391//        FORMATOP_OFFSCREENPLAIN|
     392//        0|
     393//        FORMATOP_VERTEXTEXTURE, 0, 0, 0},
     394//
     395//    {D3DDDIFMT_A32B32G32R32F,
     396//        FORMATOP_TEXTURE|FORMATOP_VOLUMETEXTURE|FORMATOP_CUBETEXTURE|FORMATOP_OFFSCREEN_RENDERTARGET|
     397//        FORMATOP_SAME_FORMAT_RENDERTARGET|
     398//        0|
     399//        FORMATOP_OFFSCREENPLAIN|
     400//        0|
     401//        FORMATOP_VERTEXTEXTURE, 0, 0, 0},
    401402
    402403    {D3DDDIFMT_G16R16,
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