mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 05:56:36 +08:00
feature: Initial CB events IPC support
Related-To: NEO-11925 Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
0a568f368d
commit
52e9a6e07f
@@ -13,6 +13,7 @@ namespace NEO {
|
||||
class MemoryAllocation : public GraphicsAllocation {
|
||||
public:
|
||||
const unsigned long long id;
|
||||
uint64_t internalHandle = 0;
|
||||
size_t sizeToFree = 0;
|
||||
const bool uncacheable;
|
||||
|
||||
@@ -44,6 +45,15 @@ class MemoryAllocation : public GraphicsAllocation {
|
||||
info.taskCount = objectNotUsed;
|
||||
}
|
||||
}
|
||||
|
||||
int peekInternalHandle(MemoryManager *memoryManager, uint64_t &handle) override {
|
||||
if (internalHandle == std::numeric_limits<uint64_t>::max()) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
handle = internalHandle;
|
||||
return 0;
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user