Use StackVec in MultiGraphicsAllocation instead of std::vector

Related-To: NEO-4672
Change-Id: Ia7361d9bfb79f83f088e0ac236e769aa44ab84dd
Signed-off-by: Krzysztof Gibala <krzysztof.gibala@intel.com>
This commit is contained in:
Krzysztof Gibala
2020-08-04 11:53:49 +02:00
committed by sys_ocldev
parent da3088e399
commit b65a41a8a5
2 changed files with 3 additions and 3 deletions

View File

@ -44,7 +44,7 @@ bool MultiGraphicsAllocation::isCoherent() const {
return getDefaultGraphicsAllocation()->isCoherent();
}
std::vector<GraphicsAllocation *> const &MultiGraphicsAllocation::getGraphicsAllocations() const {
StackVec<GraphicsAllocation *, 1> const &MultiGraphicsAllocation::getGraphicsAllocations() const {
return graphicsAllocations;
}

View File

@ -26,10 +26,10 @@ class MultiGraphicsAllocation {
bool isCoherent() const;
std::vector<GraphicsAllocation *> const &getGraphicsAllocations() const;
StackVec<GraphicsAllocation *, 1> const &getGraphicsAllocations() const;
protected:
std::vector<GraphicsAllocation *> graphicsAllocations;
StackVec<GraphicsAllocation *, 1> graphicsAllocations;
};
} // namespace NEO