mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 12:23:05 +08:00
refactor: remove not needed vme builtin related code
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
8170599b17
commit
d5812f49d7
@@ -25,7 +25,6 @@
|
||||
#include "opencl/source/accelerators/intel_motion_estimation.h"
|
||||
#include "opencl/source/api/additional_extensions.h"
|
||||
#include "opencl/source/api/api_enter.h"
|
||||
#include "opencl/source/built_ins/vme_builtin.h"
|
||||
#include "opencl/source/cl_device/cl_device.h"
|
||||
#include "opencl/source/command_queue/command_queue.h"
|
||||
#include "opencl/source/context/context.h"
|
||||
@@ -1506,36 +1505,12 @@ cl_program CL_API_CALL clCreateProgramWithBuiltInKernels(cl_context context,
|
||||
TRACING_ENTER(ClCreateProgramWithBuiltInKernels, &context, &numDevices, &deviceList, &kernelNames, &errcodeRet);
|
||||
cl_int retVal = CL_SUCCESS;
|
||||
API_ENTER(&retVal);
|
||||
cl_program program = nullptr;
|
||||
DBG_LOG_INPUTS("context", context,
|
||||
"numDevices", numDevices,
|
||||
"deviceList", deviceList,
|
||||
"kernelNames", kernelNames);
|
||||
cl_program program = nullptr;
|
||||
Context *pContext = nullptr;
|
||||
|
||||
retVal = validateObjects(withCastToInternal(context, &pContext), numDevices,
|
||||
deviceList, kernelNames, errcodeRet);
|
||||
|
||||
if (retVal == CL_SUCCESS) {
|
||||
ClDeviceVector deviceVector;
|
||||
for (auto i = 0u; i < numDevices; i++) {
|
||||
auto device = castToObject<ClDevice>(deviceList[i]);
|
||||
if (!device || !pContext->isDeviceAssociated(*device)) {
|
||||
retVal = CL_INVALID_DEVICE;
|
||||
break;
|
||||
}
|
||||
deviceVector.push_back(device);
|
||||
}
|
||||
if (retVal == CL_SUCCESS) {
|
||||
|
||||
program = Vme::createBuiltInProgram(
|
||||
*pContext,
|
||||
deviceVector,
|
||||
kernelNames,
|
||||
retVal);
|
||||
}
|
||||
}
|
||||
|
||||
retVal = CL_INVALID_VALUE;
|
||||
if (errcodeRet) {
|
||||
*errcodeRet = retVal;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user