Graphics Allocation cleanup.

- remove one constructor
- start using mock graphics allocation in tests

Change-Id: Idb8f4a35dbc2cae8d6bf667bab5542d8e91d6e0d
This commit is contained in:
Mrozek, Michal
2018-10-30 15:24:15 +01:00
committed by sys_ocldev
parent f9ba697587
commit 7ece16ee7a
28 changed files with 127 additions and 135 deletions

View File

@@ -84,10 +84,6 @@ class GraphicsAllocation : public IDNode<GraphicsAllocation> {
virtual ~GraphicsAllocation() = default;
GraphicsAllocation &operator=(const GraphicsAllocation &) = delete;
GraphicsAllocation(const GraphicsAllocation &) = delete;
GraphicsAllocation(void *cpuPtrIn, size_t sizeIn) : size(sizeIn),
cpuPtr(cpuPtrIn),
gpuAddress(castToUint64(cpuPtrIn)),
sharedHandle(Sharing::nonSharedResource) {}
GraphicsAllocation(void *cpuPtrIn, uint64_t gpuAddress, uint64_t baseAddress, size_t sizeIn) : size(sizeIn),
cpuPtr(cpuPtrIn),