Changeset 32697 in vbox for trunk/src/VBox/Additions/WINNT/Graphics
- Timestamp:
- Sep 22, 2010 12:57:00 PM (14 years ago)
- 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 629 629 static D3DDDIQUERYTYPE gVBoxQueryTypes[] = { 630 630 D3DDDIQUERYTYPE_EVENT, 631 D3DDDIQUERYTYPE_OCCLUSION631 // D3DDDIQUERYTYPE_OCCLUSION 632 632 }; 633 633 … … 3765 3765 { 3766 3766 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; 3770 3769 } 3771 3770 AssertCompile(sizeof (RECT) == sizeof (D3DRECT)); … … 6051 6050 static HRESULT APIENTRY vboxWddmDDevCreateQuery(HANDLE hDevice, D3DDDIARG_CREATEQUERY* pData) 6052 6051 { 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 } 6053 6073 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; 6057 6075 } 6058 6076 static HRESULT APIENTRY vboxWddmDDevDestroyQuery(HANDLE hDevice, HANDLE hQuery) 6059 6077 { 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); 6060 6083 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; 6064 6085 } 6065 6086 static HRESULT APIENTRY vboxWddmDDevIssueQuery(HANDLE hDevice, CONST D3DDDIARG_ISSUEQUERY* pData) 6066 6087 { 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; 6067 6093 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; 6071 6095 } 6072 6096 static HRESULT APIENTRY vboxWddmDDevGetQueryData(HANDLE hDevice, CONST D3DDDIARG_GETQUERYDATA* pData) 6073 6097 { 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 } 6074 6115 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; 6078 6117 } 6079 6118 static HRESULT APIENTRY vboxWddmDDevSetRenderTarget(HANDLE hDevice, CONST D3DDDIARG_SETRENDERTARGET* pData) -
trunk/src/VBox/Additions/WINNT/Graphics/Display/wddm/VBoxDispD3D.h
r32580 r32697 236 236 } VBOXWDDMDISP_RESOURCE, *PVBOXWDDMDISP_RESOURCE; 237 237 238 typedef 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 238 249 typedef struct VBOXWDDMDISP_TSS_LOOKUP 239 250 { -
trunk/src/VBox/Additions/WINNT/Graphics/Miniport/wddm/VBoxVideoWddm.cpp
r32679 r32697 193 193 return STATUS_INVALID_PARAMETER; 194 194 195 Assert(0);196 195 /* 197 196 * Set the current mode into the hardware.
Note:
See TracChangeset
for help on using the changeset viewer.