VirtualBox

Ignore:
Timestamp:
Jun 24, 2013 2:30:18 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
86685
Message:

wddm/crOpenGL: r0-based visible regions handling, r0-based chromium commands submission debugged, more on new presentation mechanism, cleanup, etc.

File:
1 edited

Legend:

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

    r46236 r46757  
    618618
    619619static DWORD g_aCaps1[] = {
    620           0x00000001, 0x00000000, 0x00000000, 0x60020000,
    621           0x00000320, 0x80000001, 0x00000003, 0x0059aff0,
    622           0x000a0ff2, 0x07322191, 0x000000ff, 0x00003fff,
    623           0x000023ff, 0x000000ff, 0x00084208, 0x0007ec85,
    624           0x07030700, 0x07030700, 0x03030300, 0x0000001f,
    625           0x0000001f, 0x0000001f, 0x00001000, 0x00001000,
    626           0x00000100, 0x00008000, 0x00001000, 0x00000010,
    627           0x3f800000, 0x00000000, 0x00000000, 0x00000000,
    628           0x00000000, 0x00000000, 0x000001ff, 0x00100008,
    629           0x03feffff, 0x00000008, 0x00000008, 0x0000003b,
    630           0x00000008, 0x00000006, 0x00000001, 0x00000000,
    631           0x437f0000, 0x000fffff, 0x000fffff, 0x00000010,
    632           0x00000400, 0xfffe0200, 0x00000080, 0xffff0200,
    633           0x41000000, 0x00000051, 0x00000000, 0x00000000,
    634           0x00000000, 0x00000000, 0x00000001, 0x0000000f,
    635           0x00000001, 0x03000300, 0x00000000, 0x00000000,
    636           0x0000001f, 0x00000001, 0x00000000, 0x00000000,
    637           0x00000100, 0x00000000, 0x00000060, 0x00000000,
    638           0x0000ffff, 0x00000200, 0x00000000, 0x00000000
     620        0x00000001, 0x00000000, 0x00020000, 0xe0000000,
     621        0x00000320, 0x80000001, 0x00000003, 0x0019aff0,
     622        0x000f4ff2, 0x07736191, 0x000000ff, 0x00003fff,
     623        0x000023ff, 0x000000ff, 0x00084208, 0x0001ecc5,
     624        0x07030700, 0x07030700, 0x03030300, 0x0000003f,
     625        0x0000003f, 0x0000001f, 0x00001000, 0x00001000,
     626        0x00000100, 0x00008000, 0x00001000, 0x00000010,
     627        0x3f800000, 0xc6000000, 0xc6000000, 0x46000000,
     628        0x46000000, 0x00000000, 0x000001ff, 0x00100008,
     629        0x03feffff, 0x00000008, 0x00000008, 0x0000013b,
     630        0x00000008, 0x00000006, 0x00000000, 0x00000000,
     631        0x437f0000, 0x000fffff, 0x000fffff, 0x00000010,
     632        0x00000400, 0xfffe0200, 0x00000080, 0xffff0200,
     633        0x41000000, 0x00000051, 0x00000000, 0x00000000,
     634        0x00000000, 0x00000000, 0x00000001, 0x0000030f,
     635        0x00000001, 0x03000300, 0x00000000, 0x00000018,
     636        0x00000020, 0x00000001, 0x00000000, 0x00000018,
     637        0x00000020, 0x00000000, 0x00000060, 0x01000100,
     638        0x0000ffff, 0x00000200, 0x00000000, 0x00000000
    639639};
    640640
    641641
    642642static DWORD g_aCaps2[] = {
    643           0x00000001, 0x00000000, 0x00000000, 0x60020000,
    644           0x00000320, 0x80000001, 0x00000003, 0x0019aff0,
    645           0x000a0ff2, 0x07322191, 0x000000ff, 0x00003fff,
    646           0x000023ff, 0x000000ff, 0x00084208, 0x0001ec85,
    647           0x07030700, 0x07030700, 0x03030300, 0x0000001f,
    648           0x0000001f, 0x0000001f, 0x00001000, 0x00001000,
    649           0x00000100, 0x00008000, 0x00001000, 0x00000010,
    650           0x3f800000, 0x00000000, 0x00000000, 0x00000000,
    651           0x00000000, 0x00000000, 0x000001ff, 0x00100008,
    652           0x03feffff, 0x00000008, 0x00000008, 0x0000003b,
    653           0x00000008, 0x00000006, 0x00000001, 0x00000000,
    654           0x437f0000, 0x000fffff, 0x000fffff, 0x00000010,
    655           0x00000400, 0xfffe0200, 0x00000080, 0xffff0200,
    656           0x41000000, 0x00000051, 0x00000000, 0x00000000,
    657           0x00000000, 0x00000000, 0x00000001, 0x0000000f,
    658           0x00000001, 0x03000300, 0x00000000, 0x00000000,
    659           0x0000001f, 0x00000001, 0x00000000, 0x00000000,
    660           0x00000100, 0x00000000, 0x00000060, 0x00000000,
    661           0x0000ffff, 0x00000200, 0x00000000, 0x00000000
     643        0x00000001, 0x00000000, 0x00000000, 0x60020000,
     644        0x00000320, 0x80000001, 0x00000003, 0x0019aff0,
     645        0x000a0ff2, 0x07332191, 0x000000ff, 0x00003fff,
     646        0x000023ff, 0x000000ff, 0x00084208, 0x0001ec85,
     647        0x07030700, 0x07030700, 0x03030300, 0x0000001f,
     648        0x0000001f, 0x0000001f, 0x00001000, 0x00001000,
     649        0x00000100, 0x00008000, 0x00001000, 0x00000010,
     650        0x3f800000, 0x00000000, 0x00000000, 0x00000000,
     651        0x00000000, 0x00000000, 0x000001ff, 0x00100008,
     652        0x03feffff, 0x00000008, 0x00000008, 0x0000013b,
     653        0x00000008, 0x00000006, 0x00000000, 0x00000000,
     654        0x437f0000, 0x000fffff, 0x000fffff, 0x00000010,
     655        0x00000400, 0xfffe0200, 0x00000080, 0xffff0200,
     656        0x41000000, 0x00000051, 0x00000000, 0x00000000,
     657        0x00000000, 0x00000000, 0x00000001, 0x0000000f,
     658        0x00000001, 0x03000300, 0x00000000, 0x00000000,
     659        0x0000001f, 0x00000001, 0x00000000, 0x00000000,
     660        0x00000100, 0x00000000, 0x00000060, 0x00000000,
     661        0x0000ffff, 0x00000200, 0x00000000, 0x00000000
    662662};
    663663
     
    934934    D3DCAPSSOURCE_TYPE_NULL,
    935935    D3DCAPSSOURCE_TYPE_LOCAL,
    936     D3DCAPSSOURCE_TYPE_FILE
     936    D3DCAPSSOURCE_TYPE_FILE,
     937    D3DCAPSSOURCE_TYPE_NONE
    937938} D3DCAPSSOURCE_TYPE;
    938939
     
    977978            return NULL;
    978979        }
     980        case D3DCAPSSOURCE_TYPE_NONE:
     981            return NULL;
    979982        default:
    980983        {
     
    988991}
    989992
     993static void vboxUmdDumpDword(DWORD *pvData, DWORD cData)
     994{
     995    char aBuf[16*4];
     996    DWORD dw1, dw2, dw3, dw4;
     997    for (UINT i = 0; i < (cData & (~3)); i+=4)
     998    {
     999        dw1 = *pvData++;
     1000        dw2 = *pvData++;
     1001        dw3 = *pvData++;
     1002        dw4 = *pvData++;
     1003        sprintf(aBuf, "0x%08x, 0x%08x, 0x%08x, 0x%08x,\n", dw1, dw2, dw3, dw4);
     1004        Log(("%s", aBuf));
     1005    }
     1006
     1007    cData = cData % 4;
     1008    switch (cData)
     1009    {
     1010        case 3:
     1011            dw1 = *pvData++;
     1012            dw2 = *pvData++;
     1013            dw3 = *pvData++;
     1014            sprintf(aBuf, "0x%08x, 0x%08x, 0x%08x\n", dw1, dw2, dw3);
     1015            Log(("%s", aBuf));
     1016            break;
     1017        case 2:
     1018            dw1 = *pvData++;
     1019            dw2 = *pvData++;
     1020            sprintf(aBuf, "0x%08x, 0x%08x\n", dw1, dw2);
     1021            Log(("%s", aBuf));
     1022            break;
     1023        case 1:
     1024            dw1 = *pvData++;
     1025            sprintf(aBuf, "0x%8x\n", dw1);
     1026            Log(("%s", aBuf));
     1027            break;
     1028        default:
     1029            break;
     1030    }
     1031}
     1032
    9901033int main()
    9911034{
     
    10061049    D3DCAPS9 Caps1, Caps2;
    10071050    D3DCAPS9 *pCaps1, *pCaps2;
    1008     D3DCAPSSOURCE_TYPE enmCaps1 = D3DCAPSSOURCE_TYPE_EMBEDDED2;
    1009     D3DCAPSSOURCE_TYPE enmCaps2 = D3DCAPSSOURCE_TYPE_EMBEDDED1;
     1051    D3DCAPSSOURCE_TYPE enmCaps1 = D3DCAPSSOURCE_TYPE_EMBEDDED1;
     1052    D3DCAPSSOURCE_TYPE enmCaps2 = D3DCAPSSOURCE_TYPE_EMBEDDED2;
    10101053
    10111054    pCaps1 = selectCaps(&Caps1, (D3DCAPS9*)g_aCaps1, (D3DCAPS9*)g_aCaps2, enmCaps1);
     
    10161059    }
    10171060
    1018     pCaps2 = selectCaps(&Caps2, (D3DCAPS9*)g_aCaps1, (D3DCAPS9*)g_aCaps2, enmCaps2);
    1019     if (!pCaps2)
    1020     {
    1021         Log(("Failed to select Caps2"));
    1022         return 1;
    1023     }
    1024 
    1025     diffCaps((D3DCAPS9*)g_aCaps2, (D3DCAPS9*)g_aCaps1);
     1061    if (D3DCAPSSOURCE_TYPE_NONE != enmCaps2)
     1062    {
     1063        pCaps2 = selectCaps(&Caps2, (D3DCAPS9*)g_aCaps1, (D3DCAPS9*)g_aCaps2, enmCaps2);
     1064        if (!pCaps2)
     1065        {
     1066            Log(("Failed to select Caps2"));
     1067            return 1;
     1068        }
     1069
     1070        diffCaps((D3DCAPS9*)pCaps1, (D3DCAPS9*)pCaps2);
     1071    }
     1072    else
     1073    {
     1074        vboxUmdDumpDword((DWORD*)pCaps1, sizeof (*pCaps1) / sizeof (DWORD));
     1075    }
    10261076    return 0;
    10271077}
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette