SWDEV-290122 - OpenGL tests fails with CL_MEM_ALLOCATION_ERROR

Change-Id: I34d7063f05dd46c32cf59a88c455691ba5099679
This commit is contained in:
Alex Xie
2021-06-15 15:43:59 -04:00
کامیت شده توسط Maneesh Gupta
والد 2dd18dc004
کامیت b5b1ccc990
@@ -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;