mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 22:12:59 +08:00
Add Unrecoverable if GraphicsAllocation in use is being destroyed.
Change-Id: Ie224ac4d098678a99da0a8c084f02740f323c475
This commit is contained in:
committed by
sys_ocldev
parent
502e9c2d15
commit
920d952a4a
@@ -20,6 +20,8 @@
|
||||
* OTHER DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#include "runtime/command_stream/command_stream_receiver_hw.h"
|
||||
#include "runtime/device/device.h"
|
||||
#include "runtime/helpers/aligned_memory.h"
|
||||
#include "runtime/helpers/ptr_math.h"
|
||||
#include "runtime/gmm_helper/gmm_helper.h"
|
||||
@@ -268,6 +270,8 @@ void WddmMemoryManager::freeGraphicsMemoryImpl(GraphicsAllocation *gfxAllocation
|
||||
|
||||
releaseResidencyLock();
|
||||
|
||||
UNRECOVERABLE_IF(gfxAllocation->taskCount != ObjectNotUsed && this->device && gfxAllocation->taskCount > *this->device->getCommandStreamReceiver().getTagAddress());
|
||||
|
||||
if (input->gmm) {
|
||||
if (input->gmm->isRenderCompressed) {
|
||||
status = unmapAuxVA(input->gmm, input->gpuPtr);
|
||||
|
||||
Reference in New Issue
Block a user