mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Add minor improvements
Change-Id: I39b9b91a73d5fc8a88cfbbe6ba0ceb65e13a2779 Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
8f46761262
commit
c1ba471053
@@ -17,16 +17,14 @@ DeferrableDeletion *DeferrableDeletion::create(Args... args) {
|
||||
}
|
||||
template DeferrableDeletion *DeferrableDeletion::create(Wddm *wddm, const D3DKMT_HANDLE *handles, uint32_t allocationCount, D3DKMT_HANDLE resourceHandle);
|
||||
|
||||
DeferrableDeletionImpl::DeferrableDeletionImpl(Wddm *wddm, const D3DKMT_HANDLE *handles, uint32_t allocationCount, D3DKMT_HANDLE resourceHandle) {
|
||||
this->wddm = wddm;
|
||||
DeferrableDeletionImpl::DeferrableDeletionImpl(Wddm *wddm, const D3DKMT_HANDLE *handles, uint32_t allocationCount, D3DKMT_HANDLE resourceHandle)
|
||||
: wddm(wddm), allocationCount(allocationCount), resourceHandle(resourceHandle) {
|
||||
if (handles) {
|
||||
this->handles = new D3DKMT_HANDLE[allocationCount];
|
||||
for (uint32_t i = 0; i < allocationCount; i++) {
|
||||
this->handles[i] = handles[i];
|
||||
}
|
||||
}
|
||||
this->allocationCount = allocationCount;
|
||||
this->resourceHandle = resourceHandle;
|
||||
}
|
||||
bool DeferrableDeletionImpl::apply() {
|
||||
bool destroyStatus = wddm->destroyAllocations(handles, allocationCount, resourceHandle);
|
||||
|
||||
Reference in New Issue
Block a user