mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
Extend semaphore synchronization for different command stream receivers.
Change-Id: Ic904b8c1e052adbb7b2ef82a6dec74ec69837f9f
This commit is contained in:
committed by
sys_ocldev
parent
311de0c644
commit
303014582a
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2017-2018 Intel Corporation
|
||||
* Copyright (C) 2017-2019 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -7,6 +7,7 @@
|
||||
|
||||
#pragma once
|
||||
#include "runtime/command_queue/command_queue_hw.h"
|
||||
#include "unit_tests/libult/ult_command_stream_receiver.h"
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// MockCommandQueue - Core implementation
|
||||
@@ -76,6 +77,10 @@ class MockCommandQueueHw : public CommandQueueHw<GfxFamily> {
|
||||
cl_queue_properties *properties) : BaseClass(context, device, properties) {
|
||||
}
|
||||
|
||||
UltCommandStreamReceiver<GfxFamily> &getUltCommandStreamReceiver() {
|
||||
return reinterpret_cast<UltCommandStreamReceiver<GfxFamily> &>(*BaseClass::engine->commandStreamReceiver);
|
||||
}
|
||||
|
||||
cl_int enqueueWriteImage(Image *dstImage,
|
||||
cl_bool blockingWrite,
|
||||
const size_t *origin,
|
||||
|
||||
Reference in New Issue
Block a user