Fix compilation on clang 4 and 5

Signed-off-by: Jacek Danecki <jacek.danecki@intel.com>

https://github.com/intel/compute-runtime/pull/209

Change-Id: If0cecc836138f038da9dc74cf21c865b61aadddf
This commit is contained in:
Jacek Danecki
2019-09-09 14:14:25 +02:00
committed by sys_ocldev
parent dd39251af5
commit 6689f45289
2 changed files with 3 additions and 3 deletions

View File

@ -21,12 +21,12 @@ class DrmAllocation : public GraphicsAllocation {
public:
DrmAllocation(AllocationType allocationType, BufferObject *bo, void *ptrIn, size_t sizeIn, osHandle sharedHandle, MemoryPool::Type pool, bool multiOsContextCapable)
: GraphicsAllocation(allocationType, ptrIn, sizeIn, sharedHandle, pool, multiOsContextCapable),
bufferObjects({bo}) {
bufferObjects({{bo}}) {
}
DrmAllocation(AllocationType allocationType, BufferObject *bo, void *ptrIn, uint64_t gpuAddress, size_t sizeIn, MemoryPool::Type pool, bool multiOsContextCapable)
: GraphicsAllocation(allocationType, ptrIn, gpuAddress, 0, sizeIn, pool, multiOsContextCapable),
bufferObjects({bo}) {
bufferObjects({{bo}}) {
}
DrmAllocation(AllocationType allocationType, BufferObjects &bos, void *ptrIn, uint64_t gpuAddress, size_t sizeIn, MemoryPool::Type pool, bool multiOsContextCapable)