mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
fix: store image arg size in kernel descriptor
- use arg size when patching bindless offset Related-To: HSD-18042502539 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
e3fecb932a
commit
b7580a3998
@@ -827,7 +827,7 @@ ze_result_t KernelImp::setArgImage(uint32_t argIndex, size_t argSize, const void
|
||||
auto ssInHeap = image->getBindlessSlot();
|
||||
auto patchLocation = ptrOffset(getCrossThreadData(), arg.bindless);
|
||||
auto bindlessSlotOffset = ssInHeap->surfaceStateOffset;
|
||||
uint32_t patchSize = this->heaplessEnabled ? 8u : 4u;
|
||||
uint32_t patchSize = NEO::isUndefined(arg.size) ? 0 : arg.size;
|
||||
uint64_t patchValue = this->heaplessEnabled
|
||||
? bindlessSlotOffset
|
||||
: gfxCoreHelper.getBindlessSurfaceExtendedMessageDescriptorValue(static_cast<uint32_t>(bindlessSlotOffset));
|
||||
|
||||
Reference in New Issue
Block a user