mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 13:33:02 +08:00
performance: Add CCS Optimization
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
26709ba124
commit
e7b3a40aa7
@@ -819,7 +819,9 @@ bool Wddm::destroyAllocations(const D3DKMT_HANDLE *handles, uint32_t allocationC
|
||||
if ((0U == allocationCount) && (0U == resourceHandle)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
NTSTATUS status = STATUS_SUCCESS;
|
||||
|
||||
D3DKMT_DESTROYALLOCATION2 destroyAllocation = {};
|
||||
DEBUG_BREAK_IF(!(allocationCount <= 1 || resourceHandle == 0));
|
||||
|
||||
@@ -827,10 +829,11 @@ bool Wddm::destroyAllocations(const D3DKMT_HANDLE *handles, uint32_t allocationC
|
||||
destroyAllocation.hResource = resourceHandle;
|
||||
destroyAllocation.phAllocationList = handles;
|
||||
destroyAllocation.AllocationCount = allocationCount;
|
||||
destroyAllocation.Flags.AssumeNotInUse = debugManager.flags.SetAssumeNotInUse.get();
|
||||
|
||||
destroyAllocation.Flags.AssumeNotInUse = 1;
|
||||
DeallocateGmm deallocateGmm{&destroyAllocation, getGdi()};
|
||||
|
||||
status = getGdi()->destroyAllocation2(&destroyAllocation);
|
||||
status = static_cast<NTSTATUS>(this->rootDeviceEnvironment.getGmmClientContext()->deallocate2(&deallocateGmm));
|
||||
|
||||
return status == STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user