[d3d11] mock D3D11_QUERY_EVENT

in addition to fix low framerate with vsync ON on Trackmania, this lets
GTA V show the loading screen.
This commit is contained in:
Clément Guérin 2018-01-24 21:28:43 -08:00
parent 78c46f444a
commit 4050e8297f
1 changed files with 5 additions and 0 deletions

View File

@ -9,6 +9,7 @@ namespace dxvk {
: m_device(device), m_desc(desc) {
switch (desc.Query) {
// Other query types are currently unsupported
case D3D11_QUERY_EVENT:
case D3D11_QUERY_OCCLUSION:
case D3D11_QUERY_TIMESTAMP:
case D3D11_QUERY_TIMESTAMP_DISJOINT:
@ -102,6 +103,10 @@ namespace dxvk {
return S_OK;
switch (m_desc.Query) {
case D3D11_QUERY_EVENT:
*static_cast<BOOL*>(pData) = TRUE;
return S_OK;
case D3D11_QUERY_OCCLUSION:
*static_cast<UINT64*>(pData) = 1;
return S_OK;