RelaxedOrdering: Optimize GPU Queue stall by adding early return

Related-To: NEO-7458

Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
Dunajski, Bartosz
2022-11-24 15:00:51 +00:00
committed by Compute-Runtime-Automation
parent a104636b31
commit a969636b6a
6 changed files with 39 additions and 24 deletions

View File

@@ -37,6 +37,8 @@ class LinearStream {
uint64_t getGpuBase() const;
void setGpuBase(uint64_t gpuAddress);
uint64_t getCurrentGpuAddressPosition() const;
void overrideMaxSize(size_t newMaxSize);
void replaceBuffer(void *buffer, size_t bufferSize);
GraphicsAllocation *getGraphicsAllocation() const;
@@ -112,4 +114,9 @@ inline GraphicsAllocation *LinearStream::getGraphicsAllocation() const {
inline void LinearStream::replaceGraphicsAllocation(GraphicsAllocation *gfxAllocation) {
graphicsAllocation = gfxAllocation;
}
inline uint64_t LinearStream::getCurrentGpuAddressPosition() const {
return (getGpuBase() + getUsed());
}
} // namespace NEO