fix: bindless image from offset ptr

Handling pitched ptr offset from allocation base gpu address.

Related-To: NEO-16317, GSD-11804

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:
Dominik Dabek
2025-10-09 12:59:24 +00:00
committed by Compute-Runtime-Automation
parent 0597f064e5
commit a924c77b5c
2 changed files with 67 additions and 64 deletions

View File

@@ -170,11 +170,8 @@ ze_result_t ImageCoreFamily<gfxCoreFamily>::initialize(Device *device, const ze_
imgInfo.slicePitch = imgInfo.rowPitch * imgInfo.imgDesc.imageHeight;
imgInfo.qPitch = 0;
if (!isImageView()) {
imgInfo.size = allocation->getUnderlyingBufferSize();
if (usmPool) {
imgInfo.size = usmPool->getPooledAllocationSize(lookupTable.imageProperties.pitchedPtr);
imgInfo.offset = usmPool->getOffsetInPool(lookupTable.imageProperties.pitchedPtr);
}
imgInfo.size = imgInfo.slicePitch;
imgInfo.offset = ptrDiff(lookupTable.imageProperties.pitchedPtr, allocation->getGpuAddress());
}
}