mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-11 00:10:58 +08:00
Moving to D3DDDI_ALLOCATIONINFO v2
Signed-off-by: Jaroslaw Chodor <jaroslaw.chodor@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
6a43b6b609
commit
75e427f2e8
@@ -10,6 +10,7 @@ EXPORTS
|
||||
D3DKMTOpenAdapterFromHdc
|
||||
D3DKMTOpenAdapterFromLuid
|
||||
D3DKMTCreateAllocation
|
||||
D3DKMTCreateAllocation2
|
||||
D3DKMTDestroyAllocation
|
||||
D3DKMTDestroyAllocation2
|
||||
D3DKMTQueryAdapterInfo
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user