mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 13:33:02 +08:00
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:
committed by
Compute-Runtime-Automation
parent
a104636b31
commit
a969636b6a
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user