mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 17:29:14 +08:00
Pass private scratch size to scratch space controller
Related-To: NEO-3190 Change-Id: I6f1e71481679492516d898226de6a1e721896e81 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
2f42f332d8
commit
27f3f8ea8f
@@ -214,10 +214,13 @@ void CommandStreamReceiver::setTagAllocation(GraphicsAllocation *allocation) {
|
||||
this->tagAddress = allocation ? reinterpret_cast<uint32_t *>(allocation->getUnderlyingBuffer()) : nullptr;
|
||||
}
|
||||
|
||||
void CommandStreamReceiver::setRequiredScratchSize(uint32_t newRequiredScratchSize) {
|
||||
void CommandStreamReceiver::setRequiredScratchSizes(uint32_t newRequiredScratchSize, uint32_t newRequiredPrivateScratchSize) {
|
||||
if (newRequiredScratchSize > requiredScratchSize) {
|
||||
requiredScratchSize = newRequiredScratchSize;
|
||||
}
|
||||
if (newRequiredPrivateScratchSize > requiredPrivateScratchSize) {
|
||||
requiredPrivateScratchSize = newRequiredPrivateScratchSize;
|
||||
}
|
||||
}
|
||||
|
||||
GraphicsAllocation *CommandStreamReceiver::getScratchAllocation() {
|
||||
|
||||
Reference in New Issue
Block a user