mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
Do not take ownership on device.
- Command Stream Receiver should be used instead for locking. - Remove not needed synchronization in clSetUserEventStatus Change-Id: I17050dc70cb0be03b2003043a9666ba8df1a83c9
This commit is contained in:
committed by
sys_ocldev
parent
44fbbaee24
commit
d80dbb1ae0
@@ -59,6 +59,7 @@ class CommandStreamReceiver {
|
||||
samplerCacheFlushBefore, //add sampler cache flush before Walker with redescribed image
|
||||
samplerCacheFlushAfter //add sampler cache flush after Walker with redescribed image
|
||||
};
|
||||
using MutexType = std::recursive_mutex;
|
||||
CommandStreamReceiver();
|
||||
virtual ~CommandStreamReceiver();
|
||||
|
||||
@@ -143,6 +144,7 @@ class CommandStreamReceiver {
|
||||
void setExperimentalCmdBuffer(std::unique_ptr<ExperimentalCommandBuffer> &&cmdBuffer);
|
||||
|
||||
bool initializeTagAllocation();
|
||||
std::unique_lock<MutexType> obtainUniqueOwnership();
|
||||
|
||||
KmdNotifyHelper *peekKmdNotifyHelper() {
|
||||
return kmdNotifyHelper.get();
|
||||
@@ -199,6 +201,7 @@ class CommandStreamReceiver {
|
||||
IndirectHeap *indirectHeap[IndirectHeap::NUM_TYPES];
|
||||
std::unique_ptr<FlatBatchBufferHelper> flatBatchBufferHelper;
|
||||
std::unique_ptr<ExperimentalCommandBuffer> experimentalCmdBuffer;
|
||||
MutexType ownershipMutex;
|
||||
std::unique_ptr<KmdNotifyHelper> kmdNotifyHelper;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user