performance: Add CCS Optimization

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2024-10-21 08:48:55 +00:00
committed by Compute-Runtime-Automation
parent 26709ba124
commit e7b3a40aa7
16 changed files with 74 additions and 12 deletions

View File

@@ -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;
}