Moving to D3DDDI_ALLOCATIONINFO v2

Signed-off-by: Jaroslaw Chodor <jaroslaw.chodor@intel.com>
This commit is contained in:
Jaroslaw Chodor
2021-05-01 15:05:51 +00:00
committed by Compute-Runtime-Automation
parent 6a43b6b609
commit 75e427f2e8
6 changed files with 27 additions and 20 deletions

View File

@@ -10,6 +10,7 @@ EXPORTS
D3DKMTOpenAdapterFromHdc
D3DKMTOpenAdapterFromLuid
D3DKMTCreateAllocation
D3DKMTCreateAllocation2
D3DKMTDestroyAllocation
D3DKMTDestroyAllocation2
D3DKMTQueryAdapterInfo

View File

@@ -131,7 +131,11 @@ NTSTATUS __stdcall D3DKMTDestroyContext(IN CONST D3DKMT_DESTROYCONTEXT *destroyC
static D3DKMT_CREATEALLOCATION pallocation{};
NTSTATUS __stdcall D3DKMTCreateAllocation(IN OUT D3DKMT_CREATEALLOCATION *allocation) {
D3DDDI_ALLOCATIONINFO *allocationInfo;
return STATUS_INVALID_PARAMETER;
}
NTSTATUS __stdcall D3DKMTCreateAllocation2(IN OUT D3DKMT_CREATEALLOCATION *allocation) {
D3DDDI_ALLOCATIONINFO2 *allocationInfo;
int numOfAllocations;
bool createResource;
bool globalShare;
@@ -139,7 +143,7 @@ NTSTATUS __stdcall D3DKMTCreateAllocation(IN OUT D3DKMT_CREATEALLOCATION *alloca
return STATUS_INVALID_PARAMETER;
}
pallocation = *allocation;
allocationInfo = allocation->pAllocationInfo;
allocationInfo = allocation->pAllocationInfo2;
if (allocationInfo == NULL) {
return STATUS_INVALID_PARAMETER;
}