VirtualBox

Changeset 43643 in vbox for trunk/src/VBox/Additions/WINNT


Ignore:
Timestamp:
Oct 15, 2012 1:44:30 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
81393
Message:

wddm/3d: SetStreamSourceFreq support; more formats

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

    r43607 r43643  
    532532            return 32;
    533533        case D3DDDIFMT_A16B16G16R16:
     534        case D3DDDIFMT_A16B16G16R16F:
    534535            return 64;
    535536        case D3DDDIFMT_A8P8:
     
    579580        case D3DDDIFMT_R32F:
    580581            return 32;
     582        case D3DDDIFMT_R16F:
     583            return 16;
    581584        default:
    582585            AssertBreakpoint();
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxDispD3D.cpp

    r43607 r43643  
    3737
    3838volatile uint32_t g_u32VBoxDispProfileFunctionLoggerIndex = 0;
     39
     40/* the number of frames to collect data before doing dump/reset */
     41#define VBOXDISPPROFILE_DDI_DUMP_FRAME_COUNT 0xffffffff
    3942
    4043struct VBOXDISPPROFILE_GLOBAL {
     
    8386
    8487#  define VBOXDISPPROFILE_DDI_FUNCTION_LOGGER_REPORT_FRAME(_pObj) do { \
    85         if (!((_pObj)->ProfileDdiFunc.reportIteration() % 31) /*&& !VBOXVDBG_IS_DWM()*/) {\
     88        if (!((_pObj)->ProfileDdiFunc.reportIteration() % VBOXDISPPROFILE_DDI_DUMP_FRAME_COUNT) /*&& !VBOXVDBG_IS_DWM()*/) {\
    8689            VBOXDISPPROFILE_DDI_FUNCTION_LOGGER_DUMP(_pObj); \
    8790            VBOXDISPPROFILE_DDI_FUNCTION_LOGGER_RESET(_pObj); \
     
    115118#  define VBOXDISPPROFILE_DDI_STATISTIC_LOGGER_REPORT_FRAME(_pObj) do { \
    116119        (_pObj)->ProfileDdiFps.ReportFrame(); \
    117         if(!((_pObj)->ProfileDdiFps.GetNumFrames() % 31)) \
     120        if(!((_pObj)->ProfileDdiFps.GetNumFrames() % VBOXDISPPROFILE_DDI_DUMP_FRAME_COUNT)) \
    118121        { \
    119122            VBOXDISPPROFILE_DDI_STATISTIC_LOGGER_DUMP(_pObj); \
     
    47754778{
    47764779    VBOXDISP_DDI_PROLOGUE_DEV(hDevice);
     4780    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
     4781    PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
     4782    Assert(pDevice);
     4783    VBOXDISPCRHGSMI_SCOPE_SET_DEV(pDevice);
     4784    IDirect3DDevice9 * pDevice9If = VBOXDISP_D3DEV(pDevice);
     4785    HRESULT hr = pDevice9If->SetStreamSourceFreq(pData->Stream, pData->Divider);
     4786    if (SUCCEEDED(hr))
     4787        hr = S_OK;
     4788    else
     4789        WARN(("SetStreamSourceFreq failed hr 0x%x", hr));
     4790
     4791#ifdef DEBUG_misha
     4792    /* test it more */
     4793    Assert(0);
     4794#endif
    47774795    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    4778     PVBOXWDDMDISP_DEVICE pDevice = (PVBOXWDDMDISP_DEVICE)hDevice;
    4779     Assert(pDevice);
    4780     VBOXDISPCRHGSMI_SCOPE_SET_DEV(pDevice);
    4781     Assert(0);
    4782     vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    4783     return E_FAIL;
     4796    return hr;
    47844797}
    47854798static HRESULT APIENTRY vboxWddmDDevSetConvolutionKernelMono(HANDLE hDevice, CONST D3DDDIARG_SETCONVOLUTIONKERNELMONO* pData)
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