From 33775d226db0fc949dfdb92d43fd5aa57f55ed7a Mon Sep 17 00:00:00 2001
From: foreman
Date: Thu, 2 Oct 2014 13:56:35 -0400
Subject: [PATCH] P4 to Git Change 1083521 by rili@rili_opencl_stg on
2014/10/02 11:07:08
EPR #403387 - Removed the check for multi devices in clCreateBufferFromImageAMD becasue this function works with the case of multi devices.
Affected files ...
... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_memobj.cpp#69 edit
---
opencl/api/opencl/amdocl/cl_memobj.cpp | 5 -----
1 file changed, 5 deletions(-)
diff --git a/opencl/api/opencl/amdocl/cl_memobj.cpp b/opencl/api/opencl/amdocl/cl_memobj.cpp
index a4c0506ae6..23086235c8 100644
--- a/opencl/api/opencl/amdocl/cl_memobj.cpp
+++ b/opencl/api/opencl/amdocl/cl_memobj.cpp
@@ -4836,11 +4836,6 @@ RUNTIME_ENTRY_RET(cl_mem, clCreateBufferFromImageAMD, (
}
amd::Context& amdContext = *as_amd(context);
- if (amdContext.devices().size() > 1) {
- *not_null(errcode_ret) = CL_INVALID_CONTEXT;
- LogWarning("invalid parameter: context");
- return (cl_mem) 0;
- }
const std::vector& devices = amdContext.devices();
std::vector::const_iterator it;