mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 00:24:58 +08:00
Revert "fix: track registered CSR clients"
This reverts commit 53f635e392.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
d515ba965c
commit
ade538ce54
@@ -94,8 +94,6 @@ CommandStreamReceiver::CommandStreamReceiver(ExecutionEnvironment &executionEnvi
|
||||
productHelper.fillStateBaseAddressPropertiesSupportStructure(sbaSupportFlags);
|
||||
this->doubleSbaWa = productHelper.isAdditionalStateBaseAddressWARequired(hwInfo);
|
||||
this->l1CachePolicyData.init(productHelper);
|
||||
|
||||
registeredClients.reserve(16);
|
||||
}
|
||||
|
||||
CommandStreamReceiver::~CommandStreamReceiver() {
|
||||
@@ -1072,24 +1070,5 @@ bool CommandStreamReceiver::isRayTracingStateProgramingNeeded(Device &device) co
|
||||
return device.getRTMemoryBackedBuffer() && getBtdCommandDirty();
|
||||
}
|
||||
|
||||
void CommandStreamReceiver::registerClient(void *client) {
|
||||
std::unique_lock<MutexType> lock(registeredClientsMutex);
|
||||
auto element = std::find(registeredClients.begin(), registeredClients.end(), client);
|
||||
if (element == registeredClients.end()) {
|
||||
registeredClients.push_back(client);
|
||||
numClients++;
|
||||
}
|
||||
}
|
||||
|
||||
void CommandStreamReceiver::unregisterClient(void *client) {
|
||||
std::unique_lock<MutexType> lock(registeredClientsMutex);
|
||||
|
||||
auto element = std::find(registeredClients.begin(), registeredClients.end(), client);
|
||||
if (element != registeredClients.end()) {
|
||||
registeredClients.erase(element);
|
||||
numClients--;
|
||||
}
|
||||
}
|
||||
|
||||
std::function<void()> CommandStreamReceiver::debugConfirmationFunction = []() { std::cin.get(); };
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user