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:
Compute-Runtime-Validation
2023-09-24 09:39:38 +02:00
committed by Compute-Runtime-Automation
parent d515ba965c
commit ade538ce54
18 changed files with 77 additions and 127 deletions

View File

@@ -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