VirtualBox

Ignore:
Timestamp:
Sep 22, 2010 12:57:00 PM (14 years ago)
Author:
vboxsync
Message:

wddm/3d: make winsat more happy

Location:
trunk/src/VBox/Additions/WINNT/Graphics
Files:
3 edited

Legend:

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

    r32632 r32697  
    629629static D3DDDIQUERYTYPE gVBoxQueryTypes[] = {
    630630        D3DDDIQUERYTYPE_EVENT,
    631         D3DDDIQUERYTYPE_OCCLUSION
     631//        D3DDDIQUERYTYPE_OCCLUSION
    632632};
    633633
     
    37653765{
    37663766    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    3767     Assert(0);
    3768     vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    3769     return E_FAIL;
     3767    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
     3768    return S_OK;
    37703769}
    37713770AssertCompile(sizeof (RECT) == sizeof (D3DRECT));
     
    60516050static HRESULT APIENTRY vboxWddmDDevCreateQuery(HANDLE hDevice, D3DDDIARG_CREATEQUERY* pData)
    60526051{
     6052    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
     6053    HRESULT hr = S_OK;
     6054    if (pData->QueryType == D3DDDIQUERYTYPE_EVENT)
     6055    {
     6056        PVBOXWDDMDISP_QUERY pQuery = (PVBOXWDDMDISP_QUERY)RTMemAllocZ(sizeof (VBOXWDDMDISP_QUERY));
     6057        Assert(pQuery);
     6058        if (pQuery)
     6059        {
     6060            pQuery->enmType = pData->QueryType;
     6061            pData->hQuery = pQuery;
     6062        }
     6063        else
     6064        {
     6065            hr = E_OUTOFMEMORY;
     6066        }
     6067    }
     6068    else
     6069    {
     6070        Assert(0);
     6071        hr = E_FAIL;
     6072    }
    60536073    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    6054     Assert(0);
    6055     vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    6056     return E_FAIL;
     6074    return hr;
    60576075}
    60586076static HRESULT APIENTRY vboxWddmDDevDestroyQuery(HANDLE hDevice, HANDLE hQuery)
    60596077{
     6078    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
     6079    HRESULT hr = S_OK;
     6080    PVBOXWDDMDISP_QUERY pQuery = (PVBOXWDDMDISP_QUERY)hQuery;
     6081    Assert(pQuery);
     6082    RTMemFree(pQuery);
    60606083    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    6061     Assert(0);
    6062     vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    6063     return E_FAIL;
     6084    return hr;
    60646085}
    60656086static HRESULT APIENTRY vboxWddmDDevIssueQuery(HANDLE hDevice, CONST D3DDDIARG_ISSUEQUERY* pData)
    60666087{
     6088    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
     6089    HRESULT hr = S_OK;
     6090    PVBOXWDDMDISP_QUERY pQuery = (PVBOXWDDMDISP_QUERY)pData->hQuery;
     6091    Assert(pQuery);
     6092    pQuery->fQueryState.Value |= pData->Flags.Value;
    60676093    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    6068     Assert(0);
    6069     vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    6070     return E_FAIL;
     6094    return hr;
    60716095}
    60726096static HRESULT APIENTRY vboxWddmDDevGetQueryData(HANDLE hDevice, CONST D3DDDIARG_GETQUERYDATA* pData)
    60736097{
     6098    vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
     6099    HRESULT hr = S_OK;
     6100    PVBOXWDDMDISP_QUERY pQuery = (PVBOXWDDMDISP_QUERY)pData->hQuery;
     6101    Assert(pQuery);
     6102    switch (pQuery->enmType)
     6103    {
     6104        case D3DDDIQUERYTYPE_EVENT:
     6105            Assert(0);
     6106            pQuery->data.bData = TRUE;
     6107            Assert(pData->pData);
     6108            *((BOOL*)pData->pData) = TRUE;
     6109            break;
     6110        default:
     6111            Assert(0);
     6112            hr = E_FAIL;
     6113            break;
     6114    }
    60746115    vboxVDbgPrintF(("<== "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    6075     Assert(0);
    6076     vboxVDbgPrintF(("==> "__FUNCTION__", hDevice(0x%p)\n", hDevice));
    6077     return E_FAIL;
     6116    return hr;
    60786117}
    60796118static HRESULT APIENTRY vboxWddmDDevSetRenderTarget(HANDLE hDevice, CONST D3DDDIARG_SETRENDERTARGET* pData)
  • trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispD3D.h

    r32580 r32697  
    236236} VBOXWDDMDISP_RESOURCE, *PVBOXWDDMDISP_RESOURCE;
    237237
     238typedef struct VBOXWDDMDISP_QUERY
     239{
     240    D3DDDIQUERYTYPE enmType;
     241    D3DDDI_ISSUEQUERYFLAGS fQueryState;
     242    union
     243    {
     244        BOOL bData;
     245        UINT u32Data;
     246    } data ;
     247} VBOXWDDMDISP_QUERY, *PVBOXWDDMDISP_QUERY;
     248
    238249typedef struct VBOXWDDMDISP_TSS_LOOKUP
    239250{
  • trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoWddm.cpp

    r32679 r32697  
    193193        return STATUS_INVALID_PARAMETER;
    194194
    195     Assert(0);
    196195    /*
    197196     * Set the current mode into the hardware.
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