1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-02 01:24:11 +01:00

[dxgi] Fix QueryVideoMemoryInfo return values

Fixes a wine test failure.
This commit is contained in:
Philip Rebohle 2019-10-01 21:51:16 +02:00
parent 1e00f8046c
commit 2cb9d34f8f
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -280,11 +280,11 @@ namespace dxvk {
DXGI_MEMORY_SEGMENT_GROUP MemorySegmentGroup,
DXGI_QUERY_VIDEO_MEMORY_INFO* pVideoMemoryInfo) {
if (NodeIndex > 0 || !pVideoMemoryInfo)
return DXGI_ERROR_INVALID_CALL;
return E_INVALIDARG;
if (MemorySegmentGroup != DXGI_MEMORY_SEGMENT_GROUP_LOCAL
&& MemorySegmentGroup != DXGI_MEMORY_SEGMENT_GROUP_NON_LOCAL)
return DXGI_ERROR_INVALID_CALL;
return E_INVALIDARG;
DxvkAdapterMemoryInfo memInfo = m_adapter->getMemoryHeapInfo();