mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 01:04:57 +08:00
[7/n] Internal 4GB allocator
- rename getBase to getCpuBase - change some test names accordingly. Change-Id: I6fb2e4714298250147ea7766a916d7f5d62edc54
This commit is contained in:
committed by
sys_ocldev
parent
cfe1f72dcb
commit
1602fa5a88
@@ -145,7 +145,7 @@ LinearStream &CommandStreamReceiver::getCS(size_t minRequiredSize) {
|
||||
}
|
||||
|
||||
//pass current allocation to reusable list
|
||||
if (commandStream.getBase()) {
|
||||
if (commandStream.getCpuBase()) {
|
||||
memoryManager->storeAllocation(std::unique_ptr<GraphicsAllocation>(commandStream.getGraphicsAllocation()), REUSABLE_ALLOCATION);
|
||||
}
|
||||
|
||||
@@ -169,7 +169,7 @@ void CommandStreamReceiver::cleanupResources() {
|
||||
scratchAllocation = nullptr;
|
||||
}
|
||||
|
||||
if (commandStream.getBase()) {
|
||||
if (commandStream.getCpuBase()) {
|
||||
memoryManager->freeGraphicsMemory(commandStream.getGraphicsAllocation());
|
||||
commandStream.replaceGraphicsAllocation(nullptr);
|
||||
commandStream.replaceBuffer(nullptr, 0);
|
||||
|
||||
Reference in New Issue
Block a user