P4 to Git Change 1346190 by gandryey@gera-w8 on 2016/11/25 15:12:02

SWDEV-86035 - Add PAL backend to OpenCL
	- Correct a fix from CL#1346120. Just remove the asserts, since size is used in the abstraction  layer setup and represents cl_mem object.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palkernel.cpp#27 edit
Этот коммит содержится в:
foreman
2016-11-25 15:21:59 -05:00
родитель 41eceed8f1
Коммит 8c56088f43
+1 -5
Просмотреть файл
@@ -248,7 +248,7 @@ GetHSAILArgSize(const aclArgData *argInfo)
case ARG_TYPE_IMAGE:
case ARG_TYPE_SAMPLER:
case ARG_TYPE_QUEUE:
return sizeof(uint64_t);
return sizeof(void*);
default:
return -1;
}
@@ -1157,13 +1157,11 @@ HSAILKernel::loadArguments(
cb->uploadDataToHw(HsaImageObjectSize);
// Then use a pointer in aqlArgBuffer to CB1
uint64_t srd = cb->vmAddress() + cb->wrtOffset();
assert(arg->size_ == sizeof(srd) && "check the sizes");
WriteAqlArg(&aqlArgBuf, &srd, sizeof(srd));
memList.push_back(cb);
}
else {
uint64_t srd = image->hwSrd();
assert(arg->size_ == sizeof(srd) && "check the sizes");
WriteAqlArg(&aqlArgBuf, &srd, sizeof(srd));
srdResource = true;
}
@@ -1182,7 +1180,6 @@ HSAILKernel::loadArguments(
const Sampler* gpuSampler = static_cast<Sampler*>
(sampler->getDeviceSampler(dev()));
uint64_t srd = gpuSampler->hwSrd();
assert(arg->size_ == sizeof(srd) && "check the sizes");
WriteAqlArg(&aqlArgBuf, &srd, sizeof(srd));
srdResource = true;
}
@@ -1201,7 +1198,6 @@ HSAILKernel::loadArguments(
}
vmQueue = gpu.vQueue()->vmAddress();
}
assert(arg->size_ == sizeof(vmQueue) && "check the sizes");
WriteAqlArg(&aqlArgBuf, &vmQueue, sizeof(vmQueue));
}
else {