Clean not used methods from linear stream.

Change-Id: Ib6775e346eb1a971c9ad5bc511c4226f1c53ecaf
This commit is contained in:
Mrozek, Michal
2018-05-18 08:42:37 -07:00
parent b27eee1f7a
commit 6fdde42289
3 changed files with 2 additions and 55 deletions

View File

@@ -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);