mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 18:06:32 +08:00
fix: Set special queue after its setup
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
b73d956285
commit
03690e9b83
@@ -183,10 +183,13 @@ void Context::setSpecialQueue(CommandQueue *commandQueue, uint32_t rootDeviceInd
|
||||
specialQueues[rootDeviceIndex] = commandQueue;
|
||||
}
|
||||
void Context::overrideSpecialQueueAndDecrementRefCount(CommandQueue *commandQueue, uint32_t rootDeviceIndex) {
|
||||
setSpecialQueue(commandQueue, rootDeviceIndex);
|
||||
commandQueue->setIsSpecialCommandQueue(true);
|
||||
|
||||
// decrement ref count that special queue added
|
||||
this->decRefInternal();
|
||||
|
||||
// above decRefInternal doesn't delete this
|
||||
setSpecialQueue(commandQueue, rootDeviceIndex); // NOLINT(clang-analyzer-cplusplus.NewDelete)
|
||||
};
|
||||
|
||||
bool Context::areMultiStorageAllocationsPreferred() {
|
||||
|
||||
Reference in New Issue
Block a user