Allow Explicit RTDispatch args and remove multi free of rtMemoryBackedBuffer

Signed-off-by: Neil R Spruit <neil.r.spruit@intel.com>
This commit is contained in:
Neil R Spruit
2021-12-21 01:05:25 +00:00
committed by Compute-Runtime-Automation
parent 6ab4b566aa
commit 64ca4b3456
3 changed files with 93 additions and 51 deletions

View File

@@ -43,12 +43,8 @@ Device::~Device() {
}
finalizeRayTracing();
getMemoryManager()->freeGraphicsMemory(rtMemoryBackedBuffer);
rtMemoryBackedBuffer = nullptr;
DEBUG_BREAK_IF(nullptr == executionEnvironment->memoryManager.get());
getMemoryManager()->freeGraphicsMemory(rtMemoryBackedBuffer);
rtMemoryBackedBuffer = nullptr;
if (performanceCounters) {
performanceCounters->shutdown();