mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
fix: track shifted contextIds in bitset in bindlessHeapsHelper
- bitset is 64 bit in size, context ids may go beyond that limit when multiple devices are available - this change subtracts contextId of first context for a given root device - tracked state dirty contexts ids are now zero-based Resolves: GSD-10025 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
46a63d3e0e
commit
5ae2552b4b
@@ -368,6 +368,14 @@ void MemoryManager::updateLatestContextIdForRootDevice(uint32_t rootDeviceIndex)
|
||||
}
|
||||
}
|
||||
|
||||
uint32_t MemoryManager::getFirstContextIdForRootDevice(uint32_t rootDeviceIndex) {
|
||||
auto entry = rootDeviceIndexToContextId.find(rootDeviceIndex);
|
||||
if (entry != rootDeviceIndexToContextId.end()) {
|
||||
return entry->second + 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
OsContext *MemoryManager::createAndRegisterOsContext(CommandStreamReceiver *commandStreamReceiver,
|
||||
const EngineDescriptor &engineDescriptor) {
|
||||
auto rootDeviceIndex = commandStreamReceiver->getRootDeviceIndex();
|
||||
|
||||
Reference in New Issue
Block a user