From b5b1ccc99046f72f34f8a62aa923675ff6666df7 Mon Sep 17 00:00:00 2001 From: Alex Xie Date: Tue, 15 Jun 2021 15:43:59 -0400 Subject: [PATCH] SWDEV-290122 - OpenGL tests fails with CL_MEM_ALLOCATION_ERROR Change-Id: I34d7063f05dd46c32cf59a88c455691ba5099679 --- rocclr/device/pal/palresource.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rocclr/device/pal/palresource.cpp b/rocclr/device/pal/palresource.cpp index 5148d47ecd..2950e8a01f 100644 --- a/rocclr/device/pal/palresource.cpp +++ b/rocclr/device/pal/palresource.cpp @@ -930,6 +930,9 @@ bool Resource::CreateInterop(CreateParams* params) { imgOpenInfo.swizzledFormat.swizzle = channels; imgOpenInfo.usage.shaderRead = true; imgOpenInfo.usage.shaderWrite = true; +#if defined(__unix__) + imgOpenInfo.resourceInfo.handleType = Pal::HandleType::DmaBufFd; +#endif memRef_ = GpuMemoryReference::Create(dev(), imgOpenInfo, &imgCreateInfo, &image_); if (nullptr == memRef_) { return false;