mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
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:

committed by
sys_ocldev

parent
da3088e399
commit
b65a41a8a5
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user