mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Clean not used methods from linear stream.
Change-Id: Ib6775e346eb1a971c9ad5bc511c4226f1c53ecaf
This commit is contained in:
@@ -37,8 +37,6 @@ class LinearStream {
|
||||
LinearStream(void *buffer, size_t bufferSize);
|
||||
LinearStream(GraphicsAllocation *buffer);
|
||||
void *getCpuBase() const;
|
||||
uint64_t getGpuBase() const;
|
||||
uint64_t getCurrentGpuOffsetFromHeapBase() const;
|
||||
void *getSpace(size_t size);
|
||||
size_t getMaxAvailableSpace() const;
|
||||
size_t getAvailableSpace() const;
|
||||
@@ -65,14 +63,6 @@ inline void *LinearStream::getCpuBase() const {
|
||||
return buffer;
|
||||
}
|
||||
|
||||
inline uint64_t LinearStream::getGpuBase() const {
|
||||
return this->graphicsAllocation->gpuBaseAddress;
|
||||
}
|
||||
|
||||
inline uint64_t LinearStream::getCurrentGpuOffsetFromHeapBase() const {
|
||||
return ptrOffset(this->graphicsAllocation->getGpuAddressToPatch(), sizeUsed);
|
||||
}
|
||||
|
||||
inline void *LinearStream::getSpace(size_t size) {
|
||||
UNRECOVERABLE_IF(sizeUsed + size > maxAvailableSpace);
|
||||
auto memory = ptrOffset(buffer, sizeUsed);
|
||||
|
||||
Reference in New Issue
Block a user