mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 15:03:02 +08:00
Add UNRECOVERABLE_IF when bufferAllocation is nullptr
Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
cee37a43d2
commit
549b458e2f
@@ -42,6 +42,7 @@ ze_result_t CommandQueueImp::initialize(bool copyOnly, bool isInternal) {
|
||||
returnValue = buffers.initialize(device, totalCmdBufferSize);
|
||||
if (returnValue == ZE_RESULT_SUCCESS) {
|
||||
NEO::GraphicsAllocation *bufferAllocation = buffers.getCurrentBufferAllocation();
|
||||
UNRECOVERABLE_IF(bufferAllocation == nullptr);
|
||||
commandStream = new NEO::LinearStream(bufferAllocation->getUnderlyingBuffer(),
|
||||
defaultQueueCmdBufferSize);
|
||||
UNRECOVERABLE_IF(commandStream == nullptr);
|
||||
|
||||
Reference in New Issue
Block a user