fix: set usesPrintf when .const.data.string present in elf

- printf_buffer argument may not be present when indirect access buffer
version==2
- deduce usesPrintf based on .const.data.string presence and required
iab for those cases

Related-To: NEO-15211, IGC-12385

Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
Mateusz Hoppe
2025-09-05 11:05:31 +00:00
committed by Compute-Runtime-Automation
parent 1e7c9ee2e9
commit febe905a19
3 changed files with 49 additions and 0 deletions

View File

@@ -203,6 +203,7 @@ cl_int Program::createProgramFromBinary(
SingleDeviceBinary binary = {};
binary.deviceBinary = blob;
binary.targetDevice = NEO::getTargetDevice(clDevice.getRootDeviceEnvironment());
binary.generatorFeatureVersions = singleDeviceBinary.generatorFeatureVersions;
auto &gfxCoreHelper = clDevice.getGfxCoreHelper();
std::tie(decodedSingleDeviceBinary.decodeError, std::ignore) = NEO::decodeSingleDeviceBinary(decodedSingleDeviceBinary.programInfo,