VirtualBox

Ignore:
Timestamp:
Jul 16, 2010 5:11:31 PM (14 years ago)
Author:
vboxsync
Message:

wddm/3d: Aero working cleanly!

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispD3D.cpp

    r30865 r30885  
    12531253        {FALSE, D3DTSS_ALPHAARG0},               /* 27, D3DDDITSS_ALPHAARG0 */
    12541254        {FALSE, D3DTSS_RESULTARG},               /* 28, D3DDDITSS_RESULTARG */
    1255         {FALSE, D3DTSS_FORCE_DWORD},             /* 29, D3DDDITSS_SRGBTEXTURE */
    1256         {FALSE, D3DTSS_FORCE_DWORD},             /* 30, D3DDDITSS_ELEMENTINDEX */
    1257         {FALSE, D3DTSS_FORCE_DWORD},             /* 31, D3DDDITSS_DMAPOFFSET */
     1255        {TRUE, D3DSAMP_SRGBTEXTURE},             /* 29, D3DDDITSS_SRGBTEXTURE */
     1256        {TRUE, D3DSAMP_ELEMENTINDEX},            /* 30, D3DDDITSS_ELEMENTINDEX */
     1257        {TRUE, D3DSAMP_DMAPOFFSET},              /* 31, D3DDDITSS_DMAPOFFSET */
    12581258        {FALSE, D3DTSS_CONSTANT},                /* 32, D3DDDITSS_CONSTANT */
    12591259        {FALSE, D3DTSS_FORCE_DWORD},             /* 33, D3DDDITSS_DISABLETEXTURECOLORKEY */
    12601260        {FALSE, D3DTSS_FORCE_DWORD},             /* 34, D3DDDITSS_TEXTURECOLORKEYVAL */
    12611261    };
     1262
     1263    Assert(enmType > 0);
     1264    Assert(enmType < RT_ELEMENTS(lookup));
     1265    Assert(lookup[enmType].dType != D3DTSS_FORCE_DWORD);
    12621266
    12631267    return lookup[enmType];
     
    44704474    Assert(pRc);
    44714475    Assert(pData->SubResourceIndex < pRc->cAllocations);
    4472     Assert(pRc == pDevice->pRenderTargetRc);
    44734476    if (pRc == pDevice->pRenderTargetRc)
    44744477    {
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispD3DCmn.h

    r30865 r30885  
    3838# define VBOXWDDMDISP_DEBUG
    3939# define VBOXWDDMDISP_DEBUG_FLOW
     40//# define VBOXWDDMDISP_DEBUG_DUMPSURFDATA
    4041#endif
    4142
     
    8283        vboxVDbgDoMpPrintAlloc _m ; \
    8384    } while (0)
     85#ifdef VBOXWDDMDISP_DEBUG_DUMPSURFDATA
    8486#define vboxVDbgDumpSurfData(_m) \
    8587    do { \
    8688        vboxVDbgDoDumpSurfData _m ; \
    8789    } while (0)
     90#else
     91#define vboxVDbgDumpSurfData(_m) do {} while (0)
     92#endif
    8893#ifdef VBOXWDDMDISP_DEBUG_FLOW
    8994# define vboxVDbgPrintF  vboxVDbgPrint
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