mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 18:06:32 +08:00
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:
committed by
Compute-Runtime-Automation
parent
0597f064e5
commit
a924c77b5c
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user