mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Receive spec consts from proper program source
Change-Id: I1e0ca9d2948190011fc1c75f24bdd8c3bb372daf Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:

committed by
sys_ocldev

parent
4f8325fa75
commit
a77209f5b7
@ -230,7 +230,7 @@ cl_int Program::setProgramSpecializationConstant(cl_uint specId, size_t specSize
|
||||
}
|
||||
|
||||
SpecConstantInfo specConstInfo;
|
||||
auto retVal = pCompilerInterface->getSpecConstantsInfo(this->getDevice(), ArrayRef<const char>(sourceCode), specConstInfo);
|
||||
auto retVal = pCompilerInterface->getSpecConstantsInfo(this->getDevice(), ArrayRef<const char>(irBinary.get(), irBinarySize), specConstInfo);
|
||||
|
||||
if (retVal != TranslationOutput::ErrorCode::Success) {
|
||||
return CL_INVALID_VALUE;
|
||||
|
Reference in New Issue
Block a user